Skip to main content

Rates Calendar

Overview

The Rates Calendar endpoint returns room rate information for the requested date range. The response is grouped by room type and includes details such as the room type ID, name, company ID, and code. Each room type contains a list of room rates with their identifiers, names, rate values, and associated date records.

Each date record includes an index, date, and price value, which may be null when no price is available. This endpoint is commonly used to review room rates across multiple dates and support rate calendar and pricing management.

Request Endpoint

  • HTTP Method: POST
  • Secure URL Path: {{base_url}}/api/reservation/rates_calendar

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescriptionExample
start_datestringYesStart date (YYYY-MM-DD) for the report.2026-07-01
end_datestringYesEnd date (YYYY-MM-DD) for the report.2026-07-01

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed. false means success.
statusstringYesStatus string. On success the example returns "ok".
messagestringYesHuman-readable message. Often empty on success.
dataarray<object>Yes (on success)Array of rates calendar objects.

Response data Fields

FieldTypeDescriptionExample
idstringId of room type.02186030-...
namestringName of room type.Superior One Bedroom Garden Villa With Private Hea
company_idstringCompany ID.88f4e090-...
codestringCode of room type.Superior One Bedroom Garden Villa With Private Heated Pool
room_ratearray of objectList of room rate object (see below)[ ... ]

Response data.room_rate Fields

FieldTypeDescriptionExample
idstringId of room rate.0803d680-...
namestringName of room rate.every tommorow night ( package ) ( Superior One Bedroom Garden Villa With Private Hea )
rates_idstringRates ID.08036300-...
ratesnumberRates of room rate.0
datesarray of objectList of dates object (see below)[ ... ]

Response data.room_rate.dates Fields

FieldTypeDescriptionExample
indexnumberPosition.0
datestringDate.2026-07-01
pricestringPrice (nullable)..null

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"id": "02186030-434c",
"name": "Superior One Bedroom Garden Villa With Private Hea",
"company_id": "88f4e090-b33f",
"code": "Superior One Bedroom Garden Villa With Private Heated Pool",
"room_rate": [
{
"id": "0803d680-927f",
"name": "every tommorow night ( package ) ( Superior One Bedroom Garden Villa With Private Hea )",
"rates_id": "08036300-927f",
"rates": 0,
"dates": [
{
"index": 0,
"date": "2026-07-01",
"price": null
}
]
}
]
}
]
}