---
title: "Cancel a pending order"
method: DELETE
path: "/orders/{orderId}"
tags: ["Orders"]
---

# Cancel a pending order

`DELETE /orders/{orderId}`

The order with specified `orderId` will be cancelled, if its status is still `pending`, i.e. to be paid.

> IMPORTANT:
>
> Calling this endpoint does not cancel a `completed` order, i.e. an order that is already paid. It certainly does not provide any refund because it can only cancel order that is not already paid.

## Path parameters

- `orderId` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2021-07-20** `704267da2188` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/newpathfly/apis/virtual-interlining-api/changes/orders/:orderId/delete.md)

---

[API](https://skmtc.dev/newpathfly/apis/virtual-interlining-api.md) · [All operations](https://skmtc.dev/newpathfly/apis/virtual-interlining-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/newpathfly/virtual-interlining-api/revisions/704267da2188/schema)
