请求方式 POST 请求路径 api/Promotions/AddCustomerAddress
添加收货地址
URI 参数说明
None.
Json字符串 参数说明:Body Data
ShopCustomerAddressModel
| 字段 | 说明 | 类型 | 备注说明 |
|---|---|---|---|
| ID |
编号 |
integer |
None. |
| CustomerId |
客户ID |
integer |
None. |
| Province |
省 |
string |
None. |
| City |
市 |
string |
None. |
| Area |
区县 |
string |
None. |
| Town |
乡镇 |
string |
None. |
| Address |
详细地址 |
string |
None. |
| ReceiveLocation |
收货地坐标 |
string |
None. |
| ConsigneeUser |
收货人 |
string |
None. |
| Mobile |
手机 |
string |
None. |
| IsDefault |
是否是默认地址 0非默认 1默认 |
integer |
None. |
| ThirdWare |
收货地址所属仓库 |
integer |
None. |
| WareCompanyId |
用户所属仓库对应的分栈id;实际情况:兰州用户填写的收货地址是西宁某县,根据市县查出的仓库属于西宁栈,这种情况不许下单 |
integer |
None. |
| WareTypeId |
仓库类型 1 2 3 |
integer |
None. |
| ApproveState |
-1拒绝 0待审核 1审核通过 |
integer |
None. |
请求格式:application/json, text/json
application/json
Sample:
{
"ID": 1,
"CustomerId": 2,
"Province": "sample string 3",
"City": "sample string 4",
"Area": "sample string 5",
"Town": "sample string 6",
"Address": "sample string 7",
"ReceiveLocation": "sample string 8",
"ConsigneeUser": "sample string 9",
"Mobile": "sample string 10",
"IsDefault": 11,
"ThirdWare": 12,
"WareCompanyId": 13,
"WareTypeId": 14,
"ApproveState": 15,
"AddTime": "2025-11-02 06:37:29",
"UpdateTime": "2025-11-02 06:37:29",
"AddUser": "sample string 18",
"AddUserID": 19,
"UpdateUser": "sample string 20",
"Deleted": 21
}
得到响应信息说明
添加收货地址
ResponseResult| 字段 | 说明 | 类型 | 备注说明 |
|---|---|---|---|
| ResponseMsg |
返回结果内容描述 |
string |
None. |
| ResponseCode |
状态码 0(成功) >0(业务错误) <0(系统错误) -1: 系统错误 100: 字符为空报错 101: 字符类型错误 102: 图片上传失败200: 操作失败300: 缓存验证超时错误 301: 缓存验证码错误 302: token 错误系统不存在,非法操作 303: token 验证超时500: 参数错误 501: 数据为空 502: 存在重复数据 503: 业务验证失败 |
integer |
None. |
| Data |
返回的结果集 |
Object |
None. |
响应格式
application/json, text/json
Sample:
{
"ResponseMsg": "sample string 1",
"ResponseCode": 2,
"Data": {}
}