Skip to main content

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

FieldTypeRequiredDescriptionExample
idstringYesAgent identifier.AGT-01
company_idstringYesIdentifier of the company the agent belongs to. The company must already exist.HTL-001
namestringYesAgent name.Traveloka
commissionnumberYesCommission value for the agent.15
payment_statusstringYesPayment 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
}
}