For developers building AP and bookkeeping tools

Which Invoice Parsing API Returns Every Line Item?

PayablesAgent is an invoice parsing API for developers and finance teams. Three REST calls turn a PDF or photo of a supplier invoice into JSON with vendor, invoice number, dates, total and a table of every line item. API access is on the Pro plan from $499 a month, and the same extraction without the API starts at $49 a month on Starter.

Upload an invoice on the right to see the exact fields the API would return.

Upload a real invoice and inspect the parsed data

PDF, JPG, PNG, BMP, HEIC, TIFF

Upload your invoices and receipts

The whole integration is three calls

Upload and extraction are separate calls, so your application never holds a connection open while the model reads a long invoice. You keep the hash from the extract call and fetch the result when you are ready. Every request carries a bearer token generated in your account.

StepEndpointWhat you sendWhat you get back
1. UploadPOST /api/documents/uploadThe PDF or image as multipart form dataA file ID
2. ExtractPOST /api/documents/extractThe file ID, optionally a document type IDAn extraction hash
3. FetchGET /api/documents/extraction/{hash}The hash in the pathFields and line item rows as JSON

Endpoints as documented on the API reference. Examples there are in cURL, PHP, JavaScript and Python.

What the parsed invoice looks like

A header field comes back as a name and a value. The line items come back as one table field whose rows are arrays of cells, so a 12-line invoice is 12 rows you can loop over, not one text blob to split with a regex. Below is the shape of a small result with two lines.

{
  "success": true,
  "data": {
    "extraction_hash": "abc123-def456-ghi789-jkl012",
    "fields": [
      { "content": "Vendor Name", "value": "Acme Corp", "is_table": false, "page": 1 },
      { "content": "Invoice Number", "value": "INV-2024-0042", "is_table": false, "page": 1 },
      { "content": "Total", "value": "$1,250.00", "is_table": false, "page": 1 },
      { "content": "Line Items", "is_table": true, "page": 1,
        "rows": [
          { "cells": [ {"value": "Widget A"}, {"value": "10"}, {"value": "$50.00"}, {"value": "$500.00"} ] },
          { "cells": [ {"value": "Service B"}, {"value": "5"}, {"value": "$150.00"}, {"value": "$750.00"} ] }
        ] }
    ]
  }
}

Check it against the total: 10 x $50 is $500, 5 x $150 is $750, and the lines add to $1,250.00, the same figure as the Total field. That is the test worth running on your own invoices before you commit. Upload five of your worst ones above and compare the line rows with the paper.

API or web app, and what each costs

The extraction is the same whether you call it from code or upload in the browser. What changes is how the data leaves.

PlanPriceOutputBest for
Starter$49 a month, 2,500 pagesExcel and CSVA clerk or bookkeeper who wants the data in a spreadsheet
Plus$149 a monthExcel, CSV and a QuickBooks Online fileA practice importing bills into QuickBooks Online
ProFrom $499 a month, $2,988 billed yearlyAll of the above plus the REST API with JSONA developer putting invoice parsing inside a product or internal tool

Plan prices as listed on our pricing page. Each page of a PDF counts as one page against the monthly quota.

Who this API is for and who it is not for

Who it is for

Developers and technical bookkeepers who need supplier invoices as rows and fields inside their own system, for example to feed an ERP import, a reconciliation script or an AP dashboard. If your team mostly wants a finished interface, the invoice parsing software page covers the web app, and receipt OCR API covers receipts.

Who it is not for

Teams looking for a hosted AP suite with approvals and bill payments, or for push notifications to their server when a result is ready. Results are fetched by hash when you ask. Compare suites on the AP automation pricing comparison.

Output feeds the usual import routes: see how it lands in QuickBooks, Xero, NetSuite or Sage. For the REST conventions behind bearer tokens, the OAuth 2.0 bearer token standard (RFC 6750) is the reference.

Invoice parsing API questions

Which invoice parsing API returns line items as structured data?

PayablesAgent returns each invoice as JSON with header fields and a table field holding every line item row as cells. You upload the file, start extraction, then fetch the result by its hash. API access is on the Pro plan, which starts at $499 a month.

How does the PayablesAgent invoice parsing API work?

Three REST calls with a bearer token. POST /api/documents/upload sends the PDF or image and returns a file ID. POST /api/documents/extract starts extraction and returns a hash. GET /api/documents/extraction/{hash} returns the fields and line item rows.

How much does an invoice parsing API cost?

API access comes with the Pro plan, from $499 a month billed monthly or $2,988 a year for 35,000 pages on Base AI. If you only need Excel, CSV or QuickBooks Online files and no API, Starter is $49 a month for 2,500 pages.

Do I need the API to get invoice data out of PayablesAgent?

No. Every plan exports Excel and CSV, and Plus at $149 a month adds a QuickBooks Online file. The API is for developers who want the same extraction inside their own application, with results returned as JSON.

Stop splitting invoice text with regex

Get fields and line item rows as structured data. Start on Starter at $49 a month or choose Pro for the API.