Orders
Get an order
GET /stores/{storeResourceId}/orders/{resourceId}
GET
/stores/{storeResourceId}/orders/{resourceId}Returns one order or cart with its status, totals, items and tracking data.
When to use: To check the state of an order you already know.
When not to use: To find orders use list_store_orders.
Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
storeResourceId*string
Identifier (resource_id) of the store the order belongs to.
resourceId*string
Identifier (resource_id) of the order: the one you chose when you created it.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/stores/acme-shop/orders/order-5001" \ -H "X-Auth-Token: YOUR_API_KEY"{ "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"}