文档中心 > API类目 > 五道口API

alibaba.wdk.bill.list (五道口账单拉取接口)

五道口账单拉取接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
txd_bill_list_get_request TxdBillListGetRequest 必须 入参
  • └ end_bill_date
  • Date
  • 必须
  • 2021-05-21 00:00:00
  • 结束账单日
  • └ start_bill_date
  • Date
  • 必须
  • 2021-05-21 00:00:00
  • 开始账单日
  • └ shop_code
  • String
  • 可选
  • CSSJ01
  • 门店编码
  • └ page_size
  • Number
  • 可选
  • 20
  • 页面大小,默认20,最大不得超过200
  • └ page_index
  • Number
  • 可选
  • 1
  • 当前页码,默认1

响应参数

名称 类型 示例值 描述
api_result ApiResult 接口响应结果
  • └ err_code
  • String
  • 1
  • 响应错误码
  • └ err_msg
  • String
  • 1
  • 响应错误信息
  • └ success
  • Boolean
  • true
  • 响应成功失败
  • model
  • TxdBillListGetResult
  • 响应返回值
  • txd_bill_detail_b_o_s
  • TxdBillDetailBo []
  • 返回值对象列表
  • └ platform_subsidy_fee
  • String
  • 1.0
  • 平台补贴
  • └ distribution_fee
  • String
  • 1.0
  • 配送服务费
  • └ handle_fee
  • String
  • 0
  • 手续费
  • └ technical_service_fee
  • String
  • 0
  • 技术服务费
  • └ transport_fee
  • String
  • 1.0
  • 运费分账
  • └ charge_base
  • String
  • 3.0
  • 计费基数(不含运费),实付金额-运费
  • └ pay_amount
  • String
  • 2.0
  • 实付金额(支付宝收款金额,即货款)
  • └ trade_channel
  • String
  • POS
  • 交易渠道(APP/POS)
  • └ biz_order_id
  • String
  • 123213131
  • 订单号,正向展示主单号,逆向展示退款单号
  • └ order_type
  • String
  • 正向
  • 单据类型(正/逆向)
  • └ shop_name
  • String
  • 测试门店
  • 经营店名称
  • └ shop_code
  • String
  • CSSJ01
  • 经营店编码
  • └ settle_company_name
  • String
  • 测试财务组织
  • 财务组织名称
  • └ settle_company_code
  • String
  • CSSJC01
  • 财务组织编码
  • └ merchant_name
  • String
  • 测试商家
  • 商家名称
  • └ merchant_code
  • String
  • CSSJ
  • 商家编码
  • └ biz_date
  • Date
  • 2021-05-21 00:00:00
  • 业务日期,记录实际业务发生时间
  • └ bill_date
  • Date
  • 2021-05-21 00:00:00
  • 账单日期, 账单出具日,按自然日
  • └ bill_no
  • String
  • 1232132131
  • 账单编号
  • └ merchant_subsidy_fee
  • String
  • 1.0
  • 商家补贴
  • └ brand_subsidy_fee
  • String
  • 1.0
  • 品牌商补贴
  • └ receivable_amount
  • String
  • 10.0
  • 商家应收金额
  • └ p_trade_id
  • String
  • 123131
  • 原正向单号
  • └ platform_voucher_subsidy_fee
  • BigDecimal
  • 100
  • 平台红包补贴
  • └ merchant_voucher_subsidy_fee
  • BigDecimal
  • 10
  • 商家承担红包补贴费用
  • └ merchant_send_subsidy_fee
  • BigDecimal
  • 1.0
  • 商家配送费补贴
  • └ plat_send_subsidy_fee
  • BigDecimal
  • 1.0
  • 渠道配送费补贴
  • └ src_settle_company_name
  • String
  • 测试公司
  • 结算公司名称
  • └ dispute_fee
  • BigDecimal
  • 1.0
  • 申诉赔付
  • └ pay_pack_fee
  • BigDecimal
  • 1.0
  • 包装费
  • └ post_fee
  • BigDecimal
  • 1.0
  • 运费
  • └ funds_user_subsidy_fee
  • BigDecimal
  • 1.0
  • 商家承担金本位补贴
  • └ platform_deduct_fee
  • BigDecimal
  • 1.0
  • 技术服务费+配送服务费+手续费
  • └ merchant_teamer_fee
  • BigDecimal
  • 1.0
  • 团长直通车推广佣金
  • └ brand_send_subsidy_fee
  • BigDecimal
  • 1.0
  • 品牌承担运费补贴
  • └ merchant_live_fee
  • BigDecimal
  • 1.0
  • 直播基础服务费
  • └ voucher_id
  • String
  • 212312
  • 券id
  • └ auction_price
  • BigDecimal
  • 1.0
  • 商品实付
  • └ pack_fee
  • BigDecimal
  • 1.0
  • 平台包装费(商家出资部分)
  • └ funds_platform_subsidy
  • BigDecimal
  • 1.0
  • 平台承担金本位补贴
  • └ funds_brand_subsidy
  • BigDecimal
  • 1.0
  • 品牌承担金本位补贴
  • └ tp_supplier_service_fee
  • BigDecimal
  • 1.0
  • 代运营服务费(平台代收)
  • └ platform_88vip_subsidy_fee
  • BigDecimal
  • 1.0
  • 平台承担88VIP营销补贴
  • └ subsidy_income
  • BigDecimal
  • 1.0
  • 非商家营销补贴(营销补贴收入) 平台营销补贴+品牌营销补贴
  • └ other_total_fee
  • BigDecimal
  • 1.0
  • 其他金额
  • └ total
  • Number
  • 1
  • 结果总调条数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkBillListRequest req = new AlibabaWdkBillListRequest();
AlibabaWdkBillListRequest.TxdBillListGetRequest obj1 = new AlibabaWdkBillListRequest.TxdBillListGetRequest();
obj1.setEndBillDate(StringUtils.parseDateTime("2021-05-21 00:00:00"));
obj1.setStartBillDate(StringUtils.parseDateTime("2021-05-21 00:00:00"));
obj1.setShopCode("CSSJ01");
obj1.setPageSize(20L);
obj1.setPageIndex(1L);
req.setTxdBillListGetRequest(obj1);
AlibabaWdkBillListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdk_bill_list_response>
    <api_result>
        <err_code>1</err_code>
        <err_msg>1</err_msg>
        <success>true</success>
        <model>
            <txd_bill_detail_b_o_s>
                <txd_bill_detail_bo>
                    <platform_subsidy_fee>1.0</platform_subsidy_fee>
                    <distribution_fee>1.0</distribution_fee>
                    <handle_fee>0</handle_fee>
                    <technical_service_fee>0</technical_service_fee>
                    <transport_fee>1.0</transport_fee>
                    <charge_base>3.0</charge_base>
                    <pay_amount>2.0</pay_amount>
                    <trade_channel>POS</trade_channel>
                    <biz_order_id>123213131</biz_order_id>
                    <order_type>正向</order_type>
                    <shop_name>测试门店</shop_name>
                    <shop_code>CSSJ01</shop_code>
                    <settle_company_name>测试财务组织</settle_company_name>
                    <settle_company_code>CSSJC01</settle_company_code>
                    <merchant_name>测试商家</merchant_name>
                    <merchant_code>CSSJ</merchant_code>
                    <biz_date>2021-05-21 00:00:00</biz_date>
                    <bill_date>2021-05-21 00:00:00</bill_date>
                    <bill_no>1232132131</bill_no>
                    <merchant_subsidy_fee>1.0</merchant_subsidy_fee>
                    <brand_subsidy_fee>1.0</brand_subsidy_fee>
                    <receivable_amount>10.0</receivable_amount>
                    <p_trade_id>123131</p_trade_id>
                    <platform_voucher_subsidy_fee>100</platform_voucher_subsidy_fee>
                    <merchant_voucher_subsidy_fee>10</merchant_voucher_subsidy_fee>
                    <merchant_send_subsidy_fee>1.0</merchant_send_subsidy_fee>
                    <plat_send_subsidy_fee>1.0</plat_send_subsidy_fee>
                    <src_settle_company_name>测试公司</src_settle_company_name>
                    <dispute_fee>1.0</dispute_fee>
                    <pay_pack_fee>1.0</pay_pack_fee>
                    <post_fee>1.0</post_fee>
                    <funds_user_subsidy_fee>1.0</funds_user_subsidy_fee>
                    <platform_deduct_fee>1.0</platform_deduct_fee>
                    <merchant_teamer_fee>1.0</merchant_teamer_fee>
                    <brand_send_subsidy_fee>1.0</brand_send_subsidy_fee>
                    <merchant_live_fee>1.0</merchant_live_fee>
                    <voucher_id>212312</voucher_id>
                    <auction_price>1.0</auction_price>
                    <pack_fee>1.0</pack_fee>
                    <funds_platform_subsidy>1.0</funds_platform_subsidy>
                    <funds_brand_subsidy>1.0</funds_brand_subsidy>
                    <tp_supplier_service_fee>1.0</tp_supplier_service_fee>
                    <platform_88vip_subsidy_fee>1.0</platform_88vip_subsidy_fee>
                    <subsidy_income>1.0</subsidy_income>
                    <other_total_fee>1.0</other_total_fee>
                </txd_bill_detail_bo>
            </txd_bill_detail_b_o_s>
            <total>1</total>
        </model>
    </api_result>
</alibaba_wdk_bill_list_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

返回
顶部