---
title: "Cancel order"
method: DELETE
path: "/{countryCode}/2.2/orders/{trackingNo}"
tags: ["Order API"]
---

# Cancel order

`DELETE /{countryCode}/2.2/orders/{trackingNo}`

Cancels an existing delivery order. Only orders that are Pending Pickup can be cancelled.

**Note:** The names of the parameters in this endpoint differ from the [order creation](#tag/Order-API/paths/~1{countryCode}~14.1~1orders/post) endpoint. 
This is because the two endpoints use different specification versions.

## Path parameters

- `countryCode` 'SG' | 'MY' | 'TH' | 'ID' | 'VN' | 'PH' | 'MM', required
- `trackingNo` string, required

## Headers

- `Authorization` string, required

## Response `200`

Order successfully cancelled.

- CancelOrderResponse
  - `trackingId` string — Tracking ID of the order that was cancelled.
  - `status` string — Status of the order.
  - `updatedAt` string, datetime — Date on which the order was cancelled.

## Other responses

- `400` — Order wasn't cancelled because of an issue with the request.
- `404` — Order wasn't cancelled because no orders were found that matched the query parameters.
- `500` — Order wasn't cancelled because of an issue with the server.

---

[API](https://skmtc.net/ninjavan/apis/ninja-van-api.md) · [All operations](https://skmtc.net/ninjavan/apis/ninja-van-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ninjavan/ninja-van-api/versions/9096adaf76a2/schema)
