Method Calls

addFlightBooking

This method call is only available to clients using the Monetate Travel API.

addFlightBooking Method Return Flight Example
addFlightBooking Method Multi-Flight Example


The addFlightBooking method passes information from your site to Monetate when a customer purchases a flight. This method consists of eight required attributes and seven optional attributes.

Required Attributes

These attributes are required with the addFlightBooking 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
  • purchaseId — A string that includes the order ID for a purchased 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 for the addFlightBooking 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