RateParity API
  • Introduction
  • Authentication
  • Internationalization
  • Model Description
  • Data Types
  • Pagination
  • Errors
  • Client API
  • Shopper
    • Shop Rates
  • Reviews
    • Fetch Reviews
  • Quote
    • Create Quote
  • Insights
    • Parity Timeline
Powered by GitBook
On this page
  • Model Description
  • Data Object Fields
  • Channel Object Fields
  • Rate Object Fields
  • Request Example
  • Response Example
  1. Shopper

Shop Rates

PreviousClient APINextFetch Reviews

Last updated 2 months ago

The Shop Rates endpoint retrieves OTA and CRS rates for a specific hotel, with the option to filter by a specific rate.

GET https://api.rateparity.com/v1/shopper/{code}

Path Parameters

Name
Type
Required
Description

code

String

Yes

The property code

Query Parameters

Name
Type
Required
Description

channel

No

If not provided, rates for all configured channels are returned

rateId

string

No

If not provided, the cheapest rate is returned.

Model Description

See for the base structure of responses.

Data Object Fields

Field
Type
Description

currency

String

The currency code (e.g., USD, EUR) for the returned rates.

channels

A list of available channels with rate details.

rates

A list of rates applicable to the hotel and filters provided.

Channel Object Fields

Field
Type
JSON Key
Description

sourceId

string

source_id

The unique identifier for the source channel.

sourceName

string

source_name

The name of the source channel (e.g., Booking.com, Expedia).

price

double

price

The price returned for the hotel in the specified channel.

Rate Object Fields

Field
Type
Description

price

double

The price for the specified rate.

roomId

string

The unique identifier for the room.

rateId

string

The unique identifier for the rate.

beRateId

List<string>

The unique booking engine identifier for the rate.

roomName

string

The name of the room.

cancellationPolicy

string

Details about the cancellation policy for the rate.

board

string

The board type (e.g., Bed & Breakfast, Half Board, Full Board).

extras

List<string>

List of additional services or extras included in the rate.

partnerRate

boolean

Indicates if the rate is a partner-specific rate (true or false).

lowestRate

boolean

Indicates if this is the lowest available rate (true or false).

Request Example

curl --location 'https://api.rateparity.com/v1/shopper/{code}?rateId={rateId}&channel={channel}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {JWT_TOKEN}'

Response Example

{
    "data": {
        "currency": "EUR",
        "channels": [
            {
                "source_id": "23",
                "source_name": "EXPEDIA",
                "price": 89
            },
            {
                "source_id": "25",
                "source_name": "AGODA",
                "price": 304
            },
            {
                "source_id": "22",
                "source_name": "BOOKING",
                "price": 313
            }
        ]
    }
}

List<>

List<>

Model Description
Channel
Rate
Channel Type