GUEST API Webhooks
This page provides details about webhook call descriptions and return types.
Each webhook call returns a list of objects. If the list contains one object, it represents the updated object. If the list contains two objects, the first object is the updated one and the second is the previous version, allowing for comparison within your system.
Additionally, each webhook call includes a header, “UpdateType,” with possible values: [“Delete”, “Insert”, “Update”], indicating the type of modification.
The call will always be sent to the WebhookURL. In the event of a non-successful status code (400-500), the same request will be sent to the FallBackUrl, if it is configured.
Currently, there is no support for retrying in case of a delivery failure to the FallBackUrl.
When subscribing to an endpoint, you must be authenticated and possess the required permissions to access the subscribe endpoint.
Subscription names must be unique, though WebhookURLs do not need to be. This allows you to subscribe to different endpoints, such as Reservations and Tasks, using different names but the same WebhookURL, ensuring all information is sent to the same URL, if configured on your end.
Reservations
subscribeType = “reservations”
When one of the following properties of a Reservation is changed, a webhook notification will be sent:
- Arrival date
- Exit Date
- Assigned Room
- Reservation status
- Reservation invoice status
- RoomType bill code
- RoomType use code
- BoardType bill code
- BoardType use code
- A change in amount of Guests
- Reservation responsible
In this case, the object sent will be a List of ReservationsUpdateDTO with only one item, corresponding to the updated Reservation.
ReservationsUpdateDTO
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
reservation_id | integer(int32) | false | none | Reservation identifier |
appCustomer_id | integer(int32) | false | none | AppCustomer identifier |
center_id | integer(int32)¦null | false | none | Center identifier |
arrivalDate | string(date-time)¦null | false | none | Arrival date |
exitDate | string(date-time)¦null | false | none | Exit date |
rsvStatus | integer(int32)¦null | false | none | Reservation status identifier |
rsvInvoiceStatus | integer(int32)¦null | false | none | Reservation invoice status identifier |
roomTypeUse_id_fk | integer(int32)¦null | false | none | RoomType use identifier |
roomTypeFra_id_fk | integer(int32)¦null | false | none | RoomType bill identifier |
boardTypeUse_id_fk | integer(int32)¦null | false | none | BoardType use identifier |
boardTypeFra_id_fk | integer(int32)¦null | false | none | BoardType bill identifier |
roomId | integer(int32)¦null | false | none | Room identifer |
reference | string¦null | false | none | Reference |
responsible | string¦null | false | none | Resrevation responsible |
ad | integer(int32) | false | none | Num Adult |
jr | integer(int32) | false | none | Num Junior |
ch | integer(int32) | false | none | Num Child |
bb | integer(int32) | false | none | Num Baby |
Tasks
Coming soon!