MoySklad Tool icon

MoySklad Tool

Use the MoySklad JSON API as an AI Agent tool

MoySklad Tool

AI-generated

Summary

Send one AI-supplied request to the MoySklad JSON API, either for a supported entity operation or a custom API call.

Inputs

  • AI Tool Request (required) — A JSON request object supplied by the AI Agent. For an entity request, provide entity and operation (create, delete, get, getAll, or update); resource can be omitted or set to entity. Set id for get, delete, and update. Use query for request parameters and body for create or update data. For getAll, limit defaults to 50 and must be an integer from 1 to 1000; set returnAll: true to fetch pages of up to 1000 records. For a custom request, set resource: "custom", provide an allowed method (GET, DELETE, PATCH, POST, or PUT) and a relative API path; query and body are optional. GET and DELETE custom requests ignore the body.

Output shape

A list of n8n items, with response data mapped to each item's json.

Entity get-many requests return individual records and paginate when returnAll is true. With continue-on-fail enabled, an error is returned as an item with an error field; otherwise the operation fails.

Links

Discussion