customerID matches an existing customer, it will be updated. Otherwise, it will be created.curl --location --request POST 'https://tsapi.perenso.net/v2/customers/bulk' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"customerID": "string",
"customerName": "string",
"email": "string",
"phone": "string",
"fax": "string",
"priceZone": 0,
"test": true,
"placeholder": true,
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"allowanceGroup": "string",
"deliveryGroup": "string",
"warehouseID": "string",
"customerClassID": "string",
"orderPermissionKey": 0,
"primarySalesRep": "string",
"salesReps": [
"string"
],
"orderingGroups": [
{
"orderingGroupID": "string",
"orderingGroupName": "string",
"orderingSubGroups": [
{
"orderingGroupID": "string",
"orderingGroupName": "string",
"customers": [
"string"
]
}
]
}
],
"extra1": "string",
"extra2": "string",
"extra3": "string",
"extra4": "string",
"extra5": "string"
}
]'{
"successful": [
{
"id": "9gsaja",
"customerID": "CUST0719"
},
{
"id": "86dk2g",
"customerID": "CUST8849"
},
{
"id": "shf869",
"customerID": "CUST5004"
}
],
"failed": [
{
"customerID": "CUST2145",
"messages": [
"Error message"
]
},
{
"customerID": "CUST3201",
"messages": [
"Error message"
]
}
]
}