---
title: "Cancel an order"
url: "https://kongair.terwilligar.com/apis/hot-diggity-dog/versions/7450374c-0e43-4067-b83d-ec33667f4a58/operations/cancelOrder"
---

> Full API specification: https://kongair.terwilligar.com/apis/hot-diggity-dog/versions/7450374c-0e43-4067-b83d-ec33667f4a58.md

# Cancel an order

`DELETE` `/orders/{orderId}`

Operation ID: `cancelOrder`

Cancels an order.

## Path parameters

- `orderId` (string, uuid, required) - ID of the order to cancel

## Responses

- `204` - Order cancelled successfully
- `404` - Order not found

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Hot Dog Stand API
  version: 1.0.0
servers:
  - url: https://hotdog.example.com/api/v1
    description: Main server
paths:
  /orders/{orderId}:
    delete:
      summary: Cancel an order
      description: Cancels an order.
      operationId: cancelOrder
      tags:
        - Orders
      parameters:
        - name: orderId
          in: path
          required: true
          description: ID of the order to cancel
          schema:
            type: string
            format: uuid
      responses:
        "204":
          description: Order cancelled successfully
        "404":
          description: Order not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Error message
      example:
        code: 400
        message: Invalid request
```
