Process an order
PUT /stores/{storeResourceId}/orders/{resourceId}/actions/process_order
/stores/{storeResourceId}/orders/{resourceId}/actions/process_orderTurns a cart into an order (status new): the shopper has placed it. It stops abandoned-cart automations for this order and starts the automations with an "order processed" trigger.
When to use: When the shopper completes the checkout, before the payment is confirmed.
When not to use: If the order is already paid use pay_order.
Side effects: Starts the automations with an order processed trigger (create_trigger_order_processed) and cancels the abandoned-cart automations waiting on this order.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
Identifier (resource_id) of the store the order belongs to.
Identifier (resource_id) of the order: the one you chose when you created it.
The updated OrderResource resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/stores/acme-shop/orders/order-5001/actions/process_order" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "order_number": "string", "processed_at": "2019-08-24T14:15:22Z", "campaign_hash": "string" }'{ "resource_id": "string", "currency": "string", "currency_exchange_rate": 0.1, "order_total": 0, "tax_total": 0, "discount_total": 0, "shipping_total": 0, "checkout_url": "http://example.com", "status": "cart", "order_number": "string", "tracking_number": "string", "tracking_carrier": "string", "tracking_url": "http://example.com", "abandoned_cart_at": "2019-08-24T14:15:22Z", "processed_at": "2019-08-24T14:15:22Z", "paid_at": "2019-08-24T14:15:22Z", "cancelled_at": "2019-08-24T14:15:22Z", "campaign_hash": "string", "order_items": [ { "quantity": 1, "price": 0, "discount": 0, "variant": "/entity/1" } ], "customer": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}