Skip to main content
Version: 202506

List locations

GET 

/openapi/2025-06/locations

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

Request

Query Parameters

    cursor string

    Cursor of the next page

    page_size int32

    Number of records per page

    status enum

    Default to 0; 0: All, 1: Search the warehouse that is enabled, 2: Search the warehouse that is not enabled

    sort_by string

    Sort field. Defaults to listing the default location first. Supports "priority"

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    locations object[]

    List of locations

  • Array [
  • iduint64

    Location ID

    activeboolean

    Whether active

    defaultboolean

    Default

    countrystring

    Country name

    country_codestring

    Country code (e.g. CN)

    provincestring

    Province or state

    province_codestring

    Province code

    citystring

    City

    areastring

    Area or region

    addressstring

    Address

    address1string

    Primary address line

    namestring

    Name

    phonestring

    Phone number

    zipstring

    Postal or ZIP code

    companystring

    Company name

    latitudestring

    Latitude coordinate

    longitudestring

    Longitude coordinate

    created_atstring

    Creation timestamp, in ISO-8601 format

    updated_atstring

    Last update timestamp, in ISO-8601 format

  • ]
  • totalint64

    Total

    cursorstring

    The cursor for the next page of results

    has_moreboolean

    Whether there are more records