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

# POST /{applicationId}/orders/{id}/cancel

`POST /{applicationId}/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/{applicationId}/orders/{id}/cancel`
- Auth: OAuth 2
  - Authorization code: `https://id.staging.grubtech.io/oauth2/authorize`
  - Token URL: `https://id.staging.grubtech.io/oauth2/token`

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

## Path parameters

- `applicationId` string, required
- `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)
