Method Calls
addHotelBooking
this method call is only available to clients using the getting started with the monetate travel api addhotelbooking method // addhotelbooking method window\ monetateq = window\ monetateq || \[]; var bookingobject = { // required 'checkin' \['20260212'], // february 12, 2026 'checkout' \['20260224'], // february 24, 2026 'city' \['london'], 'country' \['united kingdom'], 'guests' \[4], 'rooms' \[1], // optional 'adults' \[2], 'children' \[2], 'region' \['london'], 'type' \['double'] }; window\ monetateq push(\['addhotelbooking', bookingobject, 'lon12345', 'regents', 1, '400 00', // optional 'usd' ]); window\ monetateq push(\['trackdata']); the addhotelbooking method passes information from your site to monetate when a customer completes the purchase of a hotel this method consists of 10 mandatory attributes and five optional attributes required attributes these attributes are required with the addhotelbooking method checkin — a string that includes the check in date for the hotel stay in yyyymmdd format checkout — a string that includes the check out date for the hotel stay in yyyymmdd format city — a string that includes the city where a hotel was searched for country — a string that includes the country where a hotel was searched for guests — an integer that includes the total number of adults and children staying in a hotel room rooms — an integer that includes the total number of hotel rooms searched for purchaseid — a string that includes the order id for a purchased hotel pid — a string without spaces that includes an internal id used to identify a hotel quantity — an integer that includes the number of hotel rooms booked unitprice — a string that includes the price of the hotel in the format xx xx optional attributes these attributes are optional for the addhotelbooking method adults — an integer that includes the total number of adults staying in a hotel room children — an integer that includes the total number of children staying in a hotel room region — a string that includes the state, province, or region where a hotel was searched for type — a string that includes the type of hotel room searched for currency — a string in the iso 4217 standard (three capital letters and no spaces) that includes the currency used to book the hotel