Skip to main content
POST
cURL

财政电子票据验真错误码

响应中 data.result.code 的含义如下:

Headers

x-ti-app-id
string
required
x-ti-secret-code
string
required

Body

application/json
bill_amount
string

票据金额

bill_code
string

票据代码

bill_date
string

开票日期(格式: yyyyMMdd,如 "20240226")

bill_no
string

票据号码

check_code
string

校验码

id_card_last6
string

身份证后六位(明细版中用于路由判断:传了则走地方版,部分地区票据必填)

mode
string

查验模式:

  • "national": 全国版,走财政部全国网站查验,速度快,部分票据可能无明细,仅支持开票时间在一年内的电子票据
  • "detail": 明细版,根据是否传入 id_card_last6 + payer_name 自动判断走地方版或全国明细版 默认 "national"
payer_name
string

交款人(明细版中用于路由判断:传了则走地方版,部分票据必填)

Response

200 - application/json

OK

code
integer

业务状态码

Example:

200

data
object
message
string

状态说明

Example:

"OK"