Skip to main content
POST
/
pos
/
{posSystemId}
/
company
/
{posCompanyId}
/
import
/
productCategories
Import products categories to the system
curl --request POST \
  --url https://public-api-demo.clearline.me/pos/{posSystemId}/company/{posCompanyId}/import/productCategories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "items": [
    {
      "name": "Category 1",
      "posProductParentCategoryId": "10",
      "posProductCategoryId": "2",
      "posCatalogId": "1"
    }
  ]
}
'
{
  "data": {
    "status": "<string>",
    "createdCount": 123,
    "updatedCount": 123,
    "errors": [
      {
        "entityId": "<string>",
        "rowNumber": 123,
        "errorMessage": "<string>",
        "errorDetails": "<string>"
      }
    ],
    "warnings": [
      {
        "entityId": "<string>",
        "rowNumber": 123,
        "message": "<string>",
        "details": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

posSystemId
string
required
posCompanyId
string
required

Body

Represents product items import category request for POS

items
object[] | null

Items to add

Response

Success

data
object

Results of import