Skip to main content
POST
/
pos
/
{posSystemId}
/
company
/
{posCompanyId}
/
import
/
products
Import products to the system
curl --request POST \
  --url https://public-api-demo.clearline.me/pos/{posSystemId}/company/{posCompanyId}/import/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "items": [
    {
      "productId": "1",
      "productName": "Product 1",
      "productCategoryId": "10",
      "productCategory": "Category 10",
      "manufacturer": "Manufacturer 5",
      "price": 10
    }
  ]
}
'
{
  "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 request for POS

items
object[] | null

Items to add

Response

Success

data
object

Results of import