Skip to main content

Category

Overview

The category module synchronizes POS product category master data for a company. This module depends on company. The referenced company_id must already exist. Categories can represent parent and child categories using is_parent and parent_id.

Request

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

Request Envelope

The Category module uses the standard Open API request envelope with category as the module and an array of category objects as data.

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

Request Body Fields

FieldTypeRequiredDescriptionExample
idstringYesCategory identifier.CAT-01
company_idstringYesIdentifier of the company the category belongs to. The company must already exist.HTL-001
namestringYesCategory name.Beverage
parent_idstringOptionalIdentifier of the parent category, when applicable.CAT-01
descriptionstringOptionalOptional description of the category.
is_parentbooleanOptionalIndicates whether the category is a parent category.true

Request Example

{
"module": "category",
"data": [
{
"id": "CAT-01",
"company_id": "HTL-001",
"name": "Beverage",
"is_parent": true
},
{
"id": "CAT-02",
"company_id": "HTL-001",
"name": "Soft Drink",
"parent_id": "CAT-01",
"is_parent": false
}
],
"chunk_metadata": {
"process_id": "sync-htl001-2026-08-30",
"chunk_sequence": 1,
"is_last_chunk": true,
"total_records_in_chunk": 2
}
}