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:
| Parameter | Topic | Description |
|---|---|---|
| id | string | The ID of the webhook |
| action | Action | The type of query that has been executed |
| topic | HotelMarketplaceAppsubscriptionTopic | The topic of the webhook |
| entities | [Space | Pricelist | Order | Booking] | An array of entities that have been created, updated or deleted |
| timestamp | number | The 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 |