curl --location --request POST '/products/product-bulk-upload' \
--header 'Authorization: Bearer <token>' \
--form 'docs=@""'{
"success": true,
"message": "Product/Service queued successfully",
"data": {
"processedProduct": {
"totalProducts": 3,
"okCount": 1,
"errorCount": 2,
"formattedProducts": [
{
"productName": "vans",
"unit": "Cartons",
"pieces": 23,
"variantType": "Multiple Types",
"variantName": "m1",
"quantity": 23,
"costPrice": 2000,
"sellingPrice": 3000,
"rowNumber": 11
},
{
"productName": "vans",
"unit": "Cartons",
"pieces": 24,
"variantType": "Multiple Types",
"variantName": "m2",
"quantity": 2,
"costPrice": 3000,
"sellingPrice": 4000,
"rowNumber": 12
},
{
"productName": "golden yam",
"unit": "Pieces",
"pieces": 1,
"variantType": "One Type",
"quantity": 1,
"costPrice": 150,
"sellingPrice": 150,
"rowNumber": 13
}
],
"errors": [
{
"type": "existing_variant",
"message": "A variant with name m1 for product vans already exists on the server.",
"rowNumber": 11
},
{
"type": "existing_variant",
"message": "A variant with name m2 for product vans already exists on the server.",
"rowNumber": 12
}
]
},
"processedService": {
"totalServices": 2,
"okCount": 0,
"errorCount": 2,
"formattedServices": [
{
"name": "tailor",
"ratePerSession": 4000,
"rowNumber": 11
},
{
"name": "tailor",
"ratePerSession": 2000,
"rowNumber": 12
}
],
"errors": [
{
"type": "duplicate_service_name",
"row": 5,
"message": "Duplicate service name 'tailor' found in row 5.",
"rowNumber": 11
},
{
"type": "duplicate_service_name",
"row": 4,
"message": "Duplicate service name 'tailor' found in row 4.",
"rowNumber": 12
}
]
}
}
}