基础 qianmi.cloudshop.trade.fullinfo.get(获取单笔订单详情(通用))

1.获取单笔订单的详细信息,云订货(D2P),云商城(D2C)的订单详情通用。
2.订单结构中site字段标识系统来源,1:云订货(D2P),2:云商城(D2C)。
根据应用场景,需要卖家授权
 用户授权类型
 公共参数
请求地址:
环境 HTTP请求地址 HTTPS请求地址
正式环境 http://gw.api.qianmi.com/api https://api.qianmi.com/api
系统级请求参数:
名称 类型 是否必须 描述
methodString 必须 API接口名称
access_tokenString 可选 用户登录授权以后,QMOP颁发给应用的授权信息,详细介绍请点击这里,当前API的用户授权类型标明:"需要授权",则此参数必传,"不需要授权",则此参数不需要传。
formatString 必须 指定响应格式,目前支持格式为json
appKeyString 必须 分配给应用的AppKey
vString 必须 API协议版本,当前可选值:1.1
signString 必须 API输入参数签名结果
timestampString 必须 请求时间戳,时区为GMT+8(北京时间),格式:"yyyy-MM-dd HH:mm:ss",例如"2012-12-20 10:20:35",开放平台允许客户端请求的最大时间误差为10分钟
 业务参数
名称 类型 是否必须 示例值 默认值 描述
fieldsField List 必须 trade交易结构中的所有字段均可返回,多个字段用”,”分隔,请按需获取,获取order所有字段只需要传orders,如只需要部分字段,请按以下格式:order.oid,order.price.
tidString 必须 T2313123131 交易编号
 请求示例
OpenClient client = new DefaultOpenClient(url, appKey, appSecret);
TradeFullinfoGetRequest req = new TradeFullinfoGetRequest();
req.setFields("seller_nick,tid,payment,post_fee,num,orders,discount_fee,status,total_fee,timeout_action_time,reciver_name,reciver_state,reciver_city,reciver_district,reciver_address,reciver_zip,reciver_mobile,reciver_phone,created,modified,pay_time,consign_time,end_time,buyer_message,buyer_nick,area_id,ship_type_id,ship_type_name,sender_address,pay_order_no,pay_type_id,pay_type_name,pay_gate_code,pay_gate_name,pay_bank_code,total_trade_fee,invoice_flag");
req.setTid("T20150316161119238");
TradeFullinfoGetResponse response = client.execute(req, accessToken);
$client = new OpenClient;
$client->appKey = appKey;
$client->appSecret = appSecret;
$req = new TradeFullinfoGetRequest;
$req->setFields("seller_nick,tid,payment,post_fee,num,orders,discount_fee,status,total_fee,timeout_action_time,reciver_name,reciver_state,reciver_city,reciver_district,reciver_address,reciver_zip,reciver_mobile,reciver_phone,created,modified,pay_time,consign_time,end_time,buyer_message,buyer_nick,area_id,ship_type_id,ship_type_name,sender_address,pay_order_no,pay_type_id,pay_type_name,pay_gate_code,pay_gate_name,pay_bank_code,total_trade_fee,invoice_flag");
$req->setTid("T20150316161119238");
$res = $client->execute($req, $accessToken);
IOpenClient client = new DefaultOpenClient(url, appKey, appSecret);
TradeFullinfoGetRequest req = new TradeFullinfoGetRequest();
req.Fields = "seller_nick,tid,payment,post_fee,num,orders,discount_fee,status,total_fee,timeout_action_time,reciver_name,reciver_state,reciver_city,reciver_district,reciver_address,reciver_zip,reciver_mobile,reciver_phone,created,modified,pay_time,consign_time,end_time,buyer_message,buyer_nick,area_id,ship_type_id,ship_type_name,sender_address,pay_order_no,pay_type_id,pay_type_name,pay_gate_code,pay_gate_name,pay_bank_code,total_trade_fee,invoice_flag";
req.Tid = "T20150619151140204";
TradeFullinfoGetResponse response = client.Execute(req, accessToken);
 响应参数
名称 类型 示例值 描述
trade Trade 交易信息:trade、order中包含的具体入参fields为准
 响应示例

JSON数据格式:

 异常示例

JSON数据格式:

 {
    "errorToken": "@@$-ERROR_TOKEN$-@@",
    "code": "33",
    "message": "非法的参数",
    "solution": "请查看根据服务接口对参数格式的要求",
    "subErrors": {
      "subError": [{
          "code": "isv.invalid-paramete:XXXX",
          "message": "参数XXXX无效,格式不对、非法值、越界等"
        }]
  }
 错误码
错误码 错误描述 解决方案
isv.qianmi-cloudshop-trade-fullinfo-get-service-error:01042001交易不存在请检查交易编号
 FAQ