支援非稅收入類票據:非稅收入通用票據、非稅收入一般繳款書真偽查驗,結算類票據:資金往來結算票據真偽查驗,其他財政票據:公益事業捐贈票據、醫療收費票據、社會團體會費票據真偽查驗,上傳票據查驗要素資訊,即可返回票據相關資訊,有助於財務管理智慧化
Java財政票據查驗介面程式碼示例:
package com.test;
import okhttp3.;
import org.json.JSONObject;
import java.io.;
/**
- 需要新增依賴
-
com.squareup.okhttp3
-
okhttp
-
4.12.0
*/
class Sample {
static final OkHttpClient HTTP_CLIENT = new OkHttpClient().newBuilder().build();
public static void main(String []args) throws IOException{
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("key","M***********g")
.addFormDataPart("secret","3***********6")
.addFormDataPart("typeId","3017")
.addFormDataPart("invoiceCode","********")
.addFormDataPart("invoiceNumber","*******")
.addFormDataPart("billingDate","********")
.addFormDataPart("checkCode","*******")
.addFormDataPart("amountTax","*******")
.build();
Request request = new Request.Builder()
.url("https://netocr.com/verapi/v2/verFinancial.do")
.method("POST", body)
.build();
Response response = HTTP_CLIENT.newCall(request).execute();
System.out.println(response.body().string());
}
}
適用於企事業單位、醫療機構、金融機構等多種需要對財政類票據進行真偽查驗的場景
企事業單位:可透過財政票據查驗介面助力醫保報銷平臺快速核驗醫療票據的真偽,確保報銷依據的真實性和合法性