create_store_order
Create an e-commerce order in a store by providing a unique order ID, customer details, and line items. Use for custom or headless stores.
Instructions
Create an e-commerce order in a store with a customer and line items.
order_id is client-supplied and must be unique within the store; the customer must already exist or be provided inline with the required id. Manual commerce writes suit custom/headless stores; Shopify and WooCommerce integrations sync orders automatically.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: store_id: E-commerce store ID. Obtain from list_ecommerce_stores. order_id: Client-supplied unique ID for the new order (e.g. 'order_42'). customer: Customer object dict. Must include 'id'; may include email_address, opt_in_status, first_name, last_name. lines: List of order line dicts. Each requires id, product_id, product_variant_id, quantity, price. additional_fields: Optional dict of extra order fields merged into the body (e.g. currency_code, order_total, financial_status, processed_at_foreign, promos). account: Optional account name (e.g. 'marketing') configured via MAILCHIMP_API_KEY_. Omit to use the default account. See list_accounts.
Returns: JSON with the created order object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| account | No | ||
| customer | Yes | ||
| order_id | Yes | ||
| store_id | Yes | ||
| additional_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |