taobao.paimai.paydetails.query (pos支付订单流水查询)

二手车合作商优信查询pos支付订单流水

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_id Number 可选 123 订单id

响应参数

名称 类型 示例值 描述
data ExtraInfo 1234 返回信息
  • └ order_id
  • Number
  • 123
  • 订单id
  • └ item_id
  • Number
  • 123
  • 商品id
  • └ order_memo
  • String
  • abc123
  • 商家输入的备注信息
  • └ price
  • Number
  • 123
  • 订单价格,单位为分
  • └ pay_time
  • Date
  • 123123123
  • 订单完成支付时间
  • pay_dtails
  • PayDtail []
  • 流水信息
  • └ paid_amount
  • Number
  • 100
  • 单次支付金额,单位为分
  • └ card_no
  • String
  • 6222******1234
  • 银行卡号,中间加密
  • └ iss_name
  • String
  • 中国银行
  • 银行名称
  • └ card_type
  • Number
  • 0
  • 借贷记卡标识 0:借记 1:贷记
  • └ pos_id
  • String
  • 111111
  • pos终端号
  • └ ref_no
  • String
  • 123123
  • 交易参考号
  • └ merch_id
  • String
  • 123asd
  • pos商户号
  • └ fintime
  • String
  • 20181217140409
  • 支付时间
  • └ pay_type
  • String
  • cash
  • 支付类型,现金:cash,银行卡支付:bank_card_allinpay
  • └ pay_no
  • String
  • 123或abc-def
  • 流水id,不同支付方式格式不同
result_code ResultCode 系统自动生成
  • └ message
  • String
  • 异常描述
  • 系统自动生成
is_success Boolean false 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiPaydetailsQueryRequest req = new PaimaiPaydetailsQueryRequest();
req.setOrderId(123L);
PaimaiPaydetailsQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<paimai_paydetails_query_response>
    <data>
        <order_id>123</order_id>
        <item_id>123</item_id>
        <order_memo>abc123</order_memo>
        <price>123</price>
        <pay_time>123123123</pay_time>
        <pay_dtails>
            <pay_dtail>
                <paid_amount>100</paid_amount>
                <card_no>6222******1234</card_no>
                <iss_name>中国银行</iss_name>
                <card_type>0</card_type>
                <pos_id>111111</pos_id>
                <ref_no>123123</ref_no>
                <merch_id>123asd</merch_id>
                <fintime>20181217140409</fintime>
                <pay_type>cash</pay_type>
                <pay_no>123或abc-def</pay_no>
            </pay_dtail>
        </pay_dtails>
    </data>
    <result_code>
        <message>异常描述</message>
    </result_code>
    <is_success>false</is_success>
</paimai_paydetails_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部