文档中心 > API类目 > 电子发票

alibaba.einvoice.bill.einvoice.list (扫码开票列表)

扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
platform String 可选 default
  • 默认值:default
  • 结算单同步的ERP平台系统
    payee_register_no String 必须 1223455677a12 收款方税号
    order_id String 必须 12222222 订单ID
    einvoice_type String [] 可选 1,2,3,4
  • 最大列表长度:20
  • 开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。不填获取全部

    响应参数

    名称 类型 示例值 描述
    result ResultSet {} 返回结果
    • └ error_message
    • String
    • 无法获取,DB出错
    • 错误信息
    • result_list
    • ResultList []
    • {}
    • 返回结果具体信息
    • └ payee_register_no
    • String
    • 111111122edf22d
    • 付款方税号
    • └ platform
    • String
    • default
    • 付款方平台
    • └ order_id
    • String
    • 11111111111
    • 订单id
    • └ sum_price
    • String
    • 100.10
    • 开票金额
    • invoice_items
    • InvoiceItems []
    • {}
    • 开票明细列表
    • └ item_name
    • String
    • 苹果
    • 商品名称
    • └ quantity
    • String
    • 10
    • 数量
    • └ amount
    • String
    • 100.10
    • 价税合计
    • └ specification
    • String
    • X1
    • 规格型号
    • └ unit
    • String
    • 单位
    • └ seri_no
    • String
    • 二维码序列号
    • seriNo
    • └ invoice_status
    • Number
    • 开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。
    • invoiceStatus
    • └ total_count
    • Number
    • 1
    • totalCount
    • └ ret_code
    • String
    • 0
    • 错误码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaEinvoiceBillEinvoiceListRequest req = new AlibabaEinvoiceBillEinvoiceListRequest();
    req.setPlatform("default");
    req.setPayeeRegisterNo("1223455677a12");
    req.setOrderId("12222222");
    req.setEinvoiceType("1,2,3,4");
    AlibabaEinvoiceBillEinvoiceListResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_einvoice_bill_einvoice_list_response>
        <result>
            <error_message>无法获取,DB出错</error_message>
            <result_list>
                <result_list>
                    <payee_register_no>111111122edf22d</payee_register_no>
                    <platform>default</platform>
                    <order_id>11111111111</order_id>
                    <sum_price>100.10</sum_price>
                    <invoice_items>
                        <invoice_items>
                            <item_name>苹果</item_name>
                            <quantity>10</quantity>
                            <amount>100.10</amount>
                            <specification>X1</specification>
                            <unit>只</unit>
                        </invoice_items>
                    </invoice_items>
                    <seri_no>二维码序列号</seri_no>
                    <invoice_status>开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。</invoice_status>
                </result_list>
            </result_list>
            <total_count>1</total_count>
            <ret_code>0</ret_code>
        </result>
    </alibaba_einvoice_bill_einvoice_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

    返回
    顶部