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

alibaba.tcls.aelophy.order.receipt.query (订单小票查询)

订单小票查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
receipt_query_request ReceiptQueryRequest 必须 小票查询请求
  • └ batch_id
  • String
  • 必须
  • 0607000001
  • 打印批次
  • └ paper_width
  • Number
  • 可选
  • 58
  • 打印纸宽度

响应参数

名称 类型 示例值 描述
result ApiResult 返回结果
  • └ err_code
  • String
  • PARRAM_ERROR
  • 错误码
  • └ status
  • Boolean
  • true
  • 接口状态
  • └ err_msg
  • String
  • 参数错误
  • 错误信息
  • order_list
  • ReceiptDTO []
  • 打印商家/顾客联小票数据列表
  • receipt_info
  • ReceiptInfoDTO
  • 商家/顾客联小票数据
  • └ batch_name
  • String
  • 无区块-15:05-15:50-44分钟
  • 批次名称
  • └ tb_order_id
  • String
  • 133294232496585288
  • 淘宝订单号
  • └ cancel_amount
  • String
  • 0.00
  • 取消退款金额
  • └ order_num
  • String
  • 25
  • 渠道号
  • └ discount_amount
  • String
  • 2.00
  • 优惠金额
  • └ remark
  • String
  • 地瓜挑细点的
  • 备注
  • └ batch_id
  • String
  • 481647732422030601
  • 批次号
  • └ warehouse_name
  • String
  • xxxx
  • 店仓名称
  • └ warehouse_code
  • String
  • 023
  • 店仓code
  • └ self_pick_place
  • String
  • 地址
  • 自提点地址
  • item_info_list
  • ItemInfoDTO []
  • 商品列表
  • └ sku_stock_unit
  • String
  • 库存单位
  • └ item_unit_price
  • String
  • 54.90
  • 商品原单价
  • └ item_code
  • String
  • 297800
  • 商品编码
  • └ out_of_stock_item_count
  • Number
  • 1
  • 缺货出件数
  • └ expect_item_count
  • Number
  • 2
  • 商品应拣数量
  • └ service_names
  • String []
  • 加工服务
  • └ nonstandard_item_count
  • String
  • 1.1
  • 实称重量
  • └ total_amount
  • String
  • 109.80
  • 商品原合计金额
  • └ expect_stock_quantity
  • String
  • 1.2
  • 商品应拣重量
  • └ item_name
  • String
  • 肥羊1000g/袋
  • 商品名称
  • └ storage_mode
  • Number
  • 1
  • 温层信息
  • └ barcode
  • String
  • 6926557311984
  • 条形码
  • └ standard_sku
  • Boolean
  • true
  • 是否标品
  • └ storage_mode
  • Number
  • -1
  • 储藏方式
  • └ all_item_count
  • Number
  • 15
  • 商品总件数
  • └ out_of_stock
  • Boolean
  • true
  • 缺货出状态
  • └ latest_arrive_time
  • Date
  • 03.06 15:50
  • 最晚送达时间
  • └ pay_order_amount
  • String
  • 186.35
  • 实付金额
  • └ package_fee
  • String
  • 0.30
  • 包装费
  • └ refund_amount
  • String
  • 0.00
  • 差额退款金额
  • └ channel_order_id
  • String
  • 3409823
  • 渠道订单号
  • └ billing_link
  • String
  • url
  • 发票连接
  • └ ticket_cou_pon
  • String []
  • 订单票联 user:顾客联,seller:商家联
  • buyer_info
  • BuyerInfoDTO
  • 买家信息
  • └ buyer_name
  • String
  • 孙**
  • 买家姓名
  • └ buyer_phone
  • String
  • 18***274
  • 买家电话号码
  • └ buyer_address
  • String
  • xxxx
  • 收货地址
  • └ postage
  • String
  • 5.50
  • 运费
  • └ total_order_amount
  • String
  • 186.55
  • 商品总额
  • └ batch_strategy
  • String
  • O2O
  • 批次策略
  • └ business_type
  • String
  • MEITUAN
  • 业务类型
  • └ fulfill_order_id
  • String
  • 12768624248
  • 履约单号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTclsAelophyOrderReceiptQueryRequest req = new AlibabaTclsAelophyOrderReceiptQueryRequest();
AlibabaTclsAelophyOrderReceiptQueryRequest.ReceiptQueryRequest obj1 = new AlibabaTclsAelophyOrderReceiptQueryRequest.ReceiptQueryRequest();
obj1.setBatchId("0607000001");
obj1.setPaperWidth(58L);
req.setReceiptQueryRequest(obj1);
AlibabaTclsAelophyOrderReceiptQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tcls_aelophy_order_receipt_query_response>
    <result>
        <err_code>PARRAM_ERROR</err_code>
        <status>true</status>
        <err_msg>参数错误</err_msg>
        <order_list>
            <receipt_d_t_o>
                <receipt_info>
                    <batch_name>无区块-15:05-15:50-44分钟</batch_name>
                    <tb_order_id>133294232496585288</tb_order_id>
                    <cancel_amount>0.00</cancel_amount>
                    <order_num>25</order_num>
                    <discount_amount>2.00</discount_amount>
                    <remark>地瓜挑细点的</remark>
                    <batch_id>481647732422030601</batch_id>
                    <warehouse_name>xxxx</warehouse_name>
                    <warehouse_code>023</warehouse_code>
                    <self_pick_place>地址</self_pick_place>
                    <item_info_list>
                        <item_info_d_t_o>
                            <sku_stock_unit>袋</sku_stock_unit>
                            <item_unit_price>54.90</item_unit_price>
                            <item_code>297800</item_code>
                            <out_of_stock_item_count>1</out_of_stock_item_count>
                            <expect_item_count>2</expect_item_count>
                            <nonstandard_item_count>1.1</nonstandard_item_count>
                            <total_amount>109.80</total_amount>
                            <expect_stock_quantity>1.2</expect_stock_quantity>
                            <item_name>肥羊1000g/袋</item_name>
                            <storage_mode>1</storage_mode>
                            <barcode>6926557311984</barcode>
                            <standard_sku>true</standard_sku>
                        </item_info_d_t_o>
                    </item_info_list>
                    <storage_mode>-1</storage_mode>
                    <all_item_count>15</all_item_count>
                    <out_of_stock>true</out_of_stock>
                    <latest_arrive_time>03.06 15:50</latest_arrive_time>
                    <pay_order_amount>186.35</pay_order_amount>
                    <package_fee>0.30</package_fee>
                    <refund_amount>0.00</refund_amount>
                    <channel_order_id>3409823</channel_order_id>
                    <billing_link>url</billing_link>
                    <buyer_info>
                        <buyer_name>孙**</buyer_name>
                        <buyer_phone>18***274</buyer_phone>
                        <buyer_address>xxxx</buyer_address>
                    </buyer_info>
                    <postage>5.50</postage>
                    <total_order_amount>186.55</total_order_amount>
                    <batch_strategy>O2O</batch_strategy>
                    <business_type>MEITUAN</business_type>
                    <fulfill_order_id>12768624248</fulfill_order_id>
                </receipt_info>
            </receipt_d_t_o>
        </order_list>
    </result>
</alibaba_tcls_aelophy_order_receipt_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

返回
顶部