调用示例、python语言调用翔云发票查验接口、发票OCR接口
import requests
import json
def main():
url = "https://netocr.com/verapi/v2/verInvoice.do"
payload = {
'key': 'M***********g',
'secret': '3***********6',
'typeId': '3007',
'invoiceCode': '*********',
'invoiceNumber': '*********',
'billingDate': '********',
'totalAmount': '**************',
'checkCode': '*******',
'salesTaxNo': '******',
'orderNo': '******'
}
files=[
]
headers = {}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
if __name__ == '__main__':
main()