curl --location 'https://marketplacerest.perenso.net/v1/products/bulk' \
--header 'Content-Type: application/json' \
--data '{
"products": [
{
"id": "PROD-1042",
"name": "Sparkling Water",
"vendorId": "VEND-ACME",
"brandId": "BR-CLEARSPRING",
"categoryId": "CAT-WATER",
"isKit": false,
"isSoldByWeight": false,
"weightUnitId": "kg",
"status": "ACTIVE",
"allowedOptions": {
"BOTTLE_SIZE": [
{
"id": "330ML",
"name": "330ml"
},
{
"id": "750ML",
"name": "750ml"
}
]
},
"customFields": {
"NOTES": {
"type": "TEXT",
"value": "Summer range"
},
"REGION": {
"type": "SELECTION",
"value": [
{
"id": "NSW"
}
]
}
}
},
{
"id": "PROD-1043",
"name": "Still Water",
"vendorId": "VEND-NOPE",
"status": "ACTIVE"
}
]
}'{
"successful": [
"PROD-1042"
],
"successfulItems": [
{
"id": "PROD-1042",
"entityId": "UHJvZHVjdENvcmUKaTEwNDI=",
"created": false,
"skippedProducts": null
}
],
"failed": [
{
"id": "PROD-1043",
"message": "vendorId not found"
}
]
}