curl --location 'https://marketplacerest.perenso.net/v1/customers/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
]
}'{
"name": "Harbourside Grocers",
"id": "CUST-1001",
"phone": {
"phoneNumber": "02 9555 0101",
"validationStatus": "VALID"
},
"email": {
"emailAddress": "orders@harbourside.example",
"validationStatus": "VALID"
},
"address": {
"street1": "12 Wharf Road",
"street2": "",
"street3": "",
"city": "Balmain",
"state": {
"id": "NSW",
"name": "New South Wales",
"country": {
"id": "AU",
"name": "Australia"
}
},
"zipCode": "2041"
},
"grade": {
"id": "GOLD",
"name": "Gold"
},
"orderingGroup": {
"id": "METRO",
"name": "Metro Stores"
},
"priceZone": {
"id": "PZ-EAST",
"name": "East Coast"
},
"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": [
{
"warehouse": {
"name": "Sydney DC",
"id": "WH-SYD",
"distributor": {
"id": "DIST-NSW",
"name": "Coastal Distribution"
},
"status": "ACTIVE"
},
"priority": 1,
"active": true,
"customerWarehouseId": "HSG-0042"
}
],
"users": [
{
"id": "REP-204",
"name": "Jordan Ellis"
}
]
}