Room Type
Overview
The room_type module synchronizes room type 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 Room Type module uses the standard Open API request envelope with room_type as the module and an array of room type objects as data.
{
"module": "room_type",
"data": [
{}
],
"chunk_metadata": {}
}
Request Body Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Yes | Room type identifier. | RT-01 |
company_id | string | Yes | Identifier of the company the room type belongs to. The company must already be synchronized. | HTL-001 |
name | string | Yes | Room type name. | Deluxe |
code | string | Yes | Room type code. | DLX |
Request Example
{
"module": "room_type",
"data": [
{
"id": "RT-01",
"company_id": "HTL-001",
"name": "Deluxe",
"code": "DLX"
},
{
"id": "RT-02",
"company_id": "HTL-001",
"name": "Suite",
"code": "STE"
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 2
}
}