MoySklad icon

MoySklad

Consume the MoySklad JSON API

Actions5

Entity → Create

AI-generated

Summary

Create a MoySklad entity by sending a POST request for the selected entity type. Build the request body from entity-specific form fields or provide it as raw JSON; the returned response is emitted as n8n output item(s).

Inputs

  • Entity (required) — Select the type to create: assortment, counterparty, customer order, demand, invoice out, organization, processing plan, production task, product, sales channel, service, store, or supply.
  • Body Input Mode (required) — Choose Fields to assemble a body from the selected entity's fields, or Raw JSON to supply the request body as a JSON object.
  • Entity-specific fields — Optional fields vary by entity. They include common details such as name, code, external code, description, and archived status, plus entity-specific values. JSON collection fields such as positions, products, or sale prices must use MoySklad API format. For document entities, Agent and Organization accept an ID or full MoySklad href; reference fields are converted to API metadata references.
  • JSON Body — In Raw JSON mode, provide the request body as a JSON object. Use this for fields not available in the form fields.

Output shape

One or more n8n items containing the created entity response.

Object responses are emitted as one item; array responses are split into items. With Continue On Fail enabled, a failed input item produces an item with an error field. MoySklad requires entity-specific fields for some entity types, as indicated in their field descriptions.

Links

Discussion