Create order
create_orderCreate an order with line items. Idempotent by externalId — use a stable unique id such as 'mcp-' (re-sending returns the existing order). Enforces the workspace plan limit; the result echoes the operating workspace. Items snapshot productName/sku/unitPrice; use search_products first to quote real products.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Order line items (1-100). Each snapshots productName/sku/unitPrice. | |
| notes | No | Internal note stored on the order. For a delivery instruction from the buyer use delivery.comment instead. | |
| currency | No | ISO 4217 currency code for the order (uppercase, e.g. UAH). Default UAH. | UAH |
| customer | No | Optional buyer snapshot (name/email/phone, or a storefront customer externalId). Omit for an anonymous order. | |
| delivery | No | How the buyer asked to receive the order: carrier, branch/courier/pickup, branch text, recipient, cash-on-delivery and a delivery note. This is the buyer's choice at checkout — it does not dispatch anything. Record what actually ships with POST /orders/{externalId}/shipments. | |
| externalId | Yes | A stable unique id for this order in your system — the idempotency key. Re-sending the same externalId returns the existing order instead of creating a duplicate (e.g. 'mcp-<uuid>'). |