Agent
Overview
The agent module synchronizes agent 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 Agent module uses the standard Open API request envelope with agent as the module and an array of agent objects as data.
{
"module": "agent",
"data": [
{}
],
"chunk_metadata": {}
}
Request Body Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Yes | Agent identifier. | AGT-01 |
company_id | string | Yes | Identifier of the company the agent belongs to. The company must already exist. | HTL-001 |
name | string | Yes | Agent name. | Traveloka |
commission | number | Yes | Commission value for the agent. | 15 |
payment_status | string | Yes | Payment status of the agent. | PREPAID |
Request Example
{
"module": "agent",
"data": [
{
"id": "AGT-01",
"company_id": "HTL-001",
"name": "Traveloka",
"commission": 15,
"payment_status": "PREPAID"
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 1
}
}