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

alibaba.wdk.finance.order.backflow (财务订单回流)

星巴克拉取财务订单回流数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
finance_order_detail_request FinanceOrderDetailRequest 必须 财务订单回流入参
  • └ current_page
  • Number
  • 必须
  • 1
  • 当前页码
  • └ page_size
  • Number
  • 必须
  • 100
  • 每页条数
  • └ sale_channel
  • String
  • 可选
  • 1
  • 销售渠道
  • └ sale_source
  • String
  • 可选
  • 1
  • 销售来源
  • └ trade_type
  • String
  • 可选
  • 1
  • 交易类型
  • └ shop_codes
  • String []
  • 可选
  • 2313,1313
  • 门店编码list
  • └ end_time
  • Date
  • 必须
  • 2019-01-11 23:59:00
  • 结束时间
  • └ start_time
  • Date
  • 必须
  • 2019-01-11 00:00:01
  • 开始时间

响应参数

名称 类型 示例值 描述
api_result ApiResult 根据站点名称查询产品
  • models
  • FinanceOrderDetailResponse
  • 调用接口返回的具体结果
  • pagination
  • Pagination
  • 分页信息
  • └ total_page
  • Number
  • 20
  • 总页数
  • └ total_count
  • Number
  • 400
  • 总记录数
  • └ page_size
  • Number
  • 20
  • 页容量
  • └ current_page
  • Number
  • 1
  • 当前页码
  • finance_order_details
  • FinanceOrderDetail []
  • 财务订单信息
  • └ currency
  • String
  • 测试
  • 币种
  • └ untax_sale_total_amount
  • Number
  • 12
  • 未税销售净额
  • └ sale_total_amount
  • Number
  • 12
  • 含税销售净额
  • └ untax_discount_amount
  • Number
  • 12
  • 未税优惠金额
  • └ discount_amount
  • Number
  • 1
  • 含税优惠金额
  • └ untax_amount
  • Number
  • 1
  • 未税金额
  • └ amount
  • Number
  • 1
  • 含税金额
  • └ unit_price
  • Number
  • 12
  • 含税商品单价(元)
  • └ quantity
  • Number
  • 1
  • 交易数量
  • └ tax_rate
  • String
  • 0.06
  • 税率
  • └ sale_channel
  • String
  • 线上
  • 销售渠道
  • └ sale_source
  • String
  • 盒马
  • 销售来源
  • └ trade_type
  • String
  • 消费
  • 交易类型
  • └ sku_name
  • String
  • 拿铁
  • 商品名称
  • └ sku_code
  • String
  • 1209921421
  • 商品编码
  • └ p_trade_id
  • String
  • 24001531235625830
  • 业务主订单id
  • └ shop_name
  • String
  • 测试点
  • 门店名称
  • └ shop_code
  • String
  • ceshi
  • 门店编码
  • └ trade_time
  • String
  • 11:41:36
  • 交易时间,用户实际下单时间,格式:HH:mm:ss
  • └ biz_date
  • String
  • 20181029
  • 业务日期,用户实际下单日期,格式:yyyyMMdd
  • └ biz_uk
  • String
  • 1231231
  • 业务主键
  • └ trade_type_code
  • Number
  • 88
  • 交易类型编码 * 88 - 销售 * 99 - 退款
  • └ err_code
  • String
  • 调用接口返回错误码
  • └ err_msg
  • String
  • 调用接口返回错误信息
  • └ success
  • Boolean
  • 调用接口返回成功失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkFinanceOrderBackflowRequest req = new AlibabaWdkFinanceOrderBackflowRequest();
AlibabaWdkFinanceOrderBackflowRequest.FinanceOrderDetailRequest obj1 = new AlibabaWdkFinanceOrderBackflowRequest.FinanceOrderDetailRequest();
obj1.setCurrentPage(1L);
obj1.setPageSize(100L);
obj1.setSaleChannel("1");
obj1.setSaleSource("1");
obj1.setTradeType("1");
obj1.setShopCodes("2313,1313");
obj1.setEndTime(StringUtils.parseDateTime("2019-01-11 23:59:00"));
obj1.setStartTime(StringUtils.parseDateTime("2019-01-11 00:00:01"));
req.setFinanceOrderDetailRequest(obj1);
AlibabaWdkFinanceOrderBackflowResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdk_finance_order_backflow_response>
    <api_result>
        <models>
            <pagination>
                <total_page>20</total_page>
                <total_count>400</total_count>
                <page_size>20</page_size>
                <current_page>1</current_page>
            </pagination>
            <finance_order_details>
                <finance_order_detail>
                    <currency>测试</currency>
                    <untax_sale_total_amount>12</untax_sale_total_amount>
                    <sale_total_amount>12</sale_total_amount>
                    <untax_discount_amount>12</untax_discount_amount>
                    <discount_amount>1</discount_amount>
                    <untax_amount>1</untax_amount>
                    <amount>1</amount>
                    <unit_price>12</unit_price>
                    <quantity>1</quantity>
                    <tax_rate>0.06</tax_rate>
                    <sale_channel>线上</sale_channel>
                    <sale_source>盒马</sale_source>
                    <trade_type>消费</trade_type>
                    <sku_name>拿铁</sku_name>
                    <sku_code>1209921421</sku_code>
                    <p_trade_id>24001531235625830</p_trade_id>
                    <shop_name>测试点</shop_name>
                    <shop_code>ceshi</shop_code>
                    <trade_time>11:41:36</trade_time>
                    <biz_date>20181029</biz_date>
                    <biz_uk>1231231</biz_uk>
                    <trade_type_code>88</trade_type_code>
                </finance_order_detail>
            </finance_order_details>
        </models>
        <err_code></err_code>
        <err_msg></err_msg>
        <success></success>
    </api_result>
</alibaba_wdk_finance_order_backflow_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

返回
顶部