**版本：202601**

# 查询位置列表

**GET** `/openapi/2026-01/locations`

返回店铺所有用于配送、库存和订单履约的地点列表。

## 请求

**Query参数**

- `cursor` string

  分页游标
- `page_size` int32

  每页记录数
- `page` int32

  页码（从 1 开始），与 cursor 互斥
- `status` enum

  状态
- `sort_by` string

  排序字段。默认将默认地点排在最前，支持 priority

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `locations` object[]

    位置列表

    *   Array \[

    - `id` uint64

      唯一标识
    - `active` boolean

      是否激活
    - `default` boolean

      是否默认
    - `country` string

      国家名称
    - `country_code` string

      国家代码（如 CN）
    - `province` string

      省份或州
    - `province_code` string

      省份代码
    - `city` string

      城市
    - `area` string

      地区或区域
    - `address` string

      地址
    - `address1` string

      主要地址行
    - `name` string

      名称
    - `phone` string

      电话号码
    - `zip` string

      邮政编码
    - `company` string

      公司名称
    - `latitude` string

      纬度坐标
    - `longitude` string

      经度坐标
    - `created_at` string

      创建时间，ISO-8601 格式
    - `updated_at` string

      最后更新时间，ISO-8601 格式
    *   \]
  - `total` int64

    总计
  - `cursor` string

    分页游标
  - `has_more` boolean

    是否有更多记录

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "locations": [
      {
        "id": 0,
        "active": true,
        "default": true,
        "country": "string",
        "country_code": "string",
        "province": "string",
        "province_code": "string",
        "city": "string",
        "area": "string",
        "address": "string",
        "address1": "string",
        "name": "string",
        "phone": "string",
        "zip": "string",
        "company": "string",
        "latitude": "string",
        "longitude": "string",
        "created_at": "string",
        "updated_at": "string"
      }
    ],
    "total": 0,
    "cursor": "string",
    "has_more": true
  }
}
```
