添加或更新收货地址

添加或更新收货地址

请求地址

POST https://{host}/openapi/address/save

请求参数

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

body

属性 类型 默认值 必填 说明
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": "0",
  "errmsg": ""
}

参数说明

属性 类型 说明
errcode number 错误码
errmsg string 错误信息

errcode 的合法值

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

results matching ""

    No results matching ""