---
title: addFlightReview
slug: js-api/addflightreview
description: Overview of the Monetate Travel API's addFlightReview method and how to use it
image:  https://archbee-image-uploads.s3.amazonaws.com/ceIfEvQHzQk1IVxoRWUh7/K9eTL4jKm7UQINb6zNziJ-20250912-181225.png
docTags: 
createdAt: 2024-04-30T20:22:51.652Z
---

:::hint{type="warning"}
This method call is only available to clients using the [Monetate Travel API](docId\:vhdqXHIQl8l4Mfz6YjkVB).
:::

:::CodeblockTabs
addFlightReview Method Return Flight Example

```javascript
// 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

```javascript
// 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](https://www.iso.org/iso-4217-currency-codes.html) standard (three capital letters and no spaces) that includes the currency used to book the flight

