Skip to main content

Cancel Order

If orders items should no longer be delivered to the end customer. Use this endpoint to cancel all remaining order items that has not yet been captured.

Please note

This can only be done on orders with status NotActivated or PartActivated or Expired. This action is non-reversible.

Canceled order items should not be delivered to the customer and if it was a direct payment, the customer will be refunded the amount of the canceled rows.

Example

POST /manage/orders/{{orderId}}/cancel HTTP/1.1
Host: api.uat.walleydev.com // (Please note! Different hostname in production)
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...

Data Model

Request

Request headers
HeaderRequiredExplanation
AuthorizationYesInstructions on how to generate the Bearer token value can be found here

Response

The response will be 202 Accepted for a successful cancel.

Please note

Due to the asynchronous nature of an Accepted status answer, it can take a few seconds before the update can be shown in various systems and responses to API requests. You should design your system to accomodate this.