发票解析器
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/ocr/invoice_parser
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/ocr/invoice_parser' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false,
"convert_to_pdf": false
}'
响应示例响应示例
200 - 成功示例
{
"affinda": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "201 Stan Fey Dr Upper Marlboro , MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": "201 Stan Fey Dr Upper Marlboro , MD 20774",
"customer_shipping_address": "Upper Marlboro",
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG Engineering, Inc.",
"merchant_address": "344 Main Street Suite 200 Gaithersburg, MD 20878",
"merchant_phone": "301.548.0055",
"merchant_email": "sng.engineering@erols.com",
"merchant_fax": "301.548.1840",
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014- 03",
"invoice_total": null,
"invoice_subtotal": null,
"gratuity": null,
"amount_due": 750,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": "January20, 2003",
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": null,
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house construction, Garage drive way & legal support to Attorney to 1/19/2003",
"quantity": 1,
"amount": null,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"amazon": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "Damita J Goldsmith\n201 Stan Fey Dr\nUpper Marlboro MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": null,
"customer_shipping_address": null,
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG",
"merchant_address": "SNG Engineering, Inc.\nConsulting Engineers\n344 Main Street Suite 200\nGaithersburg, MD 20878",
"merchant_phone": "301.548.0055",
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": 750,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": "on receipt of service",
"purchase_order": null,
"date": "January20, 2003",
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": "",
"locale": {
"currency": null,
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house\nconstruction Garage drive way & legal support to Attorney to\n1/19/2003",
"quantity": 1,
"amount": 75000,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"base64": {
"extracted_data": [
{
"customer_information": {
"customer_name": null,
"customer_address": null,
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": null,
"customer_shipping_address": "Same",
"customer_service_address": null,
"customer_remittance_address": "Same",
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SIG SNG Engineering, Inc",
"merchant_address": null,
"merchant_phone": null,
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": null,
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": 750,
"previous_unpaid_balance": null,
"discount": 0,
"taxes": [
{
"value": 0,
"rate": null
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": "1 Field inspection of",
"date": "January20 2003",
"due_date": " receipt of invoice by the owner/contractor.",
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": "USD",
"language": null
},
"bank_informations": {
"account_number": null,
"iban": "",
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house construction, Garage drive way & legal support to Attorney to 1/19/2003",
"quantity": 1,
"amount": 750,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"veryfi": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "201 Stan Fey Dr\nUpper Marlboro, MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": "201 Stan Fey Dr\nUpper Marlboro, MD 20774",
"customer_shipping_address": "Same201 Stan Fey Drive\nUpper Marlboro",
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG Engineering",
"merchant_address": "344 Main St, Gaithersburg, MD, 20878, US",
"merchant_phone": "301-548-0055",
"merchant_email": null,
"merchant_fax": "301-548-1840",
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": null,
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": "USD",
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on\n1/19/2003\ndeficiencies in house\nconstruction, Garage drive way & legal support to Attorney to\n1/19/2003",
"quantity": 1,
"amount": 750,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"dataleon": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita Goldsmith",
"customer_address": null,
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": null,
"customer_shipping_address": null,
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SAG",
"merchant_address": "344 Main Street Suite 200 Gaithersburg , MD 20878 Phone : 301.548.0055 Fax : 301.548.1840",
"merchant_phone": null,
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": "DATE : January20 , 2003",
"due_date": "1/19/2003",
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": null,
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": []
}
]
},
"mindee": {
"extracted_data": [
{
"customer_information": {
"customer_name": "DAMITA J GOLDSMITH.",
"customer_address": "201 Stan Fey Dr Upper Marlboro MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": "201 Stan Fey Dr Upper Marlboro MD 20774",
"customer_billing_address": null,
"customer_shipping_address": null,
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG ENGINEERING, INC.",
"merchant_address": "344 Main Street Suite 200 Gaithersburg.MD 20878",
"merchant_phone": null,
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": "2013-01-20",
"due_date": "2013-01-20",
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": "USD",
"language": "en"
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": []
}
]
},
"microsoft": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "201 Stan Fey Dr\nUpper Marlboro , MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": "201 Stan Fey Dr\nUpper Marlboro , MD 20774",
"customer_billing_address": null,
"customer_shipping_address": "201 Stan Fey Drive\nUpper Marlboro",
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG Engineering, Inc.\nSNG",
"merchant_address": "344 Main Street Suite 200\nGaithersburg, MD 20878",
"merchant_phone": null,
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014- 03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": "on receipt of service",
"purchase_order": null,
"date": "2003-01-20",
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": null,
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house\nconstruction, Garage drive way & legal support to Attorney to\n1/19/2003",
"quantity": 1,
"amount": 750,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"klippa": {
"extracted_data": [
{
"customer_information": {
"customer_name": "",
"customer_address": "",
"customer_email": "",
"customer_id": "",
"customer_tax_id": "",
"customer_mailing_address": null,
"customer_billing_address": "",
"customer_shipping_address": null,
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "Sng Engineering",
"merchant_address": "",
"merchant_phone": "3015480055",
"merchant_email": "",
"merchant_fax": null,
"merchant_website": "",
"merchant_tax_id": "",
"merchant_siret": "",
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 75000,
"invoice_subtotal": null,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": 0,
"rate": 0
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": null,
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": "USD",
"language": "EN"
},
"bank_informations": {
"account_number": "",
"iban": "",
"bsb": null,
"sort_code": "",
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "",
"quantity": 1,
"amount": 75000,
"unit_price": 75000,
"discount": 0,
"product_code": "",
"date_item": null,
"tax_item": null,
"tax_rate": 0
}
]
}
]
},
"google": {
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "201 Stan Fey Dr\nUpper Marlboro, MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": null,
"customer_billing_address": null,
"customer_shipping_address": "201 Stan Fey Drive\nUpper Marlboro",
"customer_service_address": null,
"customer_remittance_address": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG Engineering Inc",
"merchant_address": "344 Main St #200 Gaithersburg, MD 20878 USA",
"merchant_phone": "+1 301 548 0055",
"merchant_email": null,
"merchant_fax": null,
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014-03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": null,
"previous_unpaid_balance": null,
"discount": null,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": null,
"purchase_order": null,
"date": "2003-01-20",
"due_date": null,
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": null,
"language": null
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house\nconstruction, Garage drive way & legal support to Attorney to",
"quantity": 1,
"amount": 750,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
},
"eden-ai": {
"status": "success",
"extracted_data": [
{
"customer_information": {
"customer_name": "Damita J Goldsmith",
"customer_address": "201 Stan Fey Dr Upper Marlboro , MD 20774",
"customer_email": null,
"customer_id": null,
"customer_tax_id": null,
"customer_mailing_address": "201 Stan Fey Dr Upper Marlboro MD 20774",
"customer_billing_address": "201 Stan Fey Dr Upper Marlboro , MD 20774",
"customer_shipping_address": "Upper Marlboro",
"customer_service_address": null,
"customer_remittance_address": "Same",
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null,
"siret_number": null,
"siren_number": null
},
"merchant_information": {
"merchant_name": "SNG Engineering, Inc.",
"merchant_address": "344 Main Street Suite 200 Gaithersburg, MD 20878",
"merchant_phone": "301.548.0055",
"merchant_email": "sng.engineering@erols.com",
"merchant_fax": "301.548.1840",
"merchant_website": null,
"merchant_tax_id": null,
"merchant_siret": null,
"merchant_siren": null,
"abn_number": null,
"gst_number": null,
"pan_number": null,
"vat_number": null
},
"invoice_number": "014- 03",
"invoice_total": 750,
"invoice_subtotal": 750,
"gratuity": null,
"amount_due": 750,
"previous_unpaid_balance": null,
"discount": 0,
"taxes": [
{
"value": null,
"rate": null
}
],
"service_charge": null,
"payment_term": "on receipt of service",
"purchase_order": "1 Field inspection of",
"date": "January20, 2003",
"due_date": " receipt of invoice by the owner/contractor.",
"service_date": null,
"service_due_date": null,
"po_number": null,
"locale": {
"currency": "USD",
"language": "en"
},
"bank_informations": {
"account_number": null,
"iban": null,
"bsb": null,
"sort_code": null,
"vat_number": null,
"rooting_number": null,
"swift": null
},
"item_lines": [
{
"description": "Field inspection of construction on 1/19/2003 deficiencies in house construction, Garage drive way & legal support to Attorney to 1/19/2003",
"quantity": 1,
"amount": null,
"unit_price": 750,
"discount": null,
"product_code": null,
"date_item": null,
"tax_item": null,
"tax_rate": null
}
]
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 07:13:32