Webhook Events
Events that happen and are delivered to a webhook endpoint.
Schema
POST https://api.duffel.com/air/webhooks/events/{id}/actions/redeliver
curl -X POST --compressed "https://api.duffel.com/air/webhooks/events/{id}/actions/redeliver" \-H "Accept-Encoding: gzip" \-H "Accept: application/json" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
No response body
GET https://api.duffel.com/air/webhooks/events/{id}
curl -X GET --compressed "https://api.duffel.com/air/webhooks/events/{id}" \-H "Accept-Encoding: gzip" \-H "Accept: application/json" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
{"data": {"type": "order.created","live_mode": true,"idempotency_key": "ord_0000ABd6wggSct7BoraU1o","id": "wev_0000A3tQSmKyqOrcySrGbo","created_at": "2020-04-11T15:48:11.642Z","api_version": "v2"}}
List webhook events
Retrieve a paginated list of webhook events
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:
1
Default value:
50
A 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="
GET https://api.duffel.com/air/webhooks/events
curl -X GET --compressed "https://api.duffel.com/air/webhooks/events?limit=1&before=g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB=&after=g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB=&created_at=undefined&type=order.created&delivery_success=true" \-H "Accept: application/json" \-H "Accept-Encoding: gzip" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
{"meta": {"limit": 50,"after": "g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB="},"data": [{"type": "order.created","live_mode": true,"idempotency_key": "ord_0000ABd6wggSct7BoraU1o","id": "wev_0000A3tQSmKyqOrcySrGbo","created_at": "2020-04-11T15:48:11.642Z","api_version": "v2"}]}