curl --location 'https://marketplacerest.perenso.net/v1/customers/bulk' \
--header 'Content-Type: application/json' \
--data-raw '{
"customers": [
{
"name": "Harbourside Grocers",
"id": "CUST-1001",
"phone": "02 9555 0101",
"email": "orders@harbourside.example",
"address": {
"street1": "12 Wharf Road",
"city": "Balmain",
"stateId": "NSW",
"countryId": "AU",
"zipCode": "2041"
},
"gradeId": "GOLD",
"orderingGroupId": "METRO",
"priceZoneId": "PZ-EAST",
"status": "ACTIVE",
"customFields": {
"DELIVERY_NOTES": {
"type": "TEXT",
"value": "Deliver via the rear loading dock before 7am"
},
"REGION": {
"type": "SELECTION",
"value": [
{
"id": "NSW-METRO",
"name": "NSW Metro"
}
]
}
},
"orderWarehouses": [
{
"warehouseId": "WH-SYD",
"priority": 1,
"active": true,
"customerWarehouseId": "HSG-0042"
}
]
},
{
"id": "CUST-1003",
"name": "Bayview Deli",
"gradeId": "BRONZE-PLUS",
"status": "ACTIVE"
}
]
}'{
"successful": [
"CUST-1001"
],
"successfulItems": [],
"failed": [
{
"id": "CUST-1003",
"message": "gradeId not found"
}
]
}