Method Calls
addFlightReview
this method call is only available to clients using the getting started with the monetate travel api addflightreview method return flight example // addflightreview method // return flight example window\ monetateq = window\ monetateq || \[]; var reviewobject = { // required 'depdate' \['20260511'], // may 11, 2026 'destination' \['txl'], 'origin' \['cdg'], 'travelers' \[4], // optional 'adults' \[1], 'infants' \[1], 'minors' \[1], 'seniors' \[1], 'retdate' \['20260529'], // may 29, 2026 'serviceclass' \['economy'] }; window\ monetateq push(\['addflightreview', reviewobject, 'cdg lhr', 1, '530 50', // optional 'eur' ]); window\ monetateq push(\['trackdata']);; addflightreview method multi flight example // addflightreview method // multi flight example window\ monetateq = window\ monetateq || \[]; var reviewobject = { // required 'depdate' \['20260315', '20260320'], // march 15, 2026 and march 20, 2026 'destination' \['cdg', 'txl'], 'origin' \['lhr', 'cdg'], 'travelers' \[5], // optional 'adults' \[2], 'infants' \[1], 'minors' \[1], 'seniors' \[1], 'serviceclass' \['economy'] }; window\ monetateq push(\['addflightreview', bookingobject, 'lhr cdg', 1, '1200 00', // optional 'eur' ]); window\ monetateq push(\['trackdata']); the addflightreview method passes information from your site to monetate when a user adds a flight to the cart this method consists of seven required attributes and seven optional attributes required attributes these attributes are required with the addflightreview method depdate — a string that includes the flight's departure date in yyyymmdd format destination — a string that includes the flight's destination (airport or city) origin — a string that includes the flight's point of origin (airport or city) travelers — an integer that includes the number of travelers on a flight pid — a string without spaces that includes an id used to identify a flight quantity — an integer that includes the number of flights booked unitprice — a string that includes the flight's price in the format xx xx optional attributes these attributes are optional with the addflightreview method adults — an integer that includes the total number of adults booking a flight infants — an integer that includes the total number of infants booking a flight minors — an integer that includes the total number of minors booking a flight seniors — an integer that includes the total number of seniors booking a flight retdate — a string that includes the flight's return date in yyyymmdd format; not used for multiple flights serviceclass — a string that includes the service class for the seats on a flight booked (business, economy, first, etc ) currency — a string in the iso 4217 standard (three capital letters and no spaces) that includes the currency used to book the flight