Webhooks
Configure webhook subscriptions to receive real-time HTTP POST notifications.
Subscribable events and their payload schemas (the data field of each delivered event):
- Shipment lifecycle —
shipment_created,shipment_updated,shipment_deleted. Payload:ShipmentResponseDtofor created / updated,WebhookDeletedShipmentDtofor deleted. - Account lifecycle —
account_updated,account_deleted. Payload:WebhookAccountDtofor updated,WebhookDeletedAccountDtofor deleted. - Configuration lifecycle —
configuration_created,configuration_updated,configuration_deleted. Payload:WebhookConfigurationDto, which identifies the affected configuration bycourierIdandprofileId.
Lifecycle events fire on every change regardless of how it was triggered. Webhooks are automatically suspended after repeated delivery failures.
List webhooks
Returns a paginated list of registered webhooks for the authenticated account.
query Parameters
pagePage number for pagination
pageSizeNumber of items per page
statusFilter webhooks by status. Accepts multiple comma-separated values. When omitted, returns all webhooks regardless of status.
List webhooks › Responses
Paginated list of webhooks
pageCurrent page number
pageSizeNumber of items per page
totalPagesTotal number of pages
nextPageWhether a next page exists
previousPageWhether a previous page exists
itemsCountTotal number of items across all pages
List of webhooks
Create webhook
Registers a new webhook subscription.
One webhook subscription listens to one event type — see the type field below for the full list of subscribable events and their payloads. Create multiple subscriptions to receive multiple event types (the same URL can be used for several subscriptions).
Create webhook › Request Body
typeEvent type to subscribe to.
shipment_created/shipment_updated/shipment_deleted— shipment lifecycle events. Payload:ShipmentResponseDto(created / updated) orWebhookDeletedShipmentDto(deleted).account_updated/account_deleted— account lifecycle events. Payload:WebhookAccountDto(updated) orWebhookDeletedAccountDto(deleted).configuration_created/configuration_updated/configuration_deleted— courier configuration lifecycle events. Payload:WebhookConfigurationDto, which identifies the affected configuration bycourierIdandprofileId.
urlHTTPS endpoint URL where webhook event payloads will be delivered via POST
Create webhook › Responses
Webhook created successfully
idUnique webhook subscription identifier
typeEvent type that triggers this webhook. See CreateWebhookRequestDto.type for the meaning of each value.
urlHTTPS endpoint URL where webhook event payloads will be delivered via POST
createdTimestamp when the webhook subscription was created (format yyyy-MM-ddTHH:mm:ss.fff)
statusWebhook delivery status:
- active: Webhooks are being sent normally
- suspended: Automatically paused due to client-side processing errors
- inactive: Manually paused by the user
changedTimestamp of the most recent modification to this webhook subscription
Get webhook by ID
Returns details of a specific webhook subscription.
path Parameters
idUnique webhook identifier
Get webhook by ID › Responses
Webhook details
idUnique webhook subscription identifier
typeEvent type that triggers this webhook. See CreateWebhookRequestDto.type for the meaning of each value.
urlHTTPS endpoint URL where webhook event payloads will be delivered via POST
createdTimestamp when the webhook subscription was created (format yyyy-MM-ddTHH:mm:ss.fff)
statusWebhook delivery status:
- active: Webhooks are being sent normally
- suspended: Automatically paused due to client-side processing errors
- inactive: Manually paused by the user
changedTimestamp of the most recent modification to this webhook subscription
Update webhook
Updates an existing webhook subscription. Only the fields you provide are changed; omitted fields stay the same.
See the type field below for the full list of subscribable events and their payloads.
path Parameters
idUnique webhook identifier
Update webhook › Request Body
typeEvent type that triggers this webhook. See CreateWebhookRequestDto.type for the meaning of each value.
urlHTTPS endpoint URL where webhook event payloads will be delivered via POST
statusWebhook delivery status:
- active: Webhooks are being sent normally
- suspended: Automatically paused due to client-side processing errors
- inactive: Manually paused by the user
Update webhook › Responses
Webhook updated successfully
idUnique webhook subscription identifier
typeEvent type that triggers this webhook. See CreateWebhookRequestDto.type for the meaning of each value.
urlHTTPS endpoint URL where webhook event payloads will be delivered via POST
createdTimestamp when the webhook subscription was created (format yyyy-MM-ddTHH:mm:ss.fff)
statusWebhook delivery status:
- active: Webhooks are being sent normally
- suspended: Automatically paused due to client-side processing errors
- inactive: Manually paused by the user
changedTimestamp of the most recent modification to this webhook subscription