Authored by chenjian
## 1、订阅降价通知接口##
订阅降价通知接口(method=web.redution.add)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|mobile|string|否|13211111111|0|手机号码|
|productId|int|否|214217|0|商品id|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.redution.add&uid=8040274&mobile=13211111111&productId=214217&client_secret=e1a7a55c91db35c3f494e39c650de8dc
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"num": 1,
"product_skns": [
214217
]
},
"md5": "77c2e3eb2763ac40dbb667d54781dd9b",
"message": "操作成功"
}
```
## 2、取消订阅降价通知接口##
取消订阅降价通知接口(method=web.redution.cancel)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|productIds|int|否|214217,214217|0|商品id|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.redution.cancel&uid=8040274&productIds=119277&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"num": 1
},
"md5": "77c2e3eb2763ac40dbb667d54781dd9b",
"message": "操作成功"
}
```
## 3、查询订阅降价数量接口##
查询订阅降价数量接口(method=web.redution.count)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&method=web.redution.count&uid=706730&v=7
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"num": 1
},
"md5": "77c2e3eb2763ac40dbb667d54781dd9b",
"message": "操作成功"
}
```
... ...
## 1、PC查询用户收藏商品列表接口##
(method=web.favorite.product)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|3407014|0|用户id|
|limit|int|是|500|10|返回记录数|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.favorite.product&uid=3407014&limit=500
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"category_list": [
{
"category_id": 1,
"category_name": "上衣",
"num": 2
}
],
"product_list": [
{
"attribute": 0,
"category_id": 1,
"cnAlphabet": "FLYDFLYDA502TE16DuanXiuTXu",
"fav_price": "199.00",
"goodsId": 246351,
"image": "http://img13.static.yhbimg.com/goodsimg/2015/05/05/02/02a4f22b5dd8902ff265540d8cbd7a29a8.jpg?imageMogr2/thumbnail/160x200/extent/160x200/background/d2hpdGU=/position/center/quality/80",
"is_join_promotion": "Y",
"is_price_down": "N",
"is_subscribe_reduction": "N",
"market_price": "199.00",
"price_down": 0,
"product_id": 181867,
"product_name": "F.L.Y.D 剪裁印花长款短袖T恤[修身弹力棉]",
"product_skn": 51106081,
"product_url": "http://www.yohobuy.com/product/pro_181867_246351/FLYDFLYDA502TE16DuanXiuTXu.html",
"promotion_list": [
{
"promotion_title": "全场59加价购-WEB重构",
"promotion_type": "加价购"
},
{
"promotion_title": "全场39加价购-WEB重构",
"promotion_type": "加价购"
}
],
"sales_price": "199.00",
"status": 1,
"storage": 0
},
{
"attribute": 0,
"category_id": 1,
"cnAlphabet": "SKINARTSERIESINN201503009DaXiangTEEBai",
"fav_price": "229.00",
"goodsId": 221659,
"image": "http://img12.static.yhbimg.com/goodsimg/2015/03/17/09/024462dc4a951f93066907c8c23df27c95.jpg?imageMogr2/thumbnail/160x200/extent/160x200/background/d2hpdGU=/position/center/quality/80",
"is_join_promotion": "Y",
"is_price_down": "Y",
"is_subscribe_reduction": "N",
"market_price": "458.00",
"price_down": 0,
"product_id": 162553,
"product_name": "Skin Art Series INN 白色大象印花 TEE",
"product_skn": 51096290,
"product_url": "http://www.yohobuy.com/product/pro_162553_221659/SKINARTSERIESINN201503009DaXiangTEEBai.html",
"promotion_list": [
{
"promotion_title": "全场59加价购-WEB重构",
"promotion_type": "加价购"
},
{
"promotion_title": "全场39加价购-WEB重构",
"promotion_type": "加价购"
}
],
"sales_price": "219.00",
"status": 1,
"storage": 1
}
],
"total": 2
},
"md5": "7b1910d6696b7a1915ebd95029f888bc",
"message": "favorite product list"
}
```
## 2、PC取消商品收藏接口##
(method=web.favorite.cancel)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|8040274|0|用户id|
|favIds|int|否|212403,228841|null|商品id列表|
|type|String|否|product|null|收藏类型|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.favorite.cancel&uid=8040274&favIds=212403,228841&type=product&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "取消收藏成功"
}
```
## 2、PC取消商品收藏接口##
(method=web.favorite.cancel)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|3385902|0|用户id|
|favIds|int|否|46,175|null|品牌id列表|
|type|String|否|brand|null|收藏类型|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.favorite.cancel&uid=3385902&favIds=46,175&type=brand&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "取消收藏成功"
}
```
\ No newline at end of file
... ...
## 1、获取用户签到信息##
获取文章作者信息(method=app.sign.userSign)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.userSignInfo&uid=213&debug=XYZ
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"constantDay": "1",
"pushFlag": "1",
"signInfoList": [
{
"constantDay": "1",
"dateKey": "Today",
"signed": "true",
"today": "true",
"yohoCoinNum": "5"
},
{
"constantDay": "2",
"dateKey": "3.25",
"signed": "false",
"today": "false",
"yohoCoinNum": "10"
},
{
"constantDay": "3",
"dateKey": "3.26",
"signed": "false",
"today": "false",
"yohoCoinNum": "10"
},
{
"constantDay": "4",
"dateKey": "3.27",
"signed": "false",
"today": "false",
"yohoCoinNum": "15"
},
{
"constantDay": "5",
"dateKey": "3.28",
"signed": "false",
"today": "false",
"yohoCoinNum": "15"
},
{
"constantDay": "6",
"dateKey": "3.29",
"signed": "false",
"today": "false",
"yohoCoinNum": "20"
},
{
"constantDay": "7",
"dateKey": "3.30",
"signed": "false",
"today": "false",
"yohoCoinNum": "100"
}
],
"todayCanGainYohoCoinNum": "5",
"todayKey": "3.24",
"todaySigned": "true",
"tomorrowCanGainYohoCoinNum": "10",
"totalYohoCoinNum": "5",
"uid": "213"
},
"md5": "7518388918692bfd92ea26f972fc89f7",
"message": "获取签到信息成功"
}
```
## 2、用户签到接口##
获取文章作者信息(method=app.sign.userSign)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.userSign&uid=213&debug=XYZ
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"code": 500,
"message": "用户已经签到过"
}
```
或者
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"gainYohoCoinNum": "5",
"totalYohoCoinNum": "5",
"uid": "215"
},
"md5": "01620cc59749b4a09571dad331136736",
"message": "用户签到成功"
}
```
## 3、用户开启/关闭推送##
获取文章作者信息(method=app.sign.changePushFlag)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|pushFlag|int|否|1|0|0:关闭推送1:开启推送|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.changePushFlag&uid=213&pushFlag=1&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "修改成功"
}
```
## 1、获取用户签到信息##
获取用户签到信息(method=app.sign.userSignInfo)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.userSignInfo&uid=213&debug=XYZ
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"constantDay": "1",
"pushFlag": "1",
"signInfoList": [
{
"constantDay": "1",
"dateKey": "Today",
"signed": "true",
"today": "true",
"yohoCoinNum": "5"
},
{
"constantDay": "2",
"dateKey": "3.25",
"signed": "false",
"today": "false",
"yohoCoinNum": "10"
},
{
"constantDay": "3",
"dateKey": "3.26",
"signed": "false",
"today": "false",
"yohoCoinNum": "10"
},
{
"constantDay": "4",
"dateKey": "3.27",
"signed": "false",
"today": "false",
"yohoCoinNum": "15"
},
{
"constantDay": "5",
"dateKey": "3.28",
"signed": "false",
"today": "false",
"yohoCoinNum": "15"
},
{
"constantDay": "6",
"dateKey": "3.29",
"signed": "false",
"today": "false",
"yohoCoinNum": "20"
},
{
"constantDay": "7",
"dateKey": "3.30",
"signed": "false",
"today": "false",
"yohoCoinNum": "100"
}
],
"todayCanGainYohoCoinNum": "5",
"todayKey": "3.24",
"todaySigned": "true",
"tomorrowCanGainYohoCoinNum": "10",
"totalYohoCoinNum": "5",
"uid": "213"
},
"md5": "7518388918692bfd92ea26f972fc89f7",
"message": "获取签到信息成功"
}
```
## 2、用户签到接口##
用户签到接口(method=app.sign.userSign)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.userSign&uid=213&debug=XYZ
### 响应(data里所有的字段返回都是string类型)
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"code": 500,
"message": "用户已经签到过"
}
```
或者
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"gainYohoCoinNum": "5",
"totalYohoCoinNum": "5",
"uid": "215"
},
"md5": "01620cc59749b4a09571dad331136736",
"message": "用户签到成功"
}
```
## 3、用户开启/关闭推送##
用户开启/关闭推送(method=app.sign.changePushFlag)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|213|0|用户id|
|pushFlag|int|否|1|0|0:关闭推送1:开启推送|
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway/?method=app.sign.changePushFlag&uid=213&pushFlag=1&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "修改成功"
}
```
... ...
# 物流服务接口
## 接口列表
| 接口名称 | 接口描述 |
| --------| -------- |
|[app.express.getExpressCompany](#1)|获取物流公司列表|
|[app.express.getNewExpress](#2)|获取最新退换货物流信息|
|[app.express.getRefundExpress](#3)|获取退换货物流信息|
## 接口描述
### 1、获取物流公司列表(app.express.getExpressCompany)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.express.getExpressCompany| 请求方法|
| status | int | false | 1(默认值) | 物流公司启用状态 1开启,0关闭 默认开启 |
#### 响应内容 按公司首字母排序
```json
{
"code": 200,
"data": {
"E": [
{
"company_alif": "E",
"company_code": "ems",
"company_name": "南京ems",
"company_name_substr": "南京ems",
"id": 2,
"is_first": "Y"
}
],
"H": [
{
"company_alif": "H",
"company_code": "huitongkuaidi",
"company_name": "汇通快运",
"company_name_substr": "汇通快运",
"id": 37,
"is_first": "Y"
}
],
"J": [
{
"company_alif": "J",
"company_code": "jd",
"company_name": "京东快递",
"company_name_substr": "京东快递",
"id": 46,
"is_first": "Y"
}
],
"S": [
{
"company_alif": "S",
"company_code": "shunfeng",
"company_name": "顺丰",
"company_name_substr": "顺丰",
"id": 23,
"is_first": "Y"
},
{
"company_alif": "S",
"company_code": "shentong",
"company_name": "申通",
"company_name_substr": "申通",
"id": 36,
"is_first": "N"
}
],
"T": [
{
"company_alif": "T",
"company_code": "tonghetianxia",
"company_name": "通和天下",
"company_name_substr": "通和天下",
"id": 30,
"is_first": "Y"
}
],
"Y": [
{
"company_alif": "Y",
"company_code": "yuantong",
"company_name": "圆通",
"company_name_substr": "圆通",
"id": 29,
"is_first": "Y"
},
{
"company_alif": "Y",
"company_code": "youshuwuliu",
"company_name": "优速快递",
"company_name_substr": "优速快递",
"id": 32,
"is_first": "N"
},
{
"company_alif": "Y",
"company_code": "yunda",
"company_name": "韵达",
"company_name_substr": "韵达",
"id": 39,
"is_first": "N"
}
],
"Z": [
{
"company_alif": "Z",
"company_code": "zhaijisong",
"company_name": "南京ZJS",
"company_name_substr": "南京ZJS",
"id": 5,
"is_first": "Y"
}
]
},
"md5": "c773c50ba3acedff6feacace3f95e468",
"message": "物流公司"
}
```
##### 响应内容描述
| Param Name | Param Type | Desc |
| ---------- | ---------- | ---- |
| company_alif | String | 物流公司首字母 |
| company_code | String | 物流公司编码|
| company_name | String | 物流公司名称 |
| company_name_substr| String | 物流公司子字符串 |
| id | int |物流公司ID |
| is_first | String |是否首次 |
### 2、获取最新退换货物流信息(app.express.getNewExpress)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.express.getNewExpress| 请求方法|
| id | int |true | 428106 | 退换货申请ID|
| uid | int |true | 362719 |用户ID |
| type | String |true | refund | 类型 (退货:refund,换货:change)|
#### 响应内容 按公司首字母排序
```json
{
"code": 200,
"message": "成功获取物流信息",
"data": {
"url": "http://www.ems.com.cn/",
"logo": "http://img12.static.yhbimg.com/taobaocms/2015/08/17/07/02fa410769cbbc3c4b59d6a804a3b8d98e.png",
"caption": "南京ems",
"is_support": "3",
"express_number": "44323566",
"express_detail": []
},
"md5": "3fc5f5f1ea744d14ad4c4ae54e7cf143"
}
```
##### 响应内容描述
| Param Name | Param Type | Desc |
| ---------- | ---------- | ---- |
| url | String | 物流公司网址 |
| logo | String | 物流公司logo|
| caption | String | 物流公司名称 |
| is_support | String|返回状态(1:查询到物流信息 2:不支持物流公司 3:没有找到物流信息) |
| express_number| String | 快递单号 |
| express_detail | json数组 |物流详情 |
### 3、获取退换货物流信息(app.express.getRefundExpress)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.express.getRefundExpress| 请求方法|
| express_id | int |true | 23 | 快递公司ID|
| express_number | String |true | 800481228670 |快递单号 |
#### 响应内容 按公司首字母排序
```json
{
"code": 200,
"data": [
{
"acceptTime": "2014-12-06 12:38:24",
"accept_address": "客户 签收人: 林汐 已签收",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-06 08:58:31",
"accept_address": "北京市通州区城区公司 派件人: 徐宏博 派件中 派件员电话18911353205",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-06 07:51:43",
"accept_address": "快件到达 北京市通州区城区公司",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-05 18:28:25",
"accept_address": "北京转运中心公司 已发出,下一站 北京市通州区城区",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-05 18:26:21",
"accept_address": "快件到达 北京转运中心公司",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-04 19:44:16",
"accept_address": "江苏省南京市雨花区板桥公司 已打包,发往下一站 北京转运中心",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
},
{
"acceptTime": "2014-12-04 18:44:41",
"accept_address": "快件到达 江苏省南京市雨花区板桥公司",
"express_id": 3,
"express_number": "800481228670",
"order_code": 412506421
}
],
"md5": "74b36d9c9b9ff658eac1b46c196dbc99",
"message": "物流信息"
```
##### 响应内容描述
| Param Name | Param Type | Desc |
| ---------- | ---------- | ---- |
| acceptTime | String | 运货单创建时间 |
| accept_address | String | 运货单接收地址|
| express_id | int | 快递公司ID|
| express_number | String |快递单号 |
| order_code| long | 订单号 |
... ...
# 退货服务接口
## 接口列表
| 接口名称 | 接口描述 |
| --------| -------- |
|[app.refund.goodsList](#1)|获取退货订单商品列表|
|[app.refund.submit](#2)|提交退货申请|
|[app.refund.detail](#3)|退货详情|
|[app.refund.setexpress](#4)|保存快递信息|
## 接口描述
### 1、获取退货订单商品列表(app.refund.goodsList)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.refund.goodsList| 请求方法|
| uid | int | true | 7893817 |用户ID |
| order_code |long | true | 1613656852 |订单号 |
#### 响应内容
```json
{
"code": 200,
"data": {
"coupon_amount": "0.00",
"goods_list": [
{
"color_name": "蓝色",
"goods_id": 355897,
"goods_image": "http://img10.static.yhbimg.com/goodsimg/2015/10/29/12/01c9c05a2170996e86f5c1f7ed32e48ac7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_type": "ordinary",
"goods_type_id": 1,
"hasShoes": 0,
"last_price": "149.00",
"product_id": 275357,
"product_name": "Life•After Life X The Simpsons 辛普森一家刺绣牛津纺衬衫",
"product_skc": 280039,
"product_skn": 51153138,
"product_sku": 894428,
"size_name": "M"
}
],
"return_amount_info": "",
"return_amount_mode": [
{
"id": 1,
"is_default": "Y",
"name": "原卡返还"
}
],
"return_reason": [
{
"id": 3,
"name": "不喜欢"
},
{
"id": 2,
"name": "性价比不高"
},
{
"id": 11,
"name": "价格变化"
},
{
"id": 4,
"name": "质量瑕疵"
},
{
"id": 1,
"name": "尺寸不合适"
},
{
"id": 7,
"name": "商品有色差"
},
{
"id": 8,
"name": "图片与实物不符"
},
{
"id": 6,
"name": "发错货"
},
{
"id": 5,
"name": "快递延迟"
}
],
"yoho_coin_num": "0.00"
},
"md5": "72879cfb65bcd2705e4283d2f5dc1a30",
"message": "Refund goods list"
}
```
### 2、提交退货申请(app.refund.submit)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true |app.refund.submit| 请求方法|
| order_code |long | true | 1512253171 |订单号 |
| uid | int | true |8040274 |用户ID |
| area_code |String | false | ""(默认值) |地区编号|
| goods |String(json数组) | true | [{"goods_type":"1","last_price":"18.00","product_skc":"83007","product_skn":"51001899","product_sku":"307528","remark":"","returned_reason":1}] |退货商品 |
| payment |String(json对象) | true | {"alipay_account":"","alipay_name":"","area_code":"320115","bank_card":"","bank_name":"","city":"","payee_name":"","province":"","remark":"","return_amount_mode":"1"} |退款|
#### 响应内容 按公司首字母排序
```json
{
"code": 200,
"message": "退货申请成功",
"data": {
"apply_id": "428135"
},
"md5": "2d4a86d3d308cf8cbdd9870ebd61a3a4"
}
```
##### 响应内容描述
| Param Name | Param Type | Desc |
| ---------- | ---------- | ---- |
| apply_id | String | 退货申请ID |
### 3、退货详情(app.refund.detail)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.refund.detail| 请求方法|
| id |int | true | 428106 |退货申请ID |
| uid | int | true | 362719 |用户ID |
#### 响应内容
```json
{
"code": 200,
"message": "退货详情",
"data": {
"source_order_code": "1513540278",
"use_yoho_coin_num": null,
"status": "20",
"status_name": "商品寄回",
"statusList": [
{
"name": "提交申请",
"act": "Y"
},
{
"name": "审核通过",
"act": "Y"
},
{
"name": "商品寄回",
"act": "Y"
},
{
"name": "商品入库",
"act": "N"
},
{
"name": "退款完成",
"act": "N"
}
],
"create_time": "2015-11-23 20:20:12",
"return_amount_mode_name": "YOHO币",
"return_amount_mode": "4",
"return_yoho_coin": "0",
"goods_list": [
{
"product_skn": "51146548",
"product_name": "我是可爱的小秋秋,james,蔡!",
"goods_image": "?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90",
"size_name": null,
"color_name": null,
"sales_price": null,
"reason": "1",
"remark": "",
"reason_name": "尺寸不合适",
"evidence_images": [],
"goods_type": "ordinary"
}
],
"notice": {
"id": 20,
"title": "商品寄回物流信息",
"express_company": "南京ems",
"express_number": "44323566"
},
"return_amount": "125.00",
"return_coupon_amount": "0.00",
"express_number": "44323566",
"return_amount_total": "125.00",
"return_amount_info": "",
"return_amount_mode_info": []
},
"md5": "6fa464cf72538ad2c25fa24d20dcdd20"
}
}
```
### 4、保存快递信息(app.refund.setexpress)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true | app.refund.setexpress| 请求方法|
| id |int | true | 428120 |退货申请ID |
| uid | int | true | 362729 |用户ID |
| express_company |String | true | 南京ems |快递公司名称|
| express_number |String | true | 44323575 |快递单号 |
| express_id |int | true | 2 |快递公司ID |
#### 响应内容
```json
{
"code": 200,
"message": "快递单号设置成功",
"data": [],
"md5": "93311f762194b751872601b67fad53f7"
}
or
{
"code": 412,
"message": "没有找到该退货申请"
}
```
... ...
... ... @@ -275,13 +275,15 @@ code为200即为成功,否则是失败。
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|client_type|string|否|iphone|-|客户端类型|
|gender|string|是|男|-|性别|
|page|int|否|1|-|页码|
|session_key|string|是|-|-|session key|
|sort_id|int|否|0|-|分类id|
|udid|string|否|-|-|udid|
|uid|Integer|是|1|-|uid|
|sort_id|int|是|-|0|分类id|
|gender|string|是|-|emptyString|性别|
|author_id|int|是|1|0|作者id|
|tag|string|是|-|emptyString|标签|
|uid|int|是|25|0|uid|
|udid|String|是|-|emptyString|udid|
|client_type|String|是|iphone|h5|客户端类型|
|page|Integer|是|1|1|页码|
|limit|Integer|是|10|10|分页大小|
注意,通用的头部没有列出。
请求示例
... ...