Post Location

POST https://api.ecartapi.com/api/v2/locations

Request Body

{"location"=>{"id"=>"test4", "name"=>"W******21", "phone"=>"2**-**-***4", "description"=>"Items ship from here.", "status"=>"ENABLED", "types"=>["WAREHOUSE"], "address1"=>"2********e", "address2"=>"B********3", "city"=>"S*****e", "postalCode"=>"9***5", "country"=>{"name"=>"US"}, "state"=>{"name"=>"**"}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"success":true,"location":{"id":"test4","name":"W******21","address1":"2********e","address2":"B********3","interiorNumber":null,"address3":null,"country":{"code":null,"name":"US","codeIso2":null,"codeIso3":null},"state":{"code":null,"name":"**","codeIso2":null,"codeIso3":null},"city":"S*****e","postalCode":"9***5","phone":"2**-**-***4","active":null,"dates":{"createdAt":null,"updatedAt":null},"description":"Items ship from here.","status":"ENABLED","types":["WAREHOUSE"]}}