随着数电票的广泛普及,数电票真伪查验又成为了企业的一大难题。与传统增值税纸质发票相同,可通过国家税务总局全国增值税发票查验平台进行真伪查询。但对于企业而言,需要借助发票查验接口来实现海量发票的批量查验,有助于企业防范财务风险,降低人工成本,避免因接收虚假发票而遭受经济损失。
翔云发票查验接口,实时联网查验发票的真伪,支持数电票、增值税专用发票、增值税普通发票等增值税发票管理系统开具的发票种类,有助于企业防范财务风险和降低税务风险,为企业实现发票信息共享提供技术支持。
翔云发票查验接口PHP代码示例:
clike
<?php
class Sample {
public function run() {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://netocr.com/verapi/v2/verInvoice.do',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('key' => 'M***********g','secret' => '3***********6','typeId' => '3007','invoiceCode' => '*******','invoiceNumber' => '**********','billingDate' => '********','totalAmount' => '*************','checkCode' => '*********','salesTaxNo' => '*********','orderNo' => '*********'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
}
}
$rtn = (new Sample())->run();
print_r($rtn);