Cancel Orders (action=cancel)
6. Create cancel – action=cancel
Description:
Submits cancellation requests for one or more orders. For API orders, the request is forwarded to the upstream provider. Refunds are handled asynchronously by cron.
Parameters
key(required)action(required) =cancelorders(required): Comma-separated API order IDs (up to 100).
Example response
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]Notes
- Orders that are already
Completed,PartialorCanceledcannot be cancelled. - Services must have
cancelcapability enabled to accept cancellation.