Request Body
| Field | Type | Required | Description |
|---|---|---|---|
orderId | string | Yes | Order ID in Short ID format (ORD_xxx) |
Example Request
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
orderId | string | Order ID in Short ID format |
status | string | New order status (canceled) |
Errors
| Status | Message | Description |
|---|---|---|
| 400 | Order is not pending | Only orders with pending status can be canceled |
| 404 | Order not found | No order matches the given orderId |
Only orders with
pending status (payment not yet completed) can be canceled. For completed orders, use the refund endpoint instead.