**版本：202601**

# 查询位置详情

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

通过 ID 获取用于配送、库存和订单履约的地点详情。

## 请求

**Path参数**

- `location_id` uint64 (required)

  位置 ID

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `location` object

    位置信息

    - `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 格式

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "location": {
      "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"
    }
  }
}
```
