卖家接口说明
主要接口:1.实名认证 2.发布出售购买商品 3.缴纳保证金
出售
4.1 卖家发布商品价格费用计算
访问地址:http://xxx.yoho.cn/xxxxxxx
method=ufo.sellerOrder.computePublishPrd
接口示例:
http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway?app_version=6.7.7&business_line=yohobuy&client_secret=d7164c512c45212cbb4305a5292a8107&client_type=android&gender=1%2C3&method=ufo.sellerOrder.computePublishPrd&os_version=android8.0.0%3AMIX_2S&physical_channel=1&price=200&screen_size=1080x2030&session_key=cc1de9c7a6fc7357869cbeb593ab8cc2&storage_id=10000068&udid=868144037003610313e14ffbecc90b7&uid=500031170&v=7&vip_level=0&yh_channel=1
请求参数
参数名称 |
参数类型 |
可否为空 |
示例 |
默认值 |
备注 |
method |
string |
否 |
ufo.sellerOrder.computePublishPrd |
null |
api主标识 |
uid |
int |
否 |
56789 |
null |
用户ID |
storage_id |
int |
否 |
309883 |
null |
storage id |
price |
double |
否 |
309883 |
null |
价格 |
client_type |
String |
否 |
iPhone |
null |
客户端 |
返回字段说明
参数名称 |
参数类型 |
可否为空 |
示例 |
备注 |
code |
int |
否 |
200 |
200:成功,参考HTTP code和 yoho error code |
uid |
int |
否 |
56789 |
用户ID |
storageId |
int |
否 |
309883 |
storage id |
platformrFee.amount |
String |
否 |
¥20.50 |
平台费用 |
platformrFee.appraiseFee |
String |
否 |
¥10.00 |
商品鉴定费 |
platformrFee.packageFee |
String |
否 |
¥10.00 |
包装费 |
platformrFee.serviceFee |
String |
否 |
¥0.00 |
平台服务费(5%,优惠期间0%) |
bankTransferFee |
String |
否 |
¥20.50 |
银行转账费 |
earnestMoney |
String |
否 |
¥200 |
保证金 |
income |
string |
否 |
¥200 |
实际收入 |
响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
uid : 56789,
storageId:309883,
earnestMoney : 100,
platformFee:{
amount : '¥20',
appraiseFee: "¥10.00",
packageFee: "¥10.00",
serviceFee : "¥0.00"
},
income : "¥95.00"
},
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "ok"
}
4.2 卖家发布商品
访问地址:http://xxx.yoho.cn/xxxxxxx
method=ufo.sellerOrder.publishPrd
接口示例:
http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway?address_id=TKMSfEwSMdTDJQD0xbSBcA%3D%3D&app_version=6.7.7&business_line=yohobuy&client_secret=ec6bfcc9c4c1b550071614593ee6dfd5&client_type=android&gender=1%2C3&method=ufo.sellerOrder.publishPrd&os_version=android8.0.0%3AMIX_2S&physical_channel=1&price=0.01&screen_size=1080x2030&session_key=cc1de9c7a6fc7357869cbeb593ab8cc2&storage_id=10000068&udid=868144037003610313e14ffbecc90b7&uid=500031170&v=7&vip_level=0&yh_channel=1
请求参数
参数名称 |
参数类型 |
可否为空 |
示例 |
默认值 |
备注 |
method |
string |
否 |
ufo.sellerOrder.submit |
null |
api主标识 |
uid |
int |
否 |
56789 |
null |
用户ID |
storage_id |
int |
否 |
309883 |
null |
storage id |
price |
double |
否 |
1999 |
null |
售价 |
client_type |
String |
否 |
iPhone |
null |
客户端 |
返回字段说明
响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
uid:56789,
orderCode:52309883
},
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "ok"
}
4.3 支付保证金
访问地址:http://xxx.yoho.cn/xxxxxxx
method=ufo.sellerOrder.pay
接口示例:
http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/payment?app_version=6.7.7&business_line=yohobuy&client_secret=e4a51ba6a51b9ab70f9f8cb927e07a5d&client_type=android&gender=1%2C3&method=ufo.order.pay&orderCode=968204410880&os_version=android8.0.0%3AMIX_2S&payment=1&physical_channel=1&screen_size=1080x2030&session_key=cc1de9c7a6fc7357869cbeb593ab8cc2&udid=868144037003610313e14ffbecc90b7&uid=500031170&v=7&vip_level=0&yh_channel=1
请求参数
参数名称 |
参数类型 |
可否为空 |
示例 |
默认值 |
备注 |
method |
string |
否 |
ufo.sellerOrder.pay |
null |
api主标识 |
uid |
int |
否 |
56789 |
null |
用户ID |
orderCode |
int |
否 |
52309883 |
null |
订单号 |
client_type |
String |
否 |
iPhone |
null |
客户端 |
返回字段说明
响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {},
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "ok"
}