新增收货地址
接口功能
新增收货地址
URL
支持格式
JSON
HTTP请求方式
POST
header头
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| token | true | String | token |
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| province | true | string | 省 |
| city | true | string | 市 |
| district | true | string | 区 |
| address | true | string | 详细地址 |
| zip | true | string | 邮编 |
| name | true | string | 姓名 |
| phone | true | int | 手机 |
| default | true | int | 是否默认,0否1是 |
接口示例
json5
{
"msg": "ok",
"data": {
"user_id": 3,
"province": "广东省",
"city": "广州市",
"district": "白云区",
"address": "嘉禾...",
"zip": "",
"name": "...",
"phone": "13564568789",
"default": "1",
"last_used_time": 1573746669,
"create_time": "2019-11-14 23:51:09",
"update_time": "2019-11-14 23:51:09",
"id": "7"
}
}