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

alibaba.einvoice.flow.register.get (查询商户入驻工单信息)

查询商户入驻工单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
register_id String 必须 TB123456789 入驻工单ID

响应参数

名称 类型 示例值 描述
result ServiceResult 系统返回的通用结果类
  • result
  • InvoiceRegisterQueryResult
  • 入驻工单结果
  • └ ext_json
  • String
  • {"ext1":"1"}
  • 可选。拓展字段,json格式
  • invoice_company
  • InvoiceCompanyDto
  • 企业税务信息
  • └ area
  • String
  • 朝阳区
  • 可选。企业所在区
  • └ bank_account_id
  • String
  • 888888888888
  • 可选。开户行账号
  • └ bank_name
  • String
  • 深圳市软件园招商银行
  • 可选。开户行名称,开户行账号加名称不超出100字符
  • └ city
  • String
  • 北京市
  • 必选。企业所在城市
  • └ company_name
  • String
  • 阿里巴巴发票中台测试企业
  • 必选。企业名称
  • └ company_type
  • Number
  • 1
  • 可选。企业类型,企业类型,可选值: 1:一般纳税人; 2:小规模纳税人; 3:起征点以下纳税人
  • └ default_item_name
  • String
  • 稻谷
  • 可选。默认商品名称
  • └ default_tax_code
  • String
  • 1010101010000000000
  • 可选。默认税收分类编码
  • └ default_tax_rate
  • String
  • 0.17
  • 可选。税率,格式为小数
  • └ detailed_address
  • String
  • 深圳市南山区软件园
  • 可选。企业地址
  • └ ext_json
  • String
  • {"ext1":"1"}
  • 可选。拓展字段,json格式
  • └ invoice_phone
  • String
  • 0730-12345678
  • 可选。企业电话
  • └ payee_checker
  • String
  • 李四
  • 可选。复核人
  • └ payee_operator
  • String
  • 张三
  • 可选。默认开票人
  • └ payee_receiver
  • String
  • 王五
  • 可选。收款人
  • └ payee_register_no
  • String
  • QWERTY123456789
  • 可选。纳税人识别号
  • └ province
  • String
  • 北京市
  • 可选。企业所在省/直辖市
  • └ tax_token
  • String
  • 2391ajiejiqfopj193109312jrf0a9jf90j1
  • 可选。商户在税控服务开通后,税控厂商会向商户分配秘钥并提供token的生成方法,商户或ISV利用该方法生成token以获得此次调用的操作权限。 register_type=init时候必填
  • invoice_contact
  • InvoiceContactDto
  • 联系人信息
  • └ contact_addr
  • String
  • 广东深深圳市南山区软件园南区
  • 可选。联系人地址
  • └ contact_mail
  • String
  • test@alibaba.com
  • 可选。联系人邮箱
  • └ contact_mobile
  • String
  • 13388888888
  • 必选。联系人电话
  • └ contact_name
  • String
  • 张三
  • 必选。联系人姓名
  • └ invoice_kind
  • String
  • 0
  • 可选。税控产品发票类型 可选值: 0: 电票 1:纸质普票 2:纸质专票
  • invoice_order_list
  • InvoiceOrderDto []
  • 发票订购信息。当业务前台是 由服务市场订购后发起入驻时,必填 reister_type=init时为空
  • └ article_code
  • String
  • BWDZFP
  • 必选。商品CODE
  • └ article_fee
  • String
  • 4500.00
  • 可选。商品原价,单位元,最多2位小数
  • └ article_id
  • String
  • A1001
  • 必选。服务市场商品ID
  • └ article_name
  • String
  • 电子发票基础服务
  • 必选。商品名称
  • └ buy_date
  • Date
  • 2019-11-11 11:11:11
  • 必选。订购日期
  • └ ext_json
  • String
  • {"ext1":"1"}
  • 可选。拓展字段,json格式
  • └ fact_total_fee
  • String
  • 4500.00
  • 可选。实付总金额,单位元,最多2位小数
  • └ item_code
  • String
  • JCFW
  • 可选。规格code
  • └ item_id
  • String
  • I001
  • 可选。规格id
  • └ item_name
  • String
  • 核心板
  • 可选。规格名称
  • └ order_id
  • String
  • 123456789
  • 必选。服务市场订单号
  • └ order_type
  • String
  • new
  • 可选。订购类型,可选值: 新订购:new 续订:renew
  • └ device_id
  • String
  • 11
  • 订单所绑定的设备编号。 仅当deployType=ALI, 并且商户绑定了设备时,才返回该字段
  • └ product_code
  • String
  • TAX_CLOUD
  • 必选。产品类型,产品码由中台定义。
  • └ register_type
  • String
  • new
  • 必选。入驻类型,可选值: 新订购:new,续订:renew,已有税控初始化:init
  • └ platform_code
  • String
  • TB
  • 业务平台code
  • └ deploy_type
  • String
  • ISV
  • 该工单的部署方式,可选值: ALI:表示入驻过程中,由前台读取税控设备的税务信息后同步给ISV;这类工单,ISV在工单审核通过之后,需要暂停工单,等待中台发送工单事件(action=sync_company_info)通知后,ISV侧继续驱动工单流转。 ISV: 表示需要税控服务商从税控设备中读取税务信息,同步给阿里发票中台,并驱动工单流转; 不传时默认为ISV
  • └ success
  • Boolean
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceFlowRegisterGetRequest req = new AlibabaEinvoiceFlowRegisterGetRequest();
req.setRegisterId("TB123456789");
AlibabaEinvoiceFlowRegisterGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_flow_register_get_response>
    <result>
        <result>
            <ext_json>{&quot;ext1&quot;:&quot;1&quot;}</ext_json>
            <invoice_company>
                <area>朝阳区</area>
                <bank_account_id>888888888888</bank_account_id>
                <bank_name>深圳市软件园招商银行</bank_name>
                <city>北京市</city>
                <company_name>阿里巴巴发票中台测试企业</company_name>
                <company_type>1</company_type>
                <default_item_name>稻谷</default_item_name>
                <default_tax_code>1010101010000000000</default_tax_code>
                <default_tax_rate>0.17</default_tax_rate>
                <detailed_address>深圳市南山区软件园</detailed_address>
                <ext_json>{&quot;ext1&quot;:&quot;1&quot;}</ext_json>
                <invoice_phone>0730-12345678</invoice_phone>
                <payee_checker>李四</payee_checker>
                <payee_operator>张三</payee_operator>
                <payee_receiver>王五</payee_receiver>
                <payee_register_no>QWERTY123456789</payee_register_no>
                <province>北京市</province>
                <tax_token>2391ajiejiqfopj193109312jrf0a9jf90j1</tax_token>
            </invoice_company>
            <invoice_contact>
                <contact_addr>广东深深圳市南山区软件园南区</contact_addr>
                <contact_mail>test@alibaba.com</contact_mail>
                <contact_mobile>13388888888</contact_mobile>
                <contact_name>张三</contact_name>
            </invoice_contact>
            <invoice_kind>0</invoice_kind>
            <invoice_order_list>
                <invoice_order_dto>
                    <article_code>BWDZFP</article_code>
                    <article_fee>4500.00</article_fee>
                    <article_id>A1001</article_id>
                    <article_name>电子发票基础服务</article_name>
                    <buy_date>2019-11-11 11:11:11</buy_date>
                    <ext_json>{&quot;ext1&quot;:&quot;1&quot;}</ext_json>
                    <fact_total_fee>4500.00</fact_total_fee>
                    <item_code>JCFW</item_code>
                    <item_id>I001</item_id>
                    <item_name>核心板</item_name>
                    <order_id>123456789</order_id>
                    <order_type>new</order_type>
                    <device_id>11</device_id>
                </invoice_order_dto>
            </invoice_order_list>
            <product_code>TAX_CLOUD</product_code>
            <register_type>new</register_type>
            <platform_code>TB</platform_code>
            <deploy_type>ISV</deploy_type>
        </result>
        <success></success>
    </result>
</alibaba_einvoice_flow_register_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

返回
顶部