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

alibaba.einvoice.device.order.query (查询税控设备加盘订购单详情)

查询税控设备订购单详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
flow_id String 必须 123456789 税控设备订购单ID

响应参数

名称 类型 示例值 描述
result ServiceResult 系统返回的通用结果类
  • result
  • InvoiceFwOrderDto
  • 订购单信息
  • invoice_contact
  • InvoiceContactDto
  • invoiceContact
  • 联系人对象
  • └ contact_name
  • String
  • 张三
  • 联系人姓名
  • └ contact_mobile
  • String
  • 13388888888
  • 联系人电话
  • └ contact_addr
  • String
  • 上海浦东
  • 联系人地址
  • └ buy_date
  • Date
  • 2019-10-01 00:00:00
  • 订购时间,格式yyyy-MM-dd HH:mm:ss
  • └ fact_total_fee
  • String
  • 500.00
  • 实付总金额,单位元,最多2位小数
  • └ item_id
  • String
  • 123
  • 商品规格ID
  • └ article_id
  • String
  • A01
  • 订购商品ID
  • └ order_id
  • String
  • 12345678
  • 服务市场订单号
  • └ product_code
  • String
  • TAX_CLOUD
  • 产品Code,中台定义的税控产品Code
  • └ payee_register_no
  • String
  • QWERTY0000001
  • 纳税人识别号
  • └ flow_id
  • String
  • 123456789
  • 税控设备订购单ID
  • └ register_type
  • String
  • new
  • 入驻类型,可选值: 新订购:new,已有税控初始化:online
  • └ serv_end_time
  • Date
  • 2019-10-01 00:00:00
  • 服务结束时间,格式yyyy-MM-dd HH:mm:ss
  • └ serv_start_time
  • Date
  • 2019-10-01 00:00:00
  • 服务起始时间,格式yyyy-MM-dd HH:mm:ss
  • └ article_name
  • String
  • 发票基础服务
  • 商品名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceDeviceOrderQueryRequest req = new AlibabaEinvoiceDeviceOrderQueryRequest();
req.setFlowId("123456789");
AlibabaEinvoiceDeviceOrderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_device_order_query_response>
    <result>
        <result>
            <invoice_contact>
                <contact_name>张三</contact_name>
                <contact_mobile>13388888888</contact_mobile>
                <contact_addr>上海浦东</contact_addr>
            </invoice_contact>
            <buy_date>2019-10-01 00:00:00</buy_date>
            <fact_total_fee>500.00</fact_total_fee>
            <item_id>123</item_id>
            <article_id>A01</article_id>
            <order_id>12345678</order_id>
            <product_code>TAX_CLOUD</product_code>
            <payee_register_no>QWERTY0000001</payee_register_no>
            <flow_id>123456789</flow_id>
            <register_type>new</register_type>
            <serv_end_time>2019-10-01 00:00:00</serv_end_time>
            <serv_start_time>2019-10-01 00:00:00</serv_start_time>
            <article_name>发票基础服务</article_name>
        </result>
    </result>
</alibaba_einvoice_device_order_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

返回
顶部