Get locations

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

Use method get locations for retrieves a list of items type location.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"locations":[{"id":"7371382934206777120","name":"Sandbox GB Local Sales warehouse","address1":"4 Lindsey St","address2":null,"interiorNumber":null,"address3":null,"country":{"code":"GB","name":"United Kingdom of Great Britain and Northern Ireland","codeIso2":"GB","codeIso3":"GBR"},"state":{"code":"GL","name":"England","codeIso2":null,"codeIso3":null},"city":"London","postalCode":"EC1A 9HP","phone":"(+44)07123456789","active":null,"dates":{"createdAt":null,"updatedAt":null},"type":"SALES_WAREHOUSE"},{"id":"7371390431088903968","name":"Sandbox GB Local Return warehouse","address1":"4 Lindsey St","address2":null,"interiorNumber":null,"address3":null,"country":{"code":"GB","name":"United Kingdom of Great Britain and Northern Ireland","codeIso2":"GB","codeIso3":"GBR"},"state":{"code":"GL","name":"England","codeIso2":null,"codeIso3":null},"city":"London","postalCode":"EC1A 9HP","phone":"(+44)07123456789","active":null,"dates":{"createdAt":null,"updatedAt":null},"type":"RETURN_WAREHOUSE"}]}