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

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

:::CodeblockTabs
addHotelReview Method

```javascript
// addHotelReview Method
window.monetateQ = window.monetateQ || [];
var reviewObject = {
  // Required
  'checkIn': ['20260212'], // February 12, 2026
  'checkOut': ['20260224'], // February 24, 2026
  'city': ['London'],
  'country': ['United Kingdom'],
  'guests': [3],
  'rooms': [2],
  // Optional
  'adults': [2],
  'children': [1],
  'region': ['London'],
  'type': ['Single']
};
window.monetateQ.push(['addHotelReview',
  reviewObject,
  'Regents',
  1,
  '200.00',
  // Optional
  'GBP'
]);
window.monetateQ.push(['trackData']);
```
:::

The `addHotelReview` method passes information from your site to Monetate when a customer adds a hotel to the cart. This method consists of nine required attributes and five optional attributes.

## Required Attributes

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

