基础 qianmi.cloudshop.d2c.apply.queryDetail(查询云商城售后单详情)
查询云商城售后单详情
用户授权类型
公共参数
请求地址:
系统级请求参数:
环境 | HTTP请求地址 | HTTPS请求地址 | 正式环境 | http://gw.api.qianmi.com/api | https://api.qianmi.com/api |
---|
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
method | String | 必须 | API接口名称 |
access_token | String | 可选 | 用户登录授权以后,QMOP颁发给应用的授权信息,详细介绍请点击这里,当前API的用户授权类型标明:"需要授权",则此参数必传,"不需要授权",则此参数不需要传。 |
format | String | 必须 | 指定响应格式,目前支持格式为json |
appKey | String | 必须 | 分配给应用的AppKey |
v | String | 必须 | API协议版本,当前可选值:1.1 |
sign | String | 必须 | API输入参数签名结果 |
timestamp | String | 必须 | 请求时间戳,时区为GMT+8(北京时间),格式:"yyyy-MM-dd HH:mm:ss",例如"2012-12-20 10:20:35",开放平台允许客户端请求的最大时间误差为10分钟 |
业务参数
名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
---|---|---|---|---|---|
fields | Field List | 必须 | apply_id,tid | 需要返回的字段,多个字段之间以逗号隔开 apply_id(申请单编号), tid(订单编号), operator_name(操作人名称), operator_code(操作人编号), buyer_code(买家编号), buyer_name(买家名称), buyer_mobile(买家手机号), seller_code(卖家编号), seller_name(卖家用户名), create_time(申请单创建时间), end_time(申请单完成的时间), refund_status(退款状态), return_status(退货状态), apply_status(申请退货退款总状态), refund_receipt_id(退款单编号), return_receipt_id(退货单编号), apply_refund_price(申请退款金额), actual_refund_price(实际退款金额), reason(退款退货原因), apply_items(商品列表) | |
apply_id | String | 必须 | RC20092215325806767184 | 售后单编号 |
请求示例
OpenClient client = new DefaultOpenClient(url, appKey, appSecret); D2cApplyQueryDetailRequest req = new D2cApplyQueryDetailRequest(); req.setFields("apply_id,tid,operator_name,operator_code,buyer_code,buyer_name,buyer_mobile,seller_code,seller_name,create_time,end_time,refund_status,return_status,apply_status,refund_receipt_id,return_receipt_id,apply_refund_price,actual_refund_price,reason,apply_items"); req.setApplyId("RC20092216310387565349"); D2cApplyQueryDetailResponse response = client.execute(req, accessToken);
$client = new OpenClient; $client->appKey = appKey; $client->appSecret = appSecret; $req = new D2cApplyQueryDetailRequest; $req->setFields("apply_id,tid,operator_name,operator_code,buyer_code,buyer_name,buyer_mobile,seller_code,seller_name,create_time,end_time,refund_status,return_status,apply_status,refund_receipt_id,return_receipt_id,apply_refund_price,actual_refund_price,reason,apply_items"); $req->setApplyId("RC20092216310387565349"); $res = $client->execute($req, $accessToken);
IOpenClient client = new DefaultOpenClient(url, appKey, appSecret); D2cApplyQueryDetailRequest req = new D2cApplyQueryDetailRequest(); req.Fields = "apply_id,tid,operator_name,operator_code,buyer_code,buyer_name,buyer_mobile,seller_code,seller_name,create_time,end_time,refund_status,return_status,apply_status,refund_receipt_id,return_receipt_id,apply_refund_price,actual_refund_price,reason,apply_items"; req.ApplyId = "RC20092216310387565349"; D2cApplyQueryDetailResponse response = client.Execute(req, accessToken);
响应参数
名称 | 类型 | 示例值 | 描述 |
---|
响应示例
异常示例
{ "errorToken": "@@$-ERROR_TOKEN$-@@", "code": "33", "message": "非法的参数", "solution": "请查看根据服务接口对参数格式的要求", "subErrors": { "subError": [{ "code": "isv.invalid-paramete:XXXX", "message": "参数XXXX无效,格式不对、非法值、越界等" }] }
错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.qianmi-cloudshop-d2c-apply-queryDetail-service-error:01049000 | 系统异常 |
API工具
FAQ