Create order (draft by default)
gelato_create_orderDestructive
Create an order. By default it is a DRAFT: nothing is produced or charged until it is submitted with gelato_submit_draft_order (or in the dashboard). With order_type "order" Gelato starts production and charges the account right away. Shipment: a shipmentMethodUid from gelato_quote_order, or "normal"/"standard"/"express"; omitted = the cheapest. POST /v4/orders.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items. | |
| currency | Yes | 3-letter ISO 4217 currency code, e.g. USD or EUR. | |
| metadata | No | Up to 20 key/value pairs stored on the order. | |
| order_type | No | "draft" (default; review first) or "order" (produced and charged immediately). | |
| shipping_address | Yes | Delivery address. | |
| order_reference_id | Yes | Your internal order id. | |
| shipment_method_uid | No | A shipmentMethodUid from gelato_quote_order, or "normal", "standard", "express". Several values may be given separated by commas (no spaces). Omitted = cheapest. | |
| customer_reference_id | Yes | Your internal customer id. |