taobao.mos.orderqs.reporttotal (报表汇总查询接口)

给大pos提供报表汇总查询,按照根据不同支付方式类型汇总

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 QueryReceiptParam 必须 查询入参数
  • └ store_no
  • String
  • 必须
  • HZ01
  • 门店编号
  • └ vip
  • String
  • 可选
  • 15101079400
  • 手机号
  • └ start_date
  • String
  • 必须
  • 2019-03-05
  • 日期
  • └ pay_no
  • String
  • 可选
  • 69806610001
  • 小票号查询汇总不需要,查询详情需要
  • └ posno
  • String
  • 必须
  • 130
  • 收银机号
  • └ query_refund
  • Boolean
  • 可选
  • false
  • 是否查询退货
  • └ end_date
  • String
  • 必须
  • 2019-03-06
  • 结束日期
  • └ debug
  • Boolean
  • 可选
  • false
  • 无业务语意调试使用
  • └ tradetype
  • String
  • 可选
  • 大pos一定要传递空
  • 交易类型
  • └ cashier
  • String
  • 可选
  • 0001
  • 营业员编号
  • └ from_type
  • String
  • 必须
  • 2
  • 云pos传递1;大pos传递2

响应参数

名称 类型 示例值 描述
result MTopResult 返回结果 返回结果
  • model
  • ReportTotalDto
  • ReportTotalDto
  • 返回报表对象
  • pays
  • ReceiptPaymentTotalDto []
  • pays
  • 支付方式汇总对象
  • └ paycode
  • String
  • D144
  • 支付方式code
  • └ paytype
  • String
  • 微信支付
  • 支付方式名称
  • └ bs
  • String
  • 5
  • 支付方式订单发生的笔数
  • └ sales
  • String
  • 50000
  • 支付方式汇总钱,单位为分
  • └ msg_code
  • String
  • 500
  • 错误编码
  • └ msg_info
  • String
  • 系统异常
  • 错误提示
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MosOrderqsReporttotalRequest req = new MosOrderqsReporttotalRequest();
MosOrderqsReporttotalRequest.QueryReceiptParam obj1 = new MosOrderqsReporttotalRequest.QueryReceiptParam();
obj1.setStoreNo("HZ01");
obj1.setVip("15101079400");
obj1.setStartDate("2019-03-05");
obj1.setPayNo("69806610001");
obj1.setPosno("130");
obj1.setQueryRefund(false);
obj1.setEndDate("2019-03-06");
obj1.setDebug(false);
obj1.setTradetype("大pos一定要传递空");
obj1.setCashier("0001");
obj1.setFromType("2");
req.setParam0(obj1);
MosOrderqsReporttotalResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<mos_orderqs_reporttotal_response>
    <result>
        <model>
            <pays>
                <receipt_payment_total_dto>
                    <paycode>D144</paycode>
                    <paytype>微信支付</paytype>
                    <bs>5</bs>
                    <sales>50000</sales>
                </receipt_payment_total_dto>
            </pays>
        </model>
        <msg_code>500</msg_code>
        <msg_info>系统异常</msg_info>
        <success>true</success>
    </result>
</mos_orderqs_reporttotal_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

返回
顶部