Skip to main content

Webhook payload

When a topic in a hotel that you are subscribed to is changed, a POST request will be sent to all relevant endpoints.

Payload schema

The payload schema is defined as below:

ParameterTopicDescription
idstringThe ID of the webhook
actionActionThe type of query that has been executed
topicHotelMarketplaceAppsubscriptionTopicThe topic of the webhook
entities[Space | Pricelist | Order | Booking]An array of entities that have been created, updated or deleted
timestampnumberThe UNIX timestamp of the request

Actions

The actions that trigger a webhook are defined below:

Action
new-space
update-space
delete-space
new-pricelist
update-pricelist
delete-pricelist
new-order
update-order
new-booking
update-booking