Create an order
create_orderPlace an order for offset products: items from get_price_table, delivery from get_delivery_options, buyer name, phone and email. Prices and delivery are calculated by the server. dry_run=true returns the total with delivery and dates without creating anything. Returns the order number and payment_url (order page with payment). The shop checks the order and the print file and then launches production. The print file: layout_token from upload_layout and layout_approved (whether the checked preview from check_layout was approved) in the item; without a layout the file can be sent later.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>",
"delivery": "<delivery>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name ("Москва", "Kazan", "Almaty") or slug from find_city. Default: Moscow. | |
| items | Yes | Order items (offset products only), each exactly as listed by get_price_table for the same city. | |
| comment | No | Optional comment to the order (up to 1000 characters). | |
| dry_run | No | true — only calculate the total with delivery, nothing is created. | |
| delivery | Yes | One option from get_delivery_options. | |
| layout_url | No | Optional link to the print file (PDF, TIFF, JPG, CDR, EPS). | |
| customer_name | No | Buyer name. | |
| customer_email | No | Buyer email: the order and payment receipt are sent there. | |
| customer_phone | No | Buyer phone, e.g. +7 999 123-45-67. |