Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method: GET
Path: /publishers/{publisherCode}/hotels/{hotelCode}/ratePlans/{ratePlanCode}/rates?startDate={yyyy-MM-dd} or
Path: /publishers/{publisherCode}/hotels/{hotelCode}/ratePlans/{ratePlanCode}/rates?startDate={yyyy-MM-dd}&range={30NumberOfDays}
Description: Fetch the rates for a rate plan code based on given publisher, hotel and date range.

Parameters

Name

Located in

Description

Required

Type

publisherCode

path

The unique identifier for the data publisher. Please refer to PMS RequestorID/publisherCode list

Yes

string

hotelCode

path

The code that uniquely identifies a single hotel property.

Yes

string

ratePlanCode

path

The rate plan code.

Yes

string

startDate

query

Start date to query for rates. Format like yyyy-MM-dd i.e 2017-07-21.

Yes

date

range

query

The number of days to query for. Maximum 30.

No

number

Responses

Code

Description

Schema

200

OK

Rate

401

Unauthorized

Error

403

Forbidden

Error

405

Method Not Supported

Error

429

Too Many Requests

TooManyRequests

500

Internal Server Error

Error

...

Response JSON Samples: Rates Sample