Webhook Deliveries
Deliveries of events to a webhook endpoint.
Schema
The ISO 8601 datetime at which the webhook event was created
Example:
"2020-04-11 15:48:11.642000+00:00"List webhook deliveries
Retrieve a paginated list of webhook deliveries
Query parameters
The maximum number of records to return per page. Defaults to 50.
May be set to any integer between 1 and 200. For more information on how to paginate through records, see the Pagination section.
Example:
1Default value:
50A cursor pointing to the next page of records. For more information on how to paginate through records, see the Pagination section.
Example:
"g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB="A cursor pointing to the previous page of records. For more information on how to paginate through records, see the Pagination section.
Example:
"g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB="Endpoint
GET https://api.duffel.com/air/webhooks/deliveries
Request
curl -X GET --compressed "https://api.duffel.com/air/webhooks/deliveries?limit=1&before=g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB=&after=g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB=&created_at=undefined&type=order.created&delivery_success=true&endpoint_id=end_0000A3tQSmKyqOrcySrGbo" \-H "Accept: application/json" \-H "Accept-Encoding: gzip" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
Response
{"meta": {"limit": 50,"after": "g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB="},"data": [{"url": "https://www.example.com:4000/webhooks","type": "order.created","response_status_code": 200,"response_body": "{}","live_mode": true,"id": "del_0000A3tQSmKyqOrcySrGbo","event_id": "wev_0000A3tQSmKyqOrcySrGbo","endpoint_id": "end_0000A3tQSmKyqOrcySrGbo","created_at": "2020-04-11 15:48:11.642000+00:00"}]}
Endpoint
GET https://api.duffel.com/air/webhooks/deliveries/{id}
Request
curl -X GET --compressed "https://api.duffel.com/air/webhooks/deliveries/{id}" \-H "Accept-Encoding: gzip" \-H "Accept: application/json" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
Response
{"data": {"url": "https://www.example.com:4000/webhooks","type": "order.created","response_status_code": 200,"response_body": "{}","live_mode": true,"id": "del_0000A3tQSmKyqOrcySrGbo","event_id": "wev_0000A3tQSmKyqOrcySrGbo","endpoint_id": "end_0000A3tQSmKyqOrcySrGbo","created_at": "2020-04-11 15:48:11.642000+00:00"}}