docs
  1. SCAYLE Resource Center
  2. Developer Guides
  3. Products
  4. Manage Merchants
  5. Order cancellation

Order cancellation

General

The cancellation URL provided during the creation or update of a merchant is used to delegate the cancellation of order items based on warehouse IDs to the merchant. This webhook works in blocking mode, meaning requests are sent to them synchronously during the order cancellation.

It is not possible to cancel an order item when there are order items that
are already cancelled in one warehouse but not in all warehouses.
{
  "orderReferenceKey": "string",
  "fulfillingMerchantKey": "string",
  "merchantKey": "string",
  "companyId": "integer",
  "warehouseIds": "array"
}

If the status code of the response is not 201 or doesn't meet the schema, an additional request will be triggered, possibly causing the hook to retry several times. The webhook's response must be idempotent, this means if SCAYLE attempts to cancel an already cancelled order, the webhook must return the same response as the first request.

{
  "orderReferenceKey": "string",
  "cancellationResult": "string"
}

Order will be successfully cancelled if the cancellationResult in the response is 'successful'.