create_order
Updated May 21, 20261 min read
Create an order via POST /orders.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
merchant | string | Yes | Merchant that owns the order. |
partner_order_reference | string | Yes | Merchant order reference. Must be unique within the tenant. |
tenantId | string | Yes | — |
billing_address | object | No | — |
carriyo_metadata | array | No | — |
customer | object | No | — |
customer_collection_address | object | No | — |
customer_collection_schedule | object | No | — |
delivery_address | object | No | — |
delivery_method | string | No | Values: DELIVERY, COLLECTION, DIGITAL. |
delivery_schedule | object | No | — |
delivery_type | string | No | — |
discount_applications | array | No | — |
duties_included | boolean | No | — |
fulfillment_orders | array | No | — |
language | string | No | ISO 639-1 language code. |
line_items | array | No | — |
order_date | string | No | Order date or date-time. |
payment | object | No | — |
sales_channel | string | No | — |
shipping_lines | array | No | — |
taxes_included | boolean | No | — |
Example agent prompt
"Create a new order."
create_order(
tenantId="…",
merchant="acme",
partner_order_reference=…
)