Convert endpoint
POST https://extractivio.com/api/v1/convert
Converts one PDF statement per request. The call is synchronous: the response contains the transactions. Typical statements take one to three seconds; the server gives up after 60 seconds.
Request body
Send the PDF in one of four ways.
| Content-Type | Body | When to use |
|---|---|---|
multipart/form-data |
A form field named file |
You have the file on disk. |
application/pdf |
The raw PDF bytes | You have the bytes in memory. |
application/json |
{"file_url": "https://..."} |
The PDF is online. |
application/json |
{"file_base64": "..."} |
No file system and no URL (for example inside a sandboxed agent). |
JSON bodies may also include "filename", used as the name of stored results and downloaded files.
Rules for file_url:
httpsonly, default port only, no username or password in the URL.- The host must resolve to a public IP address. Private, loopback, link-local and cloud metadata addresses are refused.
- Up to 3 redirects are followed, each one checked the same way.
- The download must finish within 15 seconds and be 15 MB or smaller.
- The server sends no cookies or credentials. Links that need a login will fail with
download_failed. Use a pre-signed or public link.
Query parameters
| Name | Values | Default | Meaning |
|---|---|---|---|
format |
json, csv, xero, qbo, ofx, qfx, qif |
json |
Response format. Anything but json returns the file content itself. See Output formats. |
date_order |
dmy, mdy |
auto | How to read ambiguous numeric dates such as 03/04. See below. |
bank |
a bank slug | auto | Forces that bank's parsing rules. See Bank rules. |
store |
true |
false |
Keeps the result in the account so it appears in GET /api/v1/conversions. |
Date order
Dates are returned as ISO YYYY-MM-DD. Reading them from the PDF can be ambiguous: 03/04/2026 is 3 April in most of the world and 4 March in the United States.
- If any date in the statement has a part greater than 12 (for example
25/03), the order is detected from the data anddate_orderis ignored. - Otherwise
date_orderdecides, if you passed it. - Otherwise the statement is read day-first, unless its text identifies a bank with a month-first rule (Bank of America, Capital One, Chase).
Pass date_order=mdy for United States statements and date_order=dmy elsewhere whenever you know the country. It removes the only silent failure mode of this API.
Response, format=json
Status 200, Content-Type: application/json.
{
"id": "c0ffee",
"filename": "statement.pdf",
"pages": 3,
"currency": "USD",
"balance_check": { "checkable": 41, "reconciled": 41 },
"warnings": [],
"transactions": [
{ "date": "2026-03-01", "description": "CARD GREENFIELD MARKET", "amount": -42.18, "balance": 2845.30 },
{ "date": "2026-03-02", "description": "PAYROLL NORTHWIND LOGISTICS", "amount": 3200.00, "balance": 6045.30 }
]
}
id is null unless store=true. Every field is described in Response and data model.
Response, other formats
Status 200 with the file as the body, the matching Content-Type, and Content-Disposition: attachment with a file name derived from the input.
Response headers
| Header | Meaning |
|---|---|
x-pages |
Pages in this PDF, the amount charged to the quota. |
x-pages-used |
Pages used this month, including this call. |
x-pages-included |
Monthly quota of the plan. |
What counts against the quota
- A successful conversion: its page count.
- A scanned PDF (
scanned_pdf): its page count, because the file was read before the problem was known. - Not counted: requests rejected before the PDF was parsed (
unauthorized,not_pdf,too_large,download_failed,quota_exceeded,rate_limited) and PDFs that could not be opened (unreadable_pdf).
One statement per call
A request converts one PDF. To process several, send several requests. Stay under 60 requests a minute per account; see Limits.