Create a shipping location

POST {{baseUrl}}/companies/:companyId/shippingLocations

Creates a shipping location for the company identified in the path. A shipping location defines an address where orders can be delivered. To make this request, your API credential must have the following role: * Management API—Terminal ordering read and write

Request Body

{"name"=>"YOUR_COMPANY Rokin depot", "address"=>{"companyName"=>"YOUR_COMPANY", "streetAddress"=>"Rokin 21", "postalCode"=>"1012 KS", "city"=>"Amsterdam", "stateOrProvince"=>"", "country"=>"NL"}, "contact"=>{"firstName"=>"Paul", "lastName"=>"Green", "phoneNumber"=>"+31 020 1234567", "email"=>"Paul.Green@company.com"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"S2-7973536B20662642215526704F302044452F714622375D476169","name":"YOUR_COMPANY Rokin depot","contact":{"firstName":"Paul","lastName":"Green","phoneNumber":"+31 020 1234567","email":"Paul.Green@company.com"},"address":{"companyName":"YOUR_COMPANY","streetAddress":"Rokin 21","postalCode":"1012 KS","city":"Amsterdam","stateOrProvince":""}}