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

alibaba.einvoice.invoiceapply.get (获取商家的开票申请)

开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
apply_id String 必须 123456ABC 开票申请id

响应参数

名称 类型 示例值 描述
result UserInvoiceApplyDTO 开票申请查询结果
  • └ apply_id
  • String
  • 123456ABC
  • 开票申请id
  • └ invoice_amount
  • String
  • 250.00
  • 开票金额
  • └ payee_register_no
  • String
  • 91009182039X
  • 税号,表示商家是为此税号的账单开票
  • └ company_name
  • String
  • 阿里巴巴
  • 企业名称
  • └ bank
  • String
  • 招商银行余杭支行
  • 申请企业开户行
  • └ bank_account
  • String
  • 6226098873832274
  • 申请企业开户账号
  • └ status
  • Number
  • 1
  • 申请单状态:1:待确认,2:开票中,3:拒绝开票,4:发票已发出,0:完成开票
  • └ receiver_address
  • String
  • 杭州市余杭区文一西路969号
  • 商家收货地址
  • └ receiver_name
  • String
  • 张三
  • 商家收货人
  • └ receiver_phone
  • String
  • 18588888888
  • 商家收货电话
  • └ sender_name
  • String
  • 李四
  • 服务商发货人
  • └ sender_phone
  • String
  • 18600000000
  • 服务商发货人电话
  • └ sender_logistics_company
  • String
  • 菜鸟果果
  • 服务商发货物流
  • └ sender_logistics_no
  • String
  • 9180980123
  • 服务商发货快递单号
  • invoice_item_list
  • UserInvoiceItemDTO []
  • 开票明细列表
  • └ item_name
  • String
  • 税控服务
  • 商品名称
  • └ item_type
  • Number
  • 1
  • 商品类型:1. 税控单元,2.开票日账单
  • └ amount
  • String
  • 4500.00
  • 商品金额
  • └ bill_date
  • String
  • 2016-11-11
  • 订单日
  • └ invoice_type
  • Number
  • 1
  • 发票类型:1:增值税普通发票,2:增值税专用发票
  • └ invoice_payee_register_no
  • String
  • 87987203945ABC
  • 购方票面税号
  • └ invoice_address
  • String
  • 浙江省杭州市文一西路969号
  • 购方票面地址
  • └ invoice_phone
  • String
  • 0756-8862222
  • 购方票面电话
total_count Number 1 totalCount

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceInvoiceapplyGetRequest req = new AlibabaEinvoiceInvoiceapplyGetRequest();
req.setApplyId("123456ABC");
AlibabaEinvoiceInvoiceapplyGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_invoiceapply_get_response>
    <result>
        <apply_id>123456ABC</apply_id>
        <invoice_amount>250.00</invoice_amount>
        <payee_register_no>91009182039X</payee_register_no>
        <company_name>阿里巴巴</company_name>
        <bank>招商银行余杭支行</bank>
        <bank_account>6226098873832274</bank_account>
        <status>1</status>
        <receiver_address>杭州市余杭区文一西路969号</receiver_address>
        <receiver_name>张三</receiver_name>
        <receiver_phone>18588888888</receiver_phone>
        <sender_name>李四</sender_name>
        <sender_phone>18600000000</sender_phone>
        <sender_logistics_company>菜鸟果果</sender_logistics_company>
        <sender_logistics_no>9180980123</sender_logistics_no>
        <invoice_item_list>
            <user_invoice_item_d_t_o>
                <item_name>税控服务</item_name>
                <item_type>1</item_type>
                <amount>4500.00</amount>
                <bill_date>2016-11-11</bill_date>
            </user_invoice_item_d_t_o>
        </invoice_item_list>
        <invoice_type>1</invoice_type>
        <invoice_payee_register_no>87987203945ABC</invoice_payee_register_no>
        <invoice_address>浙江省杭州市文一西路969号</invoice_address>
        <invoice_phone>0756-8862222</invoice_phone>
    </result>
    <total_count>1</total_count>
</alibaba_einvoice_invoiceapply_get_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

返回
顶部