Guest Profile
Overview
The guest_profile module synchronizes guest profile 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 Guest Profile module uses the standard Open API request envelope with guest_profile as the module and an array of guest profile objects as data.
{
"module": "guest_profile",
"data": [
{}
],
"chunk_metadata": {}
}
Request Body Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Yes | Guest profile identifier. | GST-01 |
company_id | string | Yes | Identifier of the company the guest profile belongs to. The company must already exist. | HTL-001 |
email | string | Yes | Guest email address. | guest@example.com |
identity_type | string | Yes | Type of identity document used by the guest. | PASSPORT |
allergy | string | Yes | Allergy information associated with the guest. | None |
address | string | Yes | Guest address. | Jl. Melati No. 5, Jakarta |
country | string | Yes | Guest country code. | ID |
is_active | boolean | Yes | Boolean-ish value indicating whether the guest profile is active. | true |
date_of_birth | string | Yes | Guest date of birth in YYYY-MM-DD format. | 1990-05-14 |
Request Example
{
"module": "guest_profile",
"data": [
{
"id": "GST-01",
"company_id": "HTL-001",
"email": "guest@example.com",
"identity_type": "PASSPORT",
"allergy": "None",
"address": "Jl. Melati No. 5, Jakarta",
"country": "ID",
"is_active": true,
"date_of_birth": "1990-05-14"
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 1
}
}