简要描述:

  • 编辑地址接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 孙程 2019-06-26
1.0.1 孙程 2019-07-03

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
Content-Type
Content-MD5

请求参数:

参数名 是否必须 类型 说明
op string 操作:show 显示编辑的地址信息
id int 收货人地址id
参数名 是否必须 类型 说明
id int 收货人地址id
op string 操作:save 保存编辑的地址
country int 国家id
province int 省id
city int 市id
borough int 区id
address string 详细地址
zip string 邮编
mobile string 手机号
receiver string 收件人
remark string 备注

返回示例:

正确时返回(例子):

{
    "msg": "Edit address successful",
    "code": 200,
    "icon": 1,
    "time": 2000,
    "data": {
        "id": "15",
        "op": "save",
        "country": "764756",
        "province": null,
        "city": null,
        "borough": null,
        "address": "sdjfgdjghdjghdjghj",
        "zip": null,
        "mobile": "54654657",
        "receiver": "shdf"
    }
}

错误时返回:

"msg": "请求失败",
    "code": 400,
    "icon": 2,
    "time": 2000,
    "data": {}

返回参数说明:

参数名 类型 说明

备注:

  • 更多返回错误代码请看下面
文档更新时间: 2019-07-15 19:52   作者:jetsamsun
上一篇:
下一篇: