Easymailing
Orders

Delete an order

DELETE /stores/{storeResourceId}/orders/{resourceId}

DELETE/stores/{storeResourceId}/orders/{resourceId}

Permanently deletes an order or cart and its items. Automations that were waiting on it are cancelled.

When to use: When an order is removed from the shop, for example a test order.

When not to use: To keep the order but mark it as not valid use cancel_order or refund_order.

Side effects: The active automations waiting on this order are cancelled and the statistics of the store are recalculated.

Permissions: Requires the manager role or higher, or the marketing.audiences.delete capability.

Authorization

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 DELETE "https://api.easymailing.com/stores/acme-shop/orders/order-5001" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty