Invoices OCR API

Transform invoices into actionable data: Extract line-item details to trusted JSON key/value pairs in any language or currency. Supercharge your accounts payable and procure-to-pay processes with Veryfi's AI-powered automation.

Get Started for Free Free Demo
Invoices OCR API

Unlock a Wealth of Data in Invoices

What is Invoices OCR API?
Invoices OCR API is an API (Application Programming Interface) that turns your invoice into data in seconds using AI. You can send invoices to the API in any format (pdf, image, etc) and receive the response in a structured (key/value) JSON irrespective of invoice structure, geography or language. Veryfi’s AI runs proprietary foundational models trained on hundreds of millions of invoices so it can understand all possible data (see supported fields) on your invoice and even those pesky taxes and handwriting in various geographies.

What is Invoices OCR?
Invoices OCR (optical character recognition or optical character reader) is the electronic or mechanical conversion of invoice images, invoice paper, and handwritten or printed text into machine-encoded text using software. This work traditionally required manual human labor but that was inefficient and ripe for mistakes. Veryfi Invoices OCR API will also return the OCR text in every JSON response for you to further customize the application of this data in your application for various purposes like automating bill pay with level 3 data, 2/3 way matching in AP, fraud detection, inventory management and more.

Request: Invoice Data Extraction
import requests
url = "https://api.veryfi.com/api/v8/partner/documents"
headers = {
'CLIENT-ID': '<API_KEY_VALUE>',
'AUTHORIZATION': '<API_KEY_VALUE>'
}
payload = {'file_url': 'https://cdn…'}
response = requests.post(url, headers=headers, data=payload)
print(response.json())
Response: Structured JSON
{
“vendor”: {
“name”: “Rumpke Waste & Recycling”,
“address”: “3800 Struble Road, Cincinnati, Ohio 45251, United States”,
“phone_number”: “(800) 828-8171”
},
“bill_to”: {
“name”: “JOHN DOE”,
“address”: “1234 CUSTOMER AVE\nCLEVELAND OH 44114”
},
“invoice_number”: “0998811”,
“date”: “2023-03-28 00:00:00”,
“due_date”: “2023-04-28”,
“line_items”: [
{
“description”: “2YD FL/MONTH-MSW”,
“quantity”: 1,
“price”: 116.32,
“total”: 116.32
}
],
“subtotal”: 306.27,
“tax”: 23.47,
“total”: 329.74,
“currency_code”: “USD”
}
Support for over 150 fields 🤟

Invoices OCR API

Veryfi’s Invoices OCR API is easy and fast to implement with just a few lines of code (as shown).

Invoices OCR API comes bundled with:
✓ Day-1 Ready Pre-Trained Invoices AI model,
✓ Free 🧰 SDKs to help you launch faster in your preferred programming language and
✓ Easy to use no-code API 🗔 Portal where you can store and edit your documents, fine-tune the ML model and more.

Need help? email support@veryfi.com

Supported Fields

  • Vendor/Merchant
    • Name and Raw Name
    • Address and Raw Address
    • Logo
    • Phone
    • Fax
    • Email
    • Latitude
    • Longitude
    • Website Url
    • Logo
    • Vendor Category
    • Vendor Account currency
    • VAT Number (Value-Added Tax)
    • ABN Number (Australian Business Number)
    • Vendor Registration Number
    • Store Number Name (enriched)
    • Learn more …
  • Dates
    • Invoice Date
    • Due Date
    • Order Date
    • Ship Date
    • Delivery Date
    • Start Date (or arrival in hotel folio)
    • End Date (or departure in hotel folio)
    • Line Item Start Date (service provided dates)
    • Line Item End Date (service provided dates)
    • Learn more …
  • Line-Items
    • Date
    • SKU (Stock keeping unit)
    • UPC (Universal Product Code)
    • HSN (Harmonized System Code/Number)
    • Category
    • Section
    • Description
    • Quantity
    • Reference
    • Unit of Measure
    • Price
    • Tax
    • Tax Rate
    • Discount
    • Discount Rate
    • Total
    • Type (food, product, alcohol,..)
    • Weight (eg. kg/lb)
    • Start/End Date
    • Country of Origin
    • Lot number
    • Learn more …
  • Financials
    • Subtotal
    • Discount
    • Cashback
    • Shipping cost
    • Tax (VAT, GST)
    • Tax Lines
    • Tip
    • Total
    • Rounding
    • Currency Code
    • Currency Exchange Rate
    • Insurance
    • Incoterms
    • Balance (current / previous)
    • Learn more …
  • Tax Lines Breakdown
    • Tax name
    • Tax rate %
    • Tax total
    • Tax base
  • Meta
    • Document Type (receipt/check/purchase order/invoice etc)
    • Document Title
    • Category
    • Tag
    • OCR Text
  • Ship To
    • Name
    • Address
    • Tracking Number
    • Ship Date
    • Delivery Date
    • Order Date
    • Incoterms
    • Insurance
    • Weight + List
  • Bank Information
    • Bank name
    • Bank number
    • Routing number
    • Account number
    • IBAN (International Bank Account Number)
    • SWIFT / BIC
    • Learn more …
  • Barcodes
  • Payment Method
    • Card Type (eg. visa, mastercard etc)
    • Card Number
    • Terms
  • Identifiers
    • Account Number
    • Invoice Number
    • PO (Purchase Order) Number
    • Reference Number
  • Bill To
    • Name
    • Address
    • Phone Number
    • Email
    • VAT Number
    • ABN Number
    • Bill to ABN Number
    • Payment Terms
    • Business Registration Number

Process your invoices in less time than it takes to read this.

See for yourself.

Additional Superpowers of Invoices OCR API

  • Line Items (Level 3 Data)

    Harness the power of line-level data from your invoices to automate 2-way and 3-way matching in your AP / bill pay solutions and automate inventory management with precision.

  • Categorization

    Effortlessly categorize entire invoice and individual line items with our intelligent system. Choose between using your existing chart of accounts or leveraging Veryfi AI’s automatic categorization.

  • Duplicate Detection

    Eliminate manual review and effortlessly identify duplicate invoices in real-time. This powerful feature helps you prevent fraudulent bill payments, catch doubling up on employee reimbursements and reduce financial risks.

  • Auto Rotate Receipts

    Our API automatically corrects upside-down invoice submissions, eliminating the need for resubmission requests and streamlining your workflow. See demo video.