版本:202607
查询位置详情
GET/openapi/2026-07/locations/:location_id
通过 ID 获取用于配送、库存和订单履约的地点详情。
请求
Path参数
location_id uint64必填
位置 ID
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
location object
位置信息
iduint64
唯一标识
activeboolean
是否激活
defaultboolean
是否默认
countrystring
国家名称
country_codestring
国家代码(如 CN)
provincestring
省份或州
province_codestring
省份代码
citystring
城市
areastring
地区或区域
addressstring
地址
address1string
主要地址行
namestring
名称
phonestring
电话号码
zipstring
邮政编码
companystring
公司名称
latitudestring
纬度坐标
longitudestring
经度坐标
created_atstring
创建时间,ISO-8601 格式
updated_atstring
最后更新时间,ISO-8601 格式
{
"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"
}
}
}