Webhook Deliveries
Add a webhook
Last updated
Was this helpful?
Was this helpful?
{
"status": true,
"message": "Webhook deliveries retrieved successfully",
"data": {
"resource_type": "shipment",
"resource_id": "SH-ABC123",
"events": [
{
"webhook_event_id": "WE-1A2B3C4D5E6F7G8H",
"event": "shipment.delivered",
"resource_type": "shipment",
"resource_id": "SH-ABC123",
"trigger_source": "system",
"created_at": "2026-06-25T10:30:00.000Z",
"deliveries": [
{
"delivery_id": "WD-9Z8Y7X6W5V4U3T2S",
"webhook_event_id": "WE-1A2B3C4D5E6F7G8H",
"webhook_id": "WA-1234567890ABCDEF",
"url": "https://merchant.example.com/webhooks/terminal",
"status": "delivered",
"http_status": 200,
"attempt": 1,
"is_replay": false,
"error_message": "",
"sent_at": "2026-06-25T10:30:01.000Z",
"delivered_at": "2026-06-25T10:30:02.000Z",
"failed_at": null
},
{
"delivery_id": "WD-ABCDEFGHIJKLMNOP",
"webhook_event_id": "WE-1A2B3C4D5E6F7G8H",
"webhook_id": "WA-0987654321FEDCBA",
"url": "https://backup.example.com/hooks",
"status": "failed",
"http_status": 500,
"attempt": 1,
"is_replay": false,
"error_message": "Request failed with status code 500",
"sent_at": "2026-06-25T10:30:01.000Z",
"delivered_at": null,
"failed_at": "2026-06-25T10:30:03.000Z"
}
]
}
],
"pagination": {
"page": 1,
"perPage": 20,
"prevPage": null,
"nextPage": null,
"currentPage": 1,
"total": 1,
"pageCount": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false
}
}
}