Skip to main content

Cancel an order

Use this request to cancel an order before it has been shipped so the entire amount is refunded to the customer

Use case​

The customer contacts you, regrets the order and wants the money to be refunded or any invoices to be voided.

Once the order is canceled:

  • Every uncaptured item on it gets the item status Canceled. See Order lifecycle for what that means.
  • The order value is refunded to the customer if the order was paid with Swish, card, Trustly or another direct payment method like Vipps or Mobile Pay.
The money takes a few hours to a few days to arrive

How long depends on the payment method and on the customer's bank.

Endpoints used​

Cancel order

Example​

The following request will cancel the order with id abcdef-12345-1234-5555-6666.

POST /manage/orders/abcdef-12345-1234-5555-6666/cancel HTTP/1.1
Host: api.uat.walleydev.com // Test environment. Production uses a different hostname.
Authorization: Bearer {{accessToken}}