Create location
POST https://api.ecartapi.com/api/v2/locations
This API endpoint is a feature of the ecartapi solution, designed to work seamlessly with multiple e-commerce platforms, such as Multivende. It enables users to create a new warehouse by providing essential location details in a JSON request.
For reference find de multivende documentation for this endpoint here.
Request Body
{"location"=>{"name"=>"warehouse 3", "description"=>"The main warehouse of the company", "address1"=>"Antonio Varas 175, Of 402, Providencia, Santiago", "phone"=>"5656 5281", "workingHours"=>"09:00 to 19:00 hours."}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"location":{"id":"615633ab-38ef-4ce2-9313-e57243b9cb4c","name":"warehouse 3","address1":"Antonio Varas 175, Of 402, Providencia, Santiago","address2":null,"country":{"code":null,"name":null,"codeIso2":null,"codeIso3":null},"state":{"code":null,"name":null,"codeIso2":null,"codeIso3":null},"city":null,"postalCode":null,"phone":"5656 5281","active":null,"dates":{"createdAt":"2023-10-11T20:42:49.000Z","updatedAt":"2023-10-11T20:42:49.000Z"}}}