---
title: "Cancel order"
method: DELETE
path: "/orders/{orderId}"
tags: ["Orders API"]
deprecated: true
---

# Cancel order

`DELETE /orders/{orderId}`

> **Deprecated.**

**⚠️ We no longer recommend using the Orders API. Please refer to the [Payments API](payments-api) instead.**

An open order may be canceled if it does not have any open payments yet, and while its status is either `created`, `authorized`, or `shipping`.

If the order was already authorized, the authorization will be released.

For an order with status `shipping`, only the order lines that were still pending will be canceled if possible. If a payment method was used that does not support authorizations, cancelation is no longer possible. You will have to issue a refund instead.

> 🔑 Access with
>
> [API key](/reference/authentication)
>
> [Advanced access token with **orders.write**](/reference/authentication)
>
> [OAuth access with **orders.write**](/reference/authentication)

## Query parameters

- `testmode` boolean

## Response `200`

The canceled order object.

## Other responses

- `404` — No entity with this ID exists.
- `422` — The request contains issues. For example, if you are trying to cancel an order that can no longer be canceled.
- `429` — Rate Limit has been reached.

---

[API](https://skmtc.net/mollie/apis/accepting-payments.md) · [All operations](https://skmtc.net/mollie/apis/accepting-payments/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mollie/accepting-payments/revisions/4b45df3039ef/schema)
