Create order
orderdesk_create_orderWRITE: add a new order to the store. Needs at least one item, and a name or company in the shipping or customer address (if only one address is given the other is copied from it). Omit folder_id to land in the first folder. Order Desk rejects an order it recognizes as a duplicate and names the existing order id. POST /orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Customer e-mail address. | ||
| customer | No | Customer (billing) address. | |
| shipping | No | Shipping address. | |
| folder_id | No | Folder to put the order in (see orderdesk_get_store). | |
| source_id | No | Your own order id (the order's Order Desk id is used when blank). | |
| tax_total | No | ||
| order_items | Yes | Line items (at least one). | |
| source_name | No | Order source / cart name (default Order Desk). | |
| payment_type | No | Visa, MasterCard, PayPal, ... | |
| checkout_data | No | Editable extra order details (max 3,500 characters as JSON). | |
| handling_total | No | ||
| order_metadata | No | Hidden extra order details (max 2,000 characters as JSON). | |
| payment_status | No | Defaults to Captured. | |
| shipping_total | No | ||
| shipping_method | No |