id is required and must not be blank — it is the warehouse's external id, and the only way to retrieve, update or delete the warehouse afterwards. distributor.id is required and must already exist — use POST v1/Warehouses/bulk to create a warehouse under a distributor that does not exist yet. distributor.name is ignored here. Answers 201 with the warehouse. Without a status the warehouse is created ACTIVE.curl --location 'https://marketplacerest.perenso.net/v1/warehouses/create' \
--header 'Content-Type: application/json' \
--data '{
"name": "Melbourne DC",
"id": "WH-MEL",
"distributor": {
"id": "DIST-EAST"
},
"status": "ACTIVE"
}'{
"name": "Melbourne DC",
"id": "WH-MEL",
"distributor": {
"id": "DIST-EAST",
"name": "Eastern Distribution"
},
"status": "ACTIVE"
}