Create a shipping location

POST {{baseUrl}}/merchants/:merchantId/shippingLocations

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

Request Body

{"name"=>"{{YOUR_MERCHANT_ACCOUNT}} Barcelona depot", "address"=>{"companyName"=>"YOUR_COMPANY", "streetAddress"=>"El quinto pino 42", "postalCode"=>"08012", "city"=>"Barcelona", "stateOrProvince"=>"", "country"=>"ES"}, "contact"=>{"firstName"=>"Rita", "lastName"=>"Perengano", "phoneNumber"=>"+34 93 1234567", "email"=>"Rita.Perengano@company.com"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"S2-73536B20665526704F30792642212044452F714622375D477270","name":"YOUR_MERCHANT_ACCOUNT Barcelona depot","contact":{"firstName":"Rita","lastName":"Perengano","phoneNumber":"+34931234567","email":"Rita.Perengano@company.com"},"address":{"companyName":"YOUR_COMPANY","streetAddress":"El quinto pino 42","postalCode":"08012","city":"Barcelona","stateOrProvince":""}}