|
|
# 修改订单收货地址服务接口
|
|
|
|
|
|
## 接口列表
|
|
|
| 接口名称 | 接口描述 |
|
|
|
| --------| -------- |
|
|
|
|[app.SpaceOrders.updateDeliveryAddress](#1-app-spaceorders-updatedeliveryaddress)|修改订单收货地址|
|
|
|
|[修改订单收货地址MQ](#2-mq)|修改订单收货地址MQ|
|
|
|
|
|
|
|
|
|
|
|
|
## 接口描述
|
|
|
|
|
|
### 1、修改订单收货地址(app.SpaceOrders.updateDeliveryAddress)
|
|
|
|
|
|
#### 请求参数
|
|
|
| Param Name | Param Type | Required | Param Value | Desc |
|
|
|
| :-- | --: | --: | --: | --: |
|
|
|
| method | String | true | app.SpaceOrders.updateDeliveryAddress| 请求方法|
|
|
|
| order_code | String | true | "1607472719" |订单号 |
|
|
|
| address_id | String | true | "944005" |地址ID|
|
|
|
### 错误编码
|
|
|
-------------------------
|
|
|
|错误码code|消息|
|
|
|
|----------|----|
|
|
|
|400|收货地址ID不存在|
|
|
|
|401|该订单不存在|
|
|
|
|402|该订单已被删除|
|
|
|
|403|该订单已发货|
|
|
|
|404|不存在该地区|
|
|
|
|405|收货地址仅且只能修改1次|
|
|
|
|406|收货地址不支持顺丰速运可配送的地区|
|
|
|
|407|该订单已经取消|
|
|
|
#### 响应内容
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"md5": "1f7d1c5c325209e77f0989134e7a8b67",
|
|
|
"message": "修改订单收货地址成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、修改订单收货地址MQ
|
|
|
|
|
|
### MQ消息数据结构
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.deliveryAddress |
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"address": "靖南大街688-10号2楼",
|
|
|
"address_id": 61,
|
|
|
"area_code": 330225,
|
|
|
"city": "宁波市",
|
|
|
"district": "象山县",
|
|
|
"email": "canvas220@sina.com",
|
|
|
"mobile": "15258109727",
|
|
|
"order_code": 1607472719,
|
|
|
"parent_order_code": 123,
|
|
|
"phone": "057465772167",
|
|
|
"province": "浙江省",
|
|
|
"user_name": "朱倩倩",
|
|
|
"zip_code": 315700
|
|
|
}
|
|
|
```
|
|
|
# 修改订单收货地址服务接口
|
|
|
|
|
|
## 接口列表
|
|
|
| 接口名称 | 接口描述 |
|
|
|
| --------| -------- |
|
|
|
|[app.SpaceOrders.updateDeliveryAddress](#1-app-spaceorders-updatedeliveryaddress)|修改订单收货地址|
|
|
|
|[修改订单收货地址MQ](#2-mq)|修改订单收货地址MQ|
|
|
|
|
|
|
|
|
|
|
|
|
## 接口描述
|
|
|
|
|
|
### 1、修改订单收货地址(app.SpaceOrders.updateDeliveryAddress)
|
|
|
|
|
|
#### 请求参数
|
|
|
| Param Name | Param Type | Required | Param Value | Desc |
|
|
|
| :-- | --: | --: | --: | --: |
|
|
|
| method | String | true | app.SpaceOrders.updateDeliveryAddress| 请求方法|
|
|
|
| order_code | String | true | "1607472719" |订单号 |
|
|
|
| address_id | String | true | "944005" |地址ID|
|
|
|
|
|
|
#### 请求示例
|
|
|
http://devapi.yoho.cn:58078?method=app.SpaceOrders.updateDeliveryAddress&order_code=160103590&debug=XYZ&address_id=944005
|
|
|
|
|
|
### 错误编码
|
|
|
-------------------------
|
|
|
|错误码code|消息|
|
|
|
|----------|----|
|
|
|
|400|收货地址ID不存在|
|
|
|
|401|该订单不存在|
|
|
|
|402|该订单已被删除|
|
|
|
|403|该订单已发货|
|
|
|
|404|不存在该地区|
|
|
|
|405|收货地址仅且只能修改1次|
|
|
|
|406|收货地址不支持顺丰速运可配送的地区|
|
|
|
|407|该订单已经取消|
|
|
|
#### 响应内容
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"md5": "1f7d1c5c325209e77f0989134e7a8b67",
|
|
|
"message": "修改订单收货地址成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、修改订单收货地址MQ
|
|
|
|
|
|
### MQ消息数据结构
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.deliveryAddress |
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"address": "靖南大街688-10号2楼",
|
|
|
"address_id": 61,
|
|
|
"area_code": 330225,
|
|
|
"city": "宁波市",
|
|
|
"district": "象山县",
|
|
|
"email": "canvas220@sina.com",
|
|
|
"mobile": "15258109727",
|
|
|
"order_code": 1607472719,
|
|
|
"parent_order_code": 123,
|
|
|
"phone": "057465772167",
|
|
|
"province": "浙江省",
|
|
|
"user_name": "朱倩倩",
|
|
|
"zip_code": 315700
|
|
|
}
|
|
|
```
|
|
|
### 注意 1.JIT拆单和预售商品拆单有关联其他订单,主订单号parent_order_code为1607472719;2.没有关联其他订单,主订单号parent_order_code字段可能不存在。 |
|
|
\ No newline at end of file |
...
|
...
|
|