---
id: cancel-order
title: Cancel an order
hide_title: true
description: "Management API - Use case - Cancel an order"
---

import Ingress from '../../../../src/components/ingress/ingress.react';

<Ingress title="Cancel an order">
Use this request to cancel an order before it has been shipped so the entire amount is refunded to the customer
</Ingress>

## 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](/docs/manage/concepts/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.

:::info 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](/docs/manage/orders/cancel)

## Example

The following request will cancel the order with id `abcdef-12345-1234-5555-6666`.

```http
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}}
```
