---
title: "Cancel an Order"
method: DELETE
path: "/api/v2_1/orders/{orderId}"
tags: ["Order"]
---

# Cancel an Order

`DELETE /api/v2_1/orders/{orderId}`

## Request

- Base URL: `https://secure.payu.com`
- URL: `https://secure.payu.com/api/v2_1/orders/{orderId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/docs/api/v2_1/orders/:orderId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel (reject) orders processed by the PayU system.

## Headers

- `Content-Type` string, required
- `Authorization` string, required

## Response `200`

- object
  - `orderId` string: Order identifier in PayU's system.
  - `extOrderId` string: Order identifier in merchant's system.
  - `status` object
    - `statusCode` string: Status after update.

## Other responses

- `400`
- `401`
- `403`
- `404`
- `500`

---

[API](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api.md) - [All operations](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/revisions/185e74d5e007?raw)
