API接口目录

政企业务

政企商品API
政企价格API
政企库存API
政企订单API
政企物流API
政企发票API
政企售后API
政企其他API
政企易企购API
政企抽检API
异常码自查工具
suning.govbus.eleinvoice.get 电子发票查询接口
¥免费

通过此接口能获取查看电子发票地址。

注意,按订单开票时,一张发票对应多个订单行,故出参解析invoiceItems下的orderItemId和skuId;按订单行开票时,一张发票对应一个订单行,故出参解eleInvoices下的orderItemId和skuId。

公共参数
请求参数
名称 类型 是否必须 示例值 描述
orderIdStringY100001444102政企订单号
orderItemsStringN
orderItemIdStringN10000144410201订单行号
skuIdStringN121345089商品编码
响应参数
名称 类型 示例值 描述
orderIdString344222434政企订单号
eleInvoicesString
skuIdString74392879商品编码,按订单行开电子发票时解析此字段,按订单开票此字段不返值。
invoiceRedUrlStringhttps://einvoicelink.51fapiao.cn/FPF/actions/ce3e90b1c4e192ca红票Url(退货后会冲红)
invoiceBlueUrlStringhttps://einvoicelink.51fapiao.cn/FPF/actions/e50a9eb820192ca蓝票Url
orderItemIdString10000144410201订单行号,按订单行开电子发票时解析此字段,按订单开票此字段不返值。
invoiceIdString94781825发票号码
invoiceCodeString4403091170发票代码
invoiceDateString2020-05-25发票日期
invoiceTypeString1发票类型
invoiceNakedAmountString19.25不含税金额
invoiceAmountString22.5含税金额
originalInvoiceIdString92861964原发票号码
originalInvoiceCodeString159039286196原发票代码
invoiceItemsString
orderItemIdString10000144410201订单行号,按订单开票时解析此字段,按订单行(子订单)开票此字段不返值。
skuIdString000000000121347584商品编码,按订单开票时解析此字段,按订单行(子订单)开票此字段不返值。
wonDigitalTicketStringY是否数电发票(Y/N)
xmlUrlStringxml数电发票xml链接
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                <sn_request>
  <sn_body>
    <getEleinvoice>
      <orderId>100001444102</orderId>
      <orderItems>
        <orderItemId>10000144410201</orderItemId>
        <skuId>121345089</skuId>
      </orderItems>
    </getEleinvoice>
  </sn_body>
</sn_request>

                                
                                {
  "sn_request": {
    "sn_body": {
      "getEleinvoice": {
        "orderId": "100001444102",
        "orderItems": [
          {
            "orderItemId": "10000144410201",
            "skuId": "121345089"
          }
        ]
      }
    }
  }
}
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              <sn_responseContent>
  <sn_body>
    <getEleinvoice>
      <orderId>344222434</orderId>
      <eleInvoices>
        <wonDigitalTicket>Y</wonDigitalTicket>
        <orderItemId>10000144410201</orderItemId>
        <originalInvoiceId>92861964</originalInvoiceId>
        <invoiceAmount>22.5</invoiceAmount>
        <invoiceBlueUrl>https://einvoicelink.51fapiao.cn/FPF/actions/e50a9eb820192ca</invoiceBlueUrl>
        <invoiceDate>2020-05-25</invoiceDate>
        <invoiceCode>4403091170</invoiceCode>
        <invoiceNakedAmount>19.25</invoiceNakedAmount>
        <xmlUrl>xml</xmlUrl>
        <invoiceRedUrl>https://einvoicelink.51fapiao.cn/FPF/actions/ce3e90b1c4e192ca</invoiceRedUrl>
        <invoiceItems>
          <orderItemId>10000144410201</orderItemId>
          <skuId>000000000121347584</skuId>
        </invoiceItems>
        <invoiceType>1</invoiceType>
        <invoiceId>94781825</invoiceId>
        <skuId>74392879</skuId>
        <originalInvoiceCode>159039286196</originalInvoiceCode>
      </eleInvoices>
    </getEleinvoice>
  </sn_body>
</sn_responseContent>

                              
                              {
  "sn_responseContent": {
    "sn_body": {
      "getEleinvoice": {
        "orderId": "344222434",
        "eleInvoices": [
          {
            "wonDigitalTicket": "Y",
            "orderItemId": "10000144410201",
            "originalInvoiceId": "92861964",
            "invoiceAmount": "22.5",
            "invoiceBlueUrl": "https://einvoicelink.51fapiao.cn/FPF/actions/e50a9eb820192ca",
            "invoiceDate": "2020-05-25",
            "invoiceCode": "4403091170",
            "invoiceNakedAmount": "19.25",
            "xmlUrl": "xml",
            "invoiceRedUrl": "https://einvoicelink.51fapiao.cn/FPF/actions/ce3e90b1c4e192ca",
            "invoiceItems": [
              {
                "orderItemId": "10000144410201",
                "skuId": "000000000121347584"
              }
            ],
            "invoiceType": "1",
            "invoiceId": "94781825",
            "skuId": "74392879",
            "originalInvoiceCode": "159039286196"
          }
        ]
      }
    }
  }
}
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.govbus.geteleinvoice.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.govbus.geteleinvoice.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.gcapi 服务不可用 请联系苏宁技术人员
biz.govbus.geteleinvoice.invalid-biz:100 返回错误码
biz.govbus.geteleinvoice.invalid-biz:101 输入报文格式错误 检查输入报文
biz.govbus.geteleinvoice.invalid-biz:102 入参校验失败 检查输入参数
biz.govbus.geteleinvoice.invalid-biz:103 订单信息不存在
biz.govbus.geteleinvoice.invalid-biz:104 订单行信息不存在
biz.govbus.geteleinvoice.invalid-biz:105 调用电子发票查询接口无数据
公共异常码
API工具
FAQ