List locations

List all locations for shipping, inventory, and order fulfillment.

🔒

Requires read_shop_navigation access scope. More access scope

The List locations API retrieves all locations for shipping, inventory, and order fulfillment.

This API is especially useful for:

  1. Managing multiple warehouse or store locations.
  2. Configuring shipping and fulfillment settings.
  3. Synchronizing location data with other systems.

Request Parameters

Public Request Parameters

📘

Query Parameters

Parameter

Type

Required

Description

Example

cursor

string

No

Cursor for pagination (next page).

"abc123"

per_page

int32

No

Number of items per page (default varies).

50

status

integer

No

Filter locations by status:
0: All locations
1: Enabled only
2: Disabled only

1

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Error code indicating request status.
messagestringDescriptive message about the response.
data.locationsarray[object]-List of location objects.
data.locations.idstring"loc_123"Unique location identifier.
data.locations.activebooleantrueWhether the location is active.
data.locations.defaultbooleanfalseWhether this is the default location.
data.locations.countrystring"United States"Full country name.
data.locations.country_codestring"US"ISO country code.
data.locations.provincestring"California"State/province name.
data.locations.province_codestring"CA"State/province code.
data.locations.citystring"San Francisco"City name.
data.locations.areastring"Downtown"District/area name.
data.locations.addressstring"123 Main St"Full address string.
data.locations.address1string"Suite 100"Additional address line.
data.locations.namestring"Main Warehouse"Location name.
data.locations.phonestring"+14155551234"Contact phone number.
data.locations.zipstring"94105"Postal/ZIP code.
data.locations.companystring"Acme Inc"Associated company name.
data.locations.latitudestring"37.7749"GPS latitude.
data.locations.longitudestring"-122.4194"GPS longitude.
data.locations.created_atstring"2023-01-01T00:00:00Z"Creation timestamp (ISO 8601).
data.locations.updated_atstring"2023-06-01T12:34:56Z"Last update timestamp (ISO 8601).
data.totalinteger"150"Total number of locations available.
data.cursorstring"def456"Pagination cursor for next page.
data.has_morebooleantrueWhether more results are available.

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!