---
title: "Cancel a delivery job"
method: POST
path: "/{aplicationId}/delivery-jobs/{deliveryJobId}/cancellations"
---

# Cancel a delivery job

`POST /{aplicationId}/delivery-jobs/{deliveryJobId}/cancellations`

## Request

- Base URL: `https://api.staging.grubtech.io/lai`
- URL: `https://api.staging.grubtech.io/lai/{aplicationId}/delivery-jobs/{deliveryJobId}/cancellations`
- Auth: none declared

This endpoint is used to cancel a delivery job that is no longer required ensuring that unnecessary delivery jobs are promptly canceled.

## Path parameters

- `aplicationId` string, required
- `deliveryJobId` string, required

## Request body

- DeliveryCancel
  - `cancellationReason` string: A descriptive reason for why the delivery job is being canceled. This information can be used for tracking and reporting purposes (e.g., "Customer request", "Driver unavailable", or "Invalid address").
  - `cancelledAt` string: A timestamp indicating when the cancellation occurred. The format should follow ISO 8601 standards (e.g., 2025-01-29T10:30:00Z). If not provided, the system may use the current timestamp as the default value.

## Response `204`

Delivery job canceled successfully

---

[API](https://skmtc.dev/grubtech/apis/delivery-management-api.md) - [All operations](https://skmtc.dev/grubtech/apis/delivery-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/delivery-management-api/revisions/0e87d9c77ed5?raw)
