Rate change
The object sent to the webhook when the rate_change
event is triggered have the identifier of the property and the roomtype affected by the change.
Name | Description |
---|---|
action | Type of the action, in this case always will be rate_change |
property_id | Identifier of the property |
room_type_ids | Identifiers of the roomtypes |
{
"action": "rate_change",
"property_id": 1000,
"room_type_ids": [
12345
]
}
Availability change
The object sent to the webhook when the availability_change
event is triggered has several fields related to the availability changes
Name | Description |
---|---|
action | Type of the action, in this case always will be availability_change |
property_id | Identifier of the property |
room_type_ids | Identifiers of the roomtypes |
start | Start date for the availability change |
end | End date for the availability change |
source | Indicates the Source of the change |
{
"action": "availability_change",
"property_id": 1000,
"room_type_ids": [
1233
],
"start": "2022-06-13T00:00:00",
"end": "2022-06-14T00:00:00",
"source": "Manual"
}
Guest message received
Webhook triggered when a new guest message is received in any thread belonging to the user. A thread could be associated with a booking or an enquiry. The object sent has the following fields:
Name | Description |
---|---|
thread_uid | Thread unique identifier in the way of UUID |
message_id | Identifier of the message. |
inbox_uid | Booking or Enquiry Id related to the inbox. The format used is a B or E followed by a number. |
guest_name | Guest's name as stated in the booking or enquiry. |
subject | The subject of the message. It could be empty. |
message | The main content's message. |
creation_time | The creation date. In UTC zone. |
has_attachments | A boolean value to specify if the message has files attached. |
{
"action": "guest_message_received",
"thread_uid": "dd51acc0-ebfb-4659-a6b3-0072538dbfaf",
"message_id": 12345678,
"inbox_uid": "B12345",
"guest_name": "John Doe",
"subject": null,
"message": "example message content",
"creation_time": "2024-01-30T14:15:00+00:00",
"has_attachments": false
}
Booking change
The object sent to the webhook for all the booking related events has the same format and its formed by several fields that represent the booking
Name | Description |
---|---|
action | Type of the action, in this case it will be one of the booking related events |
booking | Contains information about the booking |
booking.type | Type of Booking |
booking.id | Identifier of the Booking |
booking.date_arrival | Arrival date for the booking |
booking.date_departure | Departure date for the booking |
booking.date_created | Booking creation time |
booking.property_id | Identifier of the property |
booking.property_name | Name of the property |
booking.property_image_url | Url image for the property |
booking.status | Booking status |
booking.room_types | Array containing all the roomtypes related to this booking |
booking.room_types[]id | Id |
booking.room_types[]room_type_id | Identifier of the Room Type |
booking.room_types[]image_url | Url image for the Room Type |
booking.room_types[]name | Name of the Room Type |
booking.room_types[]people | Number of people |
booking.add_ons | Array containing information about the addons related to this booking (if any) |
booking.add_ons[]add_on_id | Add On identifier |
booking.add_ons[]name | Name of the Add On |
booking.add_ons[]units | Number of units of the Add On |
booking.currency_code | Currency Code |
booking.source | Source of the booking |
booking.source_text | Source Text for the booking |
booking.notes | Notes added to the booking |
booking.language | Language for the booking |
booking.ip_address | Ip Address from where the booking was created |
booking.ip_country | Country related to the Ip address from where the booking was created |
booking.is_policy_active | Indicates if policy is active |
booking.external_url | Booking external Url |
booking.nights | Number of nights |
booking.promotion_code | Promotion code used in the booking |
guest | Contains information about the guest for this booking |
guest.uid | Guest unique identifier |
guest.name | Guest name |
guest.email | Guest email |
guest.phone_number | Guest Phone number |
guest.country | Guest country name |
guest.country_code | Guest country code |
current_order | Details about the order related to this booking |
current_order.id | Order identifier |
current_order.property_id | Order property identifier |
current_order.currency_code | Order currency code |
current_order.status | Order status |
current_order.amount_gross.amount | Gross amount for the order |
current_order.amount_gross.total_room_rate_amount | Gross amount for total room rate |
current_order.amount_gross.total_fees_amount | Gross amount for total fees |
current_order.amount_gross.total_taxes_amount | Gross amount for total taxes |
current_order.amount_gross.total_promotions_amount | Gross amount for total promotions |
current_order.amount_net.amount | Net amount for the order |
current_order.amount_net.total_room_rate_amount | Net amount for total room rate |
current_order.amount_net.total_fees_amount | Net amount for total fees |
current_order.amount_net.total_taxes_amount | Net amount for total taxes |
current_order.amount_net.total_promotions_amount | Net amount for total promotions |
current_order.amount_vat.amount | Total amount for sales tax or VAT |
current_order.amount_vat.total_room_rate_amount | Sales tax or VAT amount for the room rate total |
current_order.amount_vat.total_fees_amount | Sales tax or VAT amount for the fees total |
current_order.amount_vat.total_taxes_amount | Sales tax or VAT amount for the local taxes total |
current_order.amount_vat.total_promotions_amount | Sales tax or VAT amount for the promotions total |
current_order.date_agreed | Agreement date |
current_order.cancellation_policy_text | Cancellation policy text |
current_order.security_deposit_text | Security deposit text |
current_order.scheduled_policy_text | Payment scheduled policy text |
current_order.rate_policy_name | Rate policy name |
current_order.rental_agreement_accepted | Rental agreement accepted |
current_order.owner_payout | Owner payout |
subowner | Details about the subowner related to this booking |
subowner.user_id | Subowner identifier |
subowner.first_name | Subowner first name |
subowner.last_name | Subowner last name |
subowner.email | Subowner email |
subowner.phone | Subowner phone |
booking_total_amount | Total amount of the booking |
booking_currency_code | Code of the currency associated with the booking |
total_transactions | Details about the transactions |
total_transactions.amount | Total transactions amount |
balance_due | Total due for the booking |
{
"action": "booking_change",
"booking": {
"type": "Booking",
"id": 123456,
"date_arrival": "2022-05-21T00:00:00",
"date_departure": "2022-05-24T00:00:00",
"date_created": "2022-05-17T19:48:14+00:00",
"property_id": 10000,
"property_name": "Amazing Property on the Beach",
"property_image_url": "https://l.icdbcdn.com/oh/71466fcc-6bb9-4b52-8145-3dc22fc435534e.jpg?f=32",
"status": "Booked",
"room_types": [
{
"id": 999999,
"room_type_id": 12345,
"image_url": null,
"name": "",
"people": 1
}
],
"add_ons": [],
"currency_code": "USD",
"source": "AirbnbIntegration",
"source_text": "XXXXXXX9",
"notes": null,
"language": "en",
"ip_address": null,
"ip_country": null,
"is_policy_active": true,
"external_url": null,
"nights": 3,
"promotion_code": null
},
"guest": {
"uid": "AJgBFoLdfe533443JrDha0E2kGg",
"name": "John Doe",
"email": "[email protected]",
"phone_number": "667675867768",
"country": null,
"country_code": null
},
"current_order": {
"id": 12343,
"property_id": 10000,
"currency_code": "USD",
"status": "Agreed",
"amount_gross": {
"amount": "1235",
"total_room_rate_amount": "900",
"total_fees_amount": "282",
"total_taxes_amount": "53",
"total_promotions_amount": "0"
},
"amount_net": {
"amount": "1113",
"total_room_rate_amount": "778",
"total_fees_amount": "282",
"total_taxes_amount": "53",
"total_promotions_amount": "0"
},
"amount_vat": {
"amount": "122",
"total_room_rate_amount": "122",
"total_fees_amount": "0",
"total_taxes_amount": "0",
"total_promotions_amount": "0"
},
"date_agreed": "2022-05-17T19:56:32+00:00",
"cancellation_policy_text": "",
"security_deposit_text": "",
"scheduled_policy_text": "Not scheduled in Lodgify",
"rate_policy_name": "Reservation start date > 2 weeks",
"rental_agreement_accepted": true,
"owner_payout": 0.0000
},
"subowner": {
"user_id": 23244,
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "66456534545"
},
"booking_total_amount": "1113",
"booking_currency_code": "USD",
"total_transactions": {
"amount": "0"
},
"balance_due": "1113"
}