create_store_cart
Creates a cart in a Mailchimp store with line items and customer reference to enable abandoned-cart recovery workflows.
Instructions
Create a cart in a store with line items and a customer reference. Used to push abandoned-cart data from an external system into Mailchimp for recovery workflows.
cart_id is client-supplied (Mailchimp does not auto-generate it). The customer must already exist in the store; create them via Mailchimp's customer endpoints first if not. Use update_store_cart to modify after creation.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: store_id: E-commerce store ID. cart_id: Client-supplied unique ID for the new cart (e.g. 'cart_42'). customer_id: ID of an existing customer in the store. currency_code: ISO 4217 currency code (e.g. 'USD', 'EUR'). order_total: Total order amount (line items + tax + shipping if any). lines_json: JSON string with the cart line items array. Example: '[{"id": "line_1", "product_id": "p_1", "product_variant_id": "p_1_red", "quantity": 2, "price": 19.99}]' checkout_url: Optional URL to resume the cart (used in recovery emails). tax_total: Optional tax portion of order_total.
Returns: JSON with id, customer, currency_code, order_total, checkout_url, created_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| cart_id | Yes | ||
| customer_id | Yes | ||
| currency_code | Yes | ||
| order_total | Yes | ||
| lines_json | Yes | ||
| checkout_url | No | ||
| tax_total | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |