id is required and must not be blank — it is the distributor's external id, and the only way to retrieve, update or delete the distributor afterwards. warehouses is optional — a distributor can be created with none and have them added later, either here on a subsequent update or through POST v1/Warehouses/bulk, which creates a warehouse under a distributor by external id. Answers 201 with the distributor.curl --location 'https://marketplacerest.perenso.net/v1/distributors/create' \
--header 'Content-Type: application/json' \
--data '{
"id": "DIST-WEST",
"name": "Western Distribution",
"warehouses": [
{
"id": "WH-PER",
"name": "Perth DC",
"status": "ACTIVE"
}
]
}'{
"id": "DIST-WEST",
"name": "Western Distribution",
"warehouses": [
{
"name": "Perth DC",
"id": "WH-PER",
"status": "ACTIVE"
}
]
}