Skip to content

Get category mappings by codes in bulk

Request

Retrieve multiple category mappings by their codes in a single request.

Security
sessionAuth
Path
orgIdstringrequired

The ID of the organization.

Bodyapplication/jsonrequired
codesArray of strings

An array of category mapping codes to retrieve.

populateboolean

Set to true to populate nested category data within mappings.

Default:false
curl -i -X POST \
  'https://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/category/mapping/bulk' \
  -H 'Content-Type: application/json' \
  -b cc.session=YOUR_API_KEY_HERE \
  -d '{
    "codes": [
      "string"
    ],
    "populate": false
  }'

Responses

Array of category mappings matching the provided codes.

Bodyapplication/json
Array [
codestring

The code of the category.

mappingArray of objects(Category)

An array of category mappings to other categories.

archiveboolean

Indicates whether the category is archived.

mapping_codeArray of strings

An array of mapping codes.

sales_idArray of objects

An array of sales tree nodes with their mappings.

x_org_idstring

The organization ID.

created_bystring

The user who created the category.

modified_bystring

The user who last modified the category.

templatestring, (uuid)

The ID of the associated template.

]
Response
[ { "code": "string", "mapping": [ … ], "archive": true, "mapping_code": [ … ], "sales_id": [ … ], "x_org_id": "string", "created_by": "string", "modified_by": "string", "template": "060ce75e-87d6-4677-b330-eaee58e54138" } ]