文档中心 > API类目 > 以旧换新-国补

alibaba.ofn.gov.subsidy.seller.invoice.info (国补商家开票数据披露)

国补商家开票数据披露

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gov_subsidy_seller_invoice_info_top_query_request GovSubsidySellerInvoiceInfoTopQueryRequest 可选 入参数
  • └ order_id
  • Number
  • 必须
  • 0
  • 订单号

响应参数

名称 类型 示例值 描述
result OfnResult 返回
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • xx
  • 错误信息
  • └ error_code
  • String
  • xx
  • 错误码
  • result_data
  • GovSubsidySellerInvoiceInfoDTO []
  • xx
  • 开票信息
  • └ mord_id
  • Number
  • 0
  • 主订单ID
  • └ order_id
  • Number
  • 0
  • 子订单ID
  • └ alipay_trade_no
  • String
  • xx
  • 支付宝交易单号
  • └ gov_subsidy_amount
  • Number
  • 4000
  • 政府补贴金额
  • └ buyer_actual_amount
  • Number
  • 4000
  • 消费者实际支付金额
  • └ buyer_name
  • String
  • xxx
  • 消费者姓名
  • └ buyer_id_number
  • String
  • 350******
  • 消费者身份证号
  • └ buyer_phone
  • String
  • 186******
  • 消费者手机号
  • └ location
  • Number
  • 610104
  • 区id
  • └ address_province
  • String
  • 浙江
  • 地址省
  • └ address_city
  • String
  • 杭州
  • 地址市
  • └ address_district
  • String
  • 余杭
  • 地址区
  • └ address_town
  • String
  • 五常街道
  • 地址镇
  • └ address_detail
  • String
  • 浙江杭州*******
  • 地址详情
  • └ mail_no
  • String
  • 0
  • 运单号
  • └ mail_company_name
  • String
  • xxx
  • 物流公司名称
  • └ consign_time
  • String
  • 2024-11-06 12:00:00
  • 发货时间
  • └ collection_time
  • String
  • 2024-11-06 12:00:00
  • 揽收时间
  • └ sign_time
  • String
  • 2024-11-06 12:00:00
  • 签收时间
  • └ province_id
  • Number
  • 610000
  • 省id
  • └ city_id
  • Number
  • 610100
  • 市id
  • └ refund_real_amount
  • Number
  • 4000
  • 消费者退款金额

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaOfnGovSubsidySellerInvoiceInfoRequest req = new AlibabaOfnGovSubsidySellerInvoiceInfoRequest();
AlibabaOfnGovSubsidySellerInvoiceInfoRequest.GovSubsidySellerInvoiceInfoTopQueryRequest obj1 = new AlibabaOfnGovSubsidySellerInvoiceInfoRequest.GovSubsidySellerInvoiceInfoTopQueryRequest();
obj1.setOrderId(0L);
req.setGovSubsidySellerInvoiceInfoTopQueryRequest(obj1);
AlibabaOfnGovSubsidySellerInvoiceInfoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ofn_gov_subsidy_seller_invoice_info_response>
    <result>
        <success>true</success>
        <message>xx</message>
        <error_code>xx</error_code>
        <result_data>
            <gov_subsidy_seller_invoice_info_d_t_o>
                <mord_id>0</mord_id>
                <order_id>0</order_id>
                <alipay_trade_no>xx</alipay_trade_no>
                <gov_subsidy_amount>4000</gov_subsidy_amount>
                <buyer_actual_amount>4000</buyer_actual_amount>
                <buyer_name>xxx</buyer_name>
                <buyer_id_number>350******</buyer_id_number>
                <buyer_phone>186******</buyer_phone>
                <location>610104</location>
                <address_province>浙江</address_province>
                <address_city>杭州</address_city>
                <address_district>余杭</address_district>
                <address_town>五常街道</address_town>
                <address_detail>浙江杭州*******</address_detail>
                <mail_no>0</mail_no>
                <mail_company_name>xxx</mail_company_name>
                <consign_time>2024-11-06 12:00:00</consign_time>
                <collection_time>2024-11-06 12:00:00</collection_time>
                <sign_time>2024-11-06 12:00:00</sign_time>
                <province_id>610000</province_id>
                <city_id>610100</city_id>
                <refund_real_amount>4000</refund_real_amount>
            </gov_subsidy_seller_invoice_info_d_t_o>
        </result_data>
    </result>
</alibaba_ofn_gov_subsidy_seller_invoice_info_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

返回
顶部