Skip to main content

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

FieldTypeRequiredDescriptionExample
idstringYesGuest profile identifier.GST-01
company_idstringYesIdentifier of the company the guest profile belongs to. The company must already exist.HTL-001
emailstringYesGuest email address.guest@example.com
identity_typestringYesType of identity document used by the guest.PASSPORT
allergystringYesAllergy information associated with the guest.None
addressstringYesGuest address.Jl. Melati No. 5, Jakarta
countrystringYesGuest country code.ID
is_activebooleanYesBoolean-ish value indicating whether the guest profile is active.true
date_of_birthstringYesGuest 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
}
}