> For the complete documentation index, see [llms.txt](https://docs.api.beefast.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.beefast.eu/webhooks/webhook-event-types.md). Agents can also search and read this documentation through its [MCP server](https://docs.api.beefast.eu/~gitbook/mcp).

# Webhook event types

### Types

#### 1. DELIVERY\_STATUS\_CHANGED

This event is triggered by each change of delivery status.

| Status Type                      |
| -------------------------------- |
| UNASSIGNED                       |
| IN\_DELIVERY\_GOING\_TO\_PICKUP  |
| IN\_DELIVERY\_AT\_PICKUP         |
| IN\_DELIVERY\_GOING\_TO\_DROPOFF |
| IN\_DELIVERY\_AT\_DROPOFF        |
| DELIVERED                        |
| RETURNED                         |
| CANCELED                         |

### Payloads

#### 1. DELIVERY\_STATUS\_CHANGED

```javascript
{
    "deliveryID": "iy0sW9zGrsEzGUNr0Vn1__deliv__tT4jt8OxseAD9NrV4i0y",
    "statusChangeAtTs": 1751889529,
    "status": "DELIVERED"
}
```

| Name             | Type   | Description                                                                                                   |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------- |
| deliveryID       | string | The delivery's id                                                                                             |
| statusChangeAtTs | number | The timestamp, in seconds, when the status has changed                                                        |
| status           | string | The changed status                                                                                            |
| cancelReasonCode | string | Present only if the order’s status is "CANCELED". Provides a code that indicates the reason for cancellation. |

| Cancel Reason Codes |
| ------------------- |
| NOTDELIV\_UNABLE    |
| NOTDELIV\_ADDRESS   |
| NOTDELIV\_REJECT    |
| NOTDELIV\_NOTPAY    |
| NOTDELIV\_LATE      |
| NOTDELIV\_CANCEL    |
| NOTDELIV\_OTHER     |
| DELIV\_INTERNAL     |
