Skip to main content

Rates

Overview

The rates module synchronizes rate master data for a company. This module depends on company. The referenced company_id must already exist, so the corresponding company must be synchronized first.

Request

  • Method: POST
  • Path: {{base_url}}/api/sync-master-data

Request Envelope

The Rates module uses the standard Open API request envelope with rates as the module and an array of rate objects as data.

{
"module": "rates",
"data": [
{}
],
"chunk_metadata": {}
}

Request Body Fields

FieldTypeRequiredDescriptionExample
idstringYesRate identifier.RATE-01
company_idstringYesIdentifier of the company the rate belongs to. The company must already exist.HTL-001
namestringYesRate name.Best Available Rate
start_datestringYesStart date of the rate in YYYY-MM-DD format.2026-09-01
end_datestringYesEnd date of the rate in YYYY-MM-DD format.2026-12-31
taxes_pctnumberYesTax percentage applied to the rate.10
service_pctnumberYesService percentage applied to the rate.5
include_extra_bedbooleanYesBoolean-ish value indicating whether an extra bed is included.false
include_breakfastbooleanYesBoolean-ish value indicating whether breakfast is included.true
minimum_nightnumberYesMinimum night requirement for the rate.1
maximum_staynumberYesMaximum stay allowed for the rate.30
guest_include_in_ratenumberYesNumber of guests included in the rate.2
guests_max_in_ratenumberYesMaximum number of guests allowed in the rate.4
typestringYesRate type.ROOM_ONLY
is_packagebooleanYesBoolean-ish value indicating whether the rate is a package.false
is_activebooleanYesBoolean-ish value indicating whether the rate is active.true
open_ratebooleanYesBoolean-ish value indicating whether the rate is open rate.true

Request Example

{
"module": "rates",
"data": [
{
"id": "RATE-01",
"company_id": "HTL-001",
"name": "Best Available Rate",
"start_date": "2026-09-01",
"end_date": "2026-12-31",
"taxes_pct": 10,
"service_pct": 5,
"include_extra_bed": false,
"include_breakfast": true,
"minimum_night": 1,
"maximum_stay": 30,
"guest_include_in_rate": 2,
"guest_max_in_rate": 4,
"type": "ROOM_ONLY",
"is_package": false,
"is_active": true,
"open_rate": true
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 1
}
}