Free forever · 200 OCR + 50 extraction pages/mo

The invoice OCR API for structured accounts payable.

Extract supplier details, invoice numbers, due dates, tax, totals, and line items from PDFs, scans, and photos. Send a schema, get typed JSON back.

Get started today for free. No credit card required.

Before and after

See an invoice become accounts payable JSON.

Extract the fields your workflow needs from the uploaded invoice, including supplier details, billing codes, due dates, totals, and line items.

Source document
A scanned A4 medical invoice from Riverside Medical Centre
Extracted output
invoice.json
json
{
  "data": {
    "supplier_name": "RIVERSIDE MEDICAL CENTRE",
    "invoice_number": "INV-20416",
    "date": "02/04/2026",
    "patient": "M. Okafor",
    "line_items": [
      {
        "service": "Office Visit",
        "code": "99213",
        "fee": "95.00"
      },
      {
        "service": "ECG 12-lead",
        "code": "93000",
        "fee": "45.00"
      },
      {
        "service": "Venepuncture",
        "code": "36415",
        "fee": "12.00"
      },
      {
        "service": "Lipid Panel",
        "code": "80061",
        "fee": "38.00"
      }
    ],
    "total": "GBP 190.00"
  }
}
Schema-driven extraction

Ask for the invoice fields your app needs.

OCRWell reads the invoice and returns JSON shaped to your schema. Amounts stay in the format visible on the document, with nested arrays for line items and the same endpoint for every supplier layout.

submit-invoice.sh
bash
# Extract invoice fields and line items
$ curl https://api.ocrwell.com/v1/documents \
    -H "X-API-Key: $OCRWELL_KEY" \
    -d '{
      "upload_id":"upl_01H7",
      "mode":"structured",
      "schema":{
        "supplier_name":"string",
        "invoice_number":"string",
        "date":"string",
        "patient":"string",
        "total":"string",
        "line_items":[
          {
            "service":"string",
            "code":"string",
            "fee":"string"
          }
        ]
      }
    }'
invoice-result.json
json
{
  "job": {
    "id": "019539a6-6c3d-7e5f",
    "status": "completed",
    "mode": "structured"
  },
  "result": {
    "data": {
      "supplier_name": "Harbour Office Supplies",
      "invoice_number": "INV-4821",
      "date": "21/05/2026",
      "patient": "",
      "total": "AUD 1,540.00",
      "line_items": [
        {
          "service": "Archive boxes, 50 pack",
          "code": "",
          "fee": "480.00"
        },
        {
          "service": "Document scanner service",
          "code": "",
          "fee": "920.00"
        }
      ]
    }
  }
}
Invoice workflows

Where teams use the invoice OCR API.

AP-ready JSON

Accounts payable intake

Extract supplier, invoice number, due date, tax, totals, and line items before routing the invoice into your approval or payment workflow.

Nested arrays

Line items without templates

Use one schema across supplier layouts. OCRWell reads the invoice structure and returns repeating rows without per-vendor coordinates in your code.

PDF · JPG · PNG

Scans, PDFs, and photos

Process digital PDFs, scanned invoices, and phone photos through the same upload flow. Each job returns the same response shape.

FAQ

Invoice OCR questions.

Can the invoice OCR API return line items?

Yes. Put a single example object inside an array in your schema and OCRWell returns a line_items array with one object per detected row.

Does it need one template per supplier?

No. The schema describes the fields you want back, not fixed page coordinates. Use the same schema across supplier invoice layouts.

How should currency amounts be represented?

Ask for amounts as strings when you want OCR output to match the visible document. Convert them to minor units later inside your own accounting or payment system.

Pricing

Start free. Pay only when you scale.

Free forever
200 OCR + 50 extraction pages every month
  • No credit card required.
  • Hard cap, no overage charges.
  • Paid plans from $20/mo when you grow.

Extract invoice data today.

Generate an API key, upload your first invoice, and get structured JSON back in seconds. Free forever tier covers 200 OCR pages per month.

Get your API key today No credit card required. 200 OCR + 50 extraction pages / month, free forever.