Skip to main content

Sales Type

Overview

The sales_type module synchronizes sales type master data for a company. This module depends on company. The referenced company_id must already exist.

Request

  • Method: POST
  • Path: {{base_url}}/api/sync-master-data

Request Envelope

The Sales Type module uses the standard Open API request envelope with sales_type as the module and an array of sales type objects as data.

{
"module": "sales_type",
"data": [
{}
],
"chunk_metadata": {}
}

Request Body Fields

FieldTypeRequiredDescriptionExample
idstringYesSales type identifier.ST-01
company_idstringYesIdentifier of the company the sales type belongs to. The company must already exist.HTL-001
namestringOptionalSales type name.Service Charge
typestringOptiona;Type associated with the sales type.PERCENTAGE
type_valuenumberOptionalValue associated with the sales type.10
system_calculationstringOptionalIndicates whether the sales type uses system calculation.""

Request Example

{
"module": "sales_type",
"data": [
{
"id": "ST-01",
"company_id": "HTL-001",
"name": "Service Charge",
"type": "PERCENTAGE",
"type_value": 10,
"system_calculation": ""
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 1
}
}