API reference
POST /v1/parse
Reads one statement PDF. Authenticate with Authorization: Bearer mpk_….
Body
- The PDF itself, with
Content-Type: application/pdf, or - a
multipart/form-dataform whosefilefield is the PDF.
Options
| Option | Meaning |
|---|---|
?format=csv or Accept: text/csv | Answer with CSV instead of JSON. |
?currency=ZAR | The ISO 4217 currency to assume where the statement prints none. Without it such an account's currency is XXX. |
X-Statement-Password | The password of a protected PDF. It is used to open the file and never kept. |
JSON response
json
{
"schemaVersion": 1,
"requestId": "696016b0-465c-4986-bc89-1896037beea4",
"status": "verified",
"warnings": [],
"statement": {
"bank": "other",
"statementNumber": null,
"statementDate": null,
"periodStart": "2026-10-01",
"periodEnd": "2026-10-31",
"accountHolder": null,
"openingBalanceMinor": 100000,
"closingBalanceMinor": 243425,
"totalMoneyInMinor": 310000,
"totalMoneyOutMinor": 166575
},
"accounts": [{
"accountNumber": "9876543210",
"accountName": null,
"accountType": null,
"branchCode": null,
"currency": "ZAR",
"transactions": [{
"postingDate": "2026-10-02",
"transactionDate": "2026-10-02",
"valueDate": null,
"description": "Salary deposit",
"reference": null,
"moneyInMinor": 250000,
"moneyOutMinor": null,
"feeMinor": null,
"balanceMinor": 350000
}]
}]
}Top level
| Field | Type | Meaning |
|---|---|---|
schemaVersion | number | The response schema version. Fields are only added within a version. |
requestId | string | Quote it when you contact us about a request. Also in the x-request-id header. |
status | "verified" | "needs_review" | verified: every transaction was checked against the statement. needs_review: read, but not everything could be confirmed. |
warnings | array | Why a statement needs review: { code, message }. |
statement | object | What the statement says about itself. |
accounts | array | One entry per account, each with its transactions in statement order. |
statement
| Field | Type | Meaning |
|---|---|---|
bank | string | A supported bank's code, or "other". |
periodStart, periodEnd, statementDate | date | null | ISO dates (YYYY-MM-DD). |
openingBalanceMinor, closingBalanceMinor | integer | null | Balances printed on the statement, in minor units. |
totalMoneyInMinor, totalMoneyOutMinor | integer | null | Totals of the transactions read. |
statementNumber, accountHolder | string | null | As printed. |
Transactions
| Field | Type | Meaning |
|---|---|---|
postingDate, transactionDate, valueDate | date | null | The dates the statement prints for the transaction. |
description, reference | string | null | As printed. |
moneyInMinor, moneyOutMinor | integer | null | One of the two is set: money into or out of the account, as a positive amount. |
feeMinor | integer | null | A fee printed with the transaction. |
balanceMinor | integer | null | The running balance after the transaction, where printed. |
Warnings
| Code | Meaning |
|---|---|
CLOSING_BALANCE_MISMATCH | The transactions do not end on the printed closing balance. |
ACCOUNTS_NOT_SEPARATED | Several accounts are listed without saying which transactions belong to which. |
NOT_CROSS_CHECKED | Every transaction was read, but the statement prints nothing to check them against. |
NEEDS_REVIEW | Something else could not be confirmed. Check the transactions before relying on them. |
CSV response
One row per transaction, amounts in major units with two decimals, a header row first:
csv
Account Number,Account Name,Account Type,Currency,Posting Date,Transaction Date,Value Date,Description,Reference,Money In,Money Out,Fee,Balance
9876543210,,,ZAR,2026-10-02,2026-10-02,,Salary deposit,,2500.00,,,3500.00The status is in the x-statement-status header. A cell that would start a spreadsheet formula (=, +, -, @) is prefixed with '.