Content-Type: application/json (indicates that the request body format is JSON){
"products": [
{
"goodsName": "string", // Name of the product
"goodsCode": "string", // Unique code for the product
"measureUnit": "string", // Unit of measurement for the product
"unitPrice": "number", // Price per unit of the product
"currency": "string", // Currency code (e.g., USD, EUR)
"commodityCategoryId": "string", // ID for the commodity category
"haveExciseTax": "string", // Indicates if the product has excise tax
"description": "string", // Description of the product
"stockPrewarning": "string", // Pre-warning level for stock
"pieceMeasureUnit": "string", // Measure unit for pieces (if applicable)
"havePieceUnit": "string", // Indicates if there is a piece unit
"pieceUnitPrice": "number", // Price per piece (if applicable)
"packageScaledValue": "string", // Scaled value for packages (if applicable)
"pieceScaledValue": "string", // Scaled value for pieces (if applicable)
"exciseDutyCode": "string" // Code for excise duty (if applicable)
}
]
}
{
"success": true
}
curl --location --request POST 'https://auth.efris.kakasa.xyz/api/v1/efris/register-product' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"products": [
{
"goodsName": "Diesel fuel",
"goodsCode": "DFOO2",
"measureUnit": "101", // Refer to the Units of Measure endpoint
"unitPrice": "5200",
"currency": "101", // Refer to the master data document
"commodityCategoryId": "15101505",
"haveExciseTax": "102",
"description": "1",
"stockPrewarning": "1",
"pieceMeasureUnit": "",
"havePieceUnit": "102",
"pieceUnitPrice": "",
"packageScaledValue": "",
"pieceScaledValue": "",
"exciseDutyCode": ""
}
]
}'{}