Webhooks//
Webhook Subscription
/- Get Webhook Subscription
Create Webhook Subscription
List Webhook Subscriptions
Update Webhook Subscription
Get Webhook Subscription
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/webhooks/subscriptions/{subscriptionId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/webhooksubscriptionapi/v3/webhooks/subscriptions/{subscriptionId}
curl -i -X GET \
'https://api-ext-sboxmeta.partners.spotnana.com/v3/webhooks/subscriptions/{subscriptionId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful Get Webhook Subscription Response
Additional HTTP headers included on every webhook request sent to url. Reserved headers managed by Spotnana (such as Authorization and Content-Type) take precedence over values configured here.
Example:
{ "X-Custom-Header": "my-value", "Authorization-Extra": "token123" }
Whether the subscription is active. When false, the subscription is preserved but incoming events will not be matched against it and no deliveries will be made.
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "eventTypes": [ "TRAVELER_V2" ], "subscriberId": "96d0a1b8-7f77-4d5c-847e-2afd90ed23b3", "eventSource": { "scopes": [ … ] }, "url": "http://example.com", "customHeaders": { "X-Custom-Header": "my-value", "Authorization-Extra": "token123" }, "isActive": true, "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "createdAt": { "iso8601": "2017-07-21" }, "updatedAt": { "iso8601": "2017-07-21" } }