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

alibaba.wdk.trade.order.balance.bill.query (分页拉取订单数据)

提供接口供外部调用,分页拉取订单数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_balance_bill_request OrderBalanceBillRequest 可选 入参
  • └ thedate
  • String
  • 可选
  • 20118-04-01
  • 业务日期
  • └ page_size
  • Number
  • 可选
  • 100
  • 每页条数
  • └ page_no
  • Number
  • 可选
  • 0
  • 页码
  • └ store_id
  • String
  • 可选
  • 12313
  • storeId
  • └ max_id
  • Number
  • 可选
  • 0
  • 最大的id

响应参数

名称 类型 示例值 描述
api_result ApiResult result ApiResult
  • model
  • OrderBalanceBillResponseDo
  • orderBalacnceresponse
  • model
  • order_balance_bill_list
  • OrderBalanceBillDo []
  • orderBalanceBillDOList
  • orderBalanceBillDOList
  • └ parent_total_price
  • String
  • 12
  • 订单原价
  • └ pay_time
  • String
  • 2018-04-01
  • 订单付款时间
  • └ gmt_create
  • String
  • 2018-04-01
  • 分账单创建时间
  • └ order_channel
  • String
  • pos
  • 交易渠道 1:其他 2:app 3:pos
  • └ mord_id
  • String
  • 12312123
  • 父订单
  • └ store_name
  • String
  • 测试商家
  • 门店名字
  • └ store_id
  • String
  • test12345
  • 名店id
  • └ subsidiary_name
  • String
  • 测试商家1
  • 子公司
  • └ subsidiary_code
  • String
  • test012131
  • 子公司code
  • └ merchant_name
  • String
  • 天地
  • 集团
  • └ merchant_code
  • String
  • tiandi123123
  • 集团code
  • └ thedate
  • String
  • 2018-04-01
  • 业务日期
  • └ gmt_modified
  • Date
  • 2018-04-01
  • 创建时间
  • └ id
  • Number
  • 1231
  • 主键id
  • └ pay_tech_fee
  • String
  • 12
  • 订单技术服务费
  • └ pay_fee
  • String
  • 1
  • 用户实付金额,减支付宝红包
  • └ parent_original_price
  • String
  • 1
  • 订单付款金额
  • └ discount_fee
  • String
  • 1
  • 总优惠金额
  • └ pay_discount_fee
  • String
  • 1
  • 支付优惠金额
  • └ discount_fz_fee
  • String
  • 1
  • 分账优惠金额
  • └ pmt_discount_fee
  • String
  • 1
  • 订单优惠金额平台补贴商家费用
  • └ parent_discount_fee
  • String
  • 1
  • 订单优惠金额
  • └ order_from
  • String
  • 1
  • 渠道来源 :1 淘点点;2 美团;3 饿了么;4 淘宝TC;5 百度外卖;6 微信 ;7 三江;18 大润发飞牛优鲜;
  • └ pay_channel
  • String
  • 1
  • 支付方式
  • └ type
  • String
  • 1
  • 单据类型
  • └ seller_receive_fee
  • String
  • 1
  • 商家应收金额
  • └ discount_change_fee
  • String
  • 1
  • 优惠手续费
  • └ discount_tech_fee
  • String
  • 1
  • 优惠技术服务费
  • └ discount_seller_fee
  • String
  • 2
  • 商家承担优惠金额
  • └ discount_platform_fee
  • String
  • 2
  • 平台承担优惠金额
  • └ fz_fee
  • String
  • 2
  • 分账金额
  • └ delivery_fee
  • String
  • 2
  • 配送费
  • └ pay_change_fee
  • String
  • 2
  • 订单手续费
  • └ parent_post_fee
  • String
  • 10
  • 原订单运费
  • └ user_pay_amount
  • String
  • 105
  • 用户应付金额(含运费)
  • └ pay_by_ali_pay
  • String
  • 105
  • 支付宝收款
  • └ pay_by_other
  • String
  • 0
  • 非支付宝收款
  • └ income_amount
  • String
  • 105
  • 收入金额小计
  • └ package_time
  • String
  • 2018-07-04 00:00:00
  • 打包时间
  • └ packaged_status
  • String
  • PACKAGED
  • 正向打包状态
  • └ income
  • Number
  • 1
  • 是否退款计算收入(1:是,0:否) 这是逆向的
  • └ has_next
  • String
  • 0
  • 是否有下一页0:没有 1:有
  • └ err_code
  • String
  • 0
  • 错误码
  • └ err_msg
  • String
  • 01
  • 错误信息
  • └ success
  • Boolean
  • 0
  • 成功失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkTradeOrderBalanceBillQueryRequest req = new AlibabaWdkTradeOrderBalanceBillQueryRequest();
AlibabaWdkTradeOrderBalanceBillQueryRequest.OrderBalanceBillRequest obj1 = new AlibabaWdkTradeOrderBalanceBillQueryRequest.OrderBalanceBillRequest();
obj1.setThedate("20118-04-01");
obj1.setPageSize(100L);
obj1.setPageNo(0L);
obj1.setStoreId("12313");
obj1.setMaxId(0L);
req.setOrderBalanceBillRequest(obj1);
AlibabaWdkTradeOrderBalanceBillQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdk_trade_order_balance_bill_query_response>
    <api_result>
        <model>
            <order_balance_bill_list>
                <order_balance_bill_do>
                    <parent_total_price>12</parent_total_price>
                    <pay_time>2018-04-01</pay_time>
                    <gmt_create>2018-04-01</gmt_create>
                    <order_channel>pos</order_channel>
                    <mord_id>12312123</mord_id>
                    <store_name>测试商家</store_name>
                    <store_id>test12345</store_id>
                    <subsidiary_name>测试商家1</subsidiary_name>
                    <subsidiary_code>test012131</subsidiary_code>
                    <merchant_name>天地</merchant_name>
                    <merchant_code>tiandi123123</merchant_code>
                    <thedate>2018-04-01</thedate>
                    <gmt_modified>2018-04-01</gmt_modified>
                    <id>1231</id>
                    <pay_tech_fee>12</pay_tech_fee>
                    <pay_fee>1</pay_fee>
                    <parent_original_price>1</parent_original_price>
                    <discount_fee>1</discount_fee>
                    <pay_discount_fee>1</pay_discount_fee>
                    <discount_fz_fee>1</discount_fz_fee>
                    <pmt_discount_fee>1</pmt_discount_fee>
                    <parent_discount_fee>1</parent_discount_fee>
                    <order_from>1</order_from>
                    <pay_channel>1</pay_channel>
                    <type>1</type>
                    <seller_receive_fee>1</seller_receive_fee>
                    <discount_change_fee>1</discount_change_fee>
                    <discount_tech_fee>1</discount_tech_fee>
                    <discount_seller_fee>2</discount_seller_fee>
                    <discount_platform_fee>2</discount_platform_fee>
                    <fz_fee>2</fz_fee>
                    <delivery_fee>2</delivery_fee>
                    <pay_change_fee>2</pay_change_fee>
                    <parent_post_fee>10</parent_post_fee>
                    <user_pay_amount>105</user_pay_amount>
                    <pay_by_ali_pay>105</pay_by_ali_pay>
                    <pay_by_other>0</pay_by_other>
                    <income_amount>105</income_amount>
                    <package_time>2018-07-04 00:00:00</package_time>
                    <packaged_status>PACKAGED</packaged_status>
                    <income>1</income>
                </order_balance_bill_do>
            </order_balance_bill_list>
            <has_next>0</has_next>
        </model>
        <err_code>0</err_code>
        <err_msg>01</err_msg>
        <success>0</success>
    </api_result>
</alibaba_wdk_trade_order_balance_bill_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

返回
顶部