Node.js数电票、全电票查验接口示例、发票查验、票据OCR API
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://netocr.com/verapi/v2/verInvoice.do',
'headers': {
},
formData: {
'key': 'M***********g',
'secret': '3***********6',
'typeId': '3007',
'invoiceCode': '***********',
'invoiceNumber': '************',
'billingDate': '**************',
'totalAmount': '************',
'checkCode': '***********',
'salesTaxNo': '***********',
'orderNo': '***********'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});