---
title: "POST /orders/{id}/cancel"
method: POST
path: "/orders/{id}/cancel"
tags: ["Order"]
---

# POST /orders/{id}/cancel

`POST /orders/{id}/cancel`

## Request

- Base URL: `https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0`
- URL: `https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0/orders/{id}/cancel`
- Auth: API key in header `X-API-KEY`

This endpoint allows an order to be cancelled on the aggregator platform.

## Path parameters

- `id` string, required

## Request body

- OrderCancellation: Order cancellation information
  - `reason` 'OUT_OF_ITEMS' | 'STORE_TOO_BUSY' | 'OTHER', required: Order cancellation reasons
  - `note` string: Reason or note for cancellation
  - `canceledAt` string, required: Order cancellation time. Represented in ISO 8601 format.

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `404`: The specified resource was not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis.md) - [All operations](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis/revisions/38664609b45c?raw)
