...
- Webhooks are only available for applications with grant type client_credentials using an access of type "Agency Manager" (single agency access) and scope "api.profilesondemand.read".
- Notifications can not be tailored to include / exclude specific profiles. Notifications will be sent for all profiles within a travel agency.
- Notifications might be delivered, even if no actual profile data has been changed.
- The notification itself denotes a profile identifier and nothing more. Specifically, it does not contain any profile data or information on what may have changed within the profile.
Info |
---|
Webhook notifications will not be sent to the application triggering the profile change. Only other applications with webhook subscriptions will be notified |
Receiving Webhooks
Payload
...
Webhooks are managed in a self-service fashion via the following set of APIs.
Note |
---|
Each create / update triggers an immediate "PING" notification (with no retries) to the configured endpoint, and will only be accepted if the PING is succesful |
Search / List Webhooks
Endpoint | api/v1/configuration/webhooks |
---|---|
Request method | GET |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "moreResults": false, "results": [ { "uuid": "56b19ace-1fa9-4346-a97c-f621c5138342", "name": "My Example Webhook", "profileTypes": [ "TRAVELLER", "CORPORATE" ], "eventTypes": [ "CREATE", "UPDATE", "DELETE" ], "url": "https://my.example.com/webhook/notify" } ] } |
Create new Webhook
Note |
---|
Each create triggers an immediate "PING" notification (with no retries) to the configured endpoint, and will only be accepted if the PING is succesful |
Endpoint | api/v1/configuration/webhook |
---|---|
Request method | POST |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "uuid": "c7c769bc-9310-4b29-b27c-f34355ec66b4", "name": "Notify myIntegrationX", "profileTypes": [ "TRAVELLER", "CORPORATE" ], "eventTypes": [ "CREATE", "UPDATE", "DELETE" ], "url": "https://my.example.com/webhook/notify", "secret": { "sensitiveValuePresent": true } } |
Update existing Webhook
To update a Webhook, please delete and re-create it
...
Remove Webhook subscription.
Note: After deleting a Webook, some notifications that were already placed on the notification queue before deletion may still be delivered
Parameters
Name | Description | Validation |
---|---|---|
<uuid> | The UUID of the subscription to be deleted | Required parameter |
...