Append Stay data
Store Hotel Stay Interaction history as you send contact data to us
Overview
Airship can store full hotel stay booking history for each contact.
Having stay data attached to contacts is useful to measure and target recent or lapsed visitors based on their last visit.
Storing Stays
To store stay history, simply append a stays
object to your contact as you send it to us.
Field | Notes |
---|---|
| True / False, if the contact data being provided is the Booker of the Stay Required field |
| True / False, if the contact data being provided is the Guest of the Stay Required field |
| The unit_id representing the physical location for which this WIFI interaction relates Required field |
| Unique ID for the integration partner. If you are a new integrator, please contact our support team to get a new ID setup Required field |
| Unique booking reference for the stay. If the stay_reference has previously been provided by the same provider, we will interoperate this as an update to that Stay Required field |
| Date/time the stay was created, in the format 'yyyy-mm-dd hh:mm:ss' Required field |
| Date/time of the stay checkin, in the format 'yyyy-mm-dd hh:mm:ss' Required field |
| Date/time of the stay checkout, in the format 'yyyy-mm-dd hh:mm:ss' Required field |
| 1 = Basic 2 = Standard 3 = Premium The classification of the room type booked Required field |
| This is a sum of the total guests booked for the stay (adults + children) Required field |
| This is the total children booked for the stay |
| 1 = Website
9 = In house
10 = 3rd Party
You can also retrieve booking source IDs from the |
| Deposit paid for Stay |
| Gross room value for stay |
| Net room value for Stay |
| Extras gross value for Stay |
| Extras net value for Stay |
| 1 = Enquiry 2 = Provisional 3 = Confirmed 4 = Checked in 5 = Cancelled 6 = No show 7 = Checked out The latest status for the Stay Required field |
| Internal Room Rate Code for the booking |
| Internal Room Package Code for the booking |
| If the booking had a voucher associated Boolean, true / false |
| If the booking has pets Boolean, true / false |
| If the booking was an OTA, what is the travel agent provider? (i.e. Booking.com) |
Example Payload
Extras
Extras can now be added to a Booking to allow us to capture any additional products / purchases / upsells.
Field | Notes |
---|---|
name | String description of the extra Required |
reference | SKU or product reference number for the extra Required |
start_date | Extra start date (use stay checkin date if not applicable) Required |
end_date | Extra end date (use stay check out date if not applicable) optional |
price | value of the extra(s) in pence Required |
Update bookings
To update a booking, you can pass the same object against a contact - and if we identify the stay_reference
and provider_id
against an existing stay, that stay will be updated.
Last updated