收货地址列表

收货地址列表

请求地址

GET https://{host}/openapi/address/list

请求参数

属性 类型 默认值 必填 说明
x-token String 用户token

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "total": 2,
    "list": [
      {
        "id": 2,
        "name": "dfsd",
        "userId": 3,
        "province": "北京市",
        "city": "市辖区",
        "county": "东城区",
        "addressDetail": "asdasda",
        "areaCode": "110101",
        "postalCode": null,
        "tel": "13333333333",
        "isDefault": 0
      }
    ]
  }
}

参数说明

属性 类型 说明
data DATA 包含返回的数据
errcode number 错误码
errmsg string 错误信息

DATA

属性 类型 说明
pageNum int 当前页码
pageSize int 当前页大小
list list(address) 数据列表

address

属性 类型 说明
id int id
name String 收货人名称
userId int 用户表的用户ID
province String 行政区域表的省ID
city String 行政区域表的市ID
county String 行政区域表的区县ID
addressDetail String 详细收货地址
areaCode String 地区编码
postalCode String 邮政编码
tel String 手机号码
isDefault int 是否默认地址 1 默认地址 0 非默认地址

errcode 的合法值

说明 最低版本
-1 系统错误
0 请求成功
20001 参数为空
20003 参数错误

results matching ""

    No results matching ""