Method Calls

addCruiseBooking

this method call is only available to clients using the getting started with the monetate travel api addcruisebooking method // addcruisebooking method window\ monetateq = window\ monetateq || \[]; var bookingobject = { // required 'adults' \[2], 'dtbegin' \['20260601'], // june 1, 2026 'dtend' \['20260605'], // june 5, 2026 'guests' \[5], // optional 'children' \[3], 'port' \['port royal'], 'dest' \['tortuga'], 'ship' \['the black pearl'], 'rmclass' \['captains quarters'], 'rmnumber' \[1] }; window\ monetateq push(\['addcruisebooking', bookingobject, 'wa123', 'royal1', 1, '400 00', // optional 'gbp' ]); window\ monetateq push(\['trackdata']); the addcruisebooking method passes information from your site to monetate when a customer purchases a cruise this method consists of eight required attributes and seven optional attributes required attributes these attributes are required with the addcruisebooking method adults — an integer that includes the total number of adult passengers for the cruise dtbegin — a string that includes the cruise's start date in yyyymmdd format dtend — a string that includes the cruise's end date in yyyymmdd format guests — an integer that includes the total number of adults and children for the cruise purchaseid — a string that includes the order id for a purchased cruise pid — a string without spaces that includes an internal id used to identify a cruise quantity — an integer that includes the number of cruises booked, which is typically 1 unitprice — a string that includes the cruise's price in the format xx xx optional attributes these attributes are optional for the addcruisebooking method dest — a string that includes the cruise's port of destination children — an integer that includes the total number of child passengers for the cruise port — a string that includes the cruise's port of departure rmclass — a string that includes the type of room selected for the cruise rmnumber — a string or integer that includes the room number selected for the cruise ship — a string that includes the name of the cruise ship currency — a string in the iso 4217 standard (three capital letters and no spaces) that includes the currency used to book the cruise