> For the complete documentation index, see [llms.txt](https://routelift.gitbook.io/routelift-api-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://routelift.gitbook.io/routelift-api-integration/api-reference/cancel-delivery.md).

# Cancel Delivery

Cancel Delivery

PUT  `/v1/deliveries/cancel/:trackingCode`

Cancel delivery request using the delivery trackingCode. A webhook event is sent to the configured webhook url

#### Base URL

* Test: `https://sandbox-integrations.routelift.com/v1/deliveries/cancel/:trackingCode`
* Live: `https://integrations.routelift.com/v1/deliveries/cancel/:trackingCode`

#### Request

**Method**: `PUT`\
**Content-Type**: `application/json`

**Authorization:** `Bearer <apiKey>` &#x20;

**Sample Request Body**

```json
{
    "reason": "Sender is no more interested"
}
```

#### Request Fields

| Field                         | Type   | Description                                        | Optional |
| ----------------------------- | ------ | -------------------------------------------------- | -------- |
| trackingCode (Path Parameter) | string | Delivery trackingCode passed in the path parameter | false    |
| reason                        | string | Reason for cancellation passed in the request body | true     |

Response\
\
**Content-Type**: `application/json`\
\
**Sample Response Body**

```json
{
    "success": true,
    "data": "",
    "message": "Delivery cancelled successfully"
}
```
