文档中心 > API类目 > 天猫汽车

taobao.tfc.huijinpay.query (汇金状态查询接口)

汇金状态查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
huijin_ids String [] 可选 10001
  • 最大列表长度:20
  • 分佣上传返回值id列表

    响应参数

    名称 类型 示例值 描述
    result Result result JSON值 接口返回对象
    • datas
    • TfcHuiJinResultRo []
    • JSON List
    • 返回数据值List
    • └ biz_type
    • String
    • 2
    • 业务类型
    • └ out_biz_id
    • String
    • TWL11
    • 外部请求编号,汇金通过他来幂等
    • └ parent_trade_id
    • String
    • TWL1101
    • 父订单号
    • └ trade_id
    • String
    • TWL110101
    • 子订单号
    • └ store_id
    • String
    • 1001
    • 入款方门店id
    • └ request_amount
    • String
    • 1000
    • 交易金额(分)
    • └ biz_time
    • Date
    • 2007-10-10 10:00:00
    • 业务发生时间
    • └ success
    • String
    • true
    • 成功或失败 true或false
    • └ trade_no
    • String
    • ALI1001231
    • 分成账单ID
    • └ trade_time
    • Date
    • 2007-10-10 10:00:00
    • 分账时间
    • └ error_code
    • String
    • 错误失败原因
    • 销账信息,失败才有值
    • └ ext_attributes
    • String
    • 扩展信息
    • 其他扩展信息
    • └ id
    • Number
    • 2
    • 主键id

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TfcHuijinpayQueryRequest req = new TfcHuijinpayQueryRequest();
    req.setHuijinIds("10001");
    TfcHuijinpayQueryResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tfc_huijinpay_query_response>
        <result>
            <datas>
                <tfc_hui_jin_result_ro>
                    <biz_type>2</biz_type>
                    <out_biz_id>TWL11</out_biz_id>
                    <parent_trade_id>TWL1101</parent_trade_id>
                    <trade_id>TWL110101</trade_id>
                    <store_id>1001</store_id>
                    <request_amount>1000</request_amount>
                    <biz_time>2007-10-10 10:00:00</biz_time>
                    <success>true</success>
                    <trade_no>ALI1001231</trade_no>
                    <trade_time>2007-10-10 10:00:00</trade_time>
                    <error_code>错误失败原因</error_code>
                    <ext_attributes>扩展信息</ext_attributes>
                    <id>2</id>
                </tfc_hui_jin_result_ro>
            </datas>
        </result>
    </tfc_huijinpay_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

    返回
    顶部