curl --location '/api/v1/core/products/import/preview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"rows": [
{
"rowIndex": 0,
"productCode": "string",
"productName": "string",
"typeId": "Goods",
"unitName": "string",
"price": 0,
"vatTypeId": "VAT",
"whtTypeId": "1",
"description": "string"
}
]
}'{
"success": true,
"error": null,
"data": {
"rows": [
{
"rowIndex": 0,
"status": "valid",
"errors": [
"string"
],
"existingProductId": "string"
}
],
"summary": {
"valid": 0,
"duplicate": 0,
"error": 0
}
}
}