What are webhooks?
Webhooks are custom HTTP callbacks that allow one application to send real-time data to another whenever a specific event occurs. Unlike APIs that require constant polling for updates, webhooks push the latest data to a designated endpoint, making them more efficient and resource-friendly. For example, when a specific event (e.g., booking confirmation or trip creation) occurs on the Spotnana platform, a webhook sends the relevant data payload to the partner’s configured endpoint.
Visit the webhook events section to view the list of all webhooks supported by Spotnana.
Use case
Assume a partner subscribes to the PNR_V3
webhook event to receive the PNR information every time a user updates their booking on the Spotnana platform. Once the event is triggered, a POST
API request is sent to the partner’s designated secure API endpoint. This request will contain the latest booking information as a payload. Partners can use this designated endpoint to build automated workflows that keep their application in sync with the latest booking data from Spotnana.