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-data form whose file field is the PDF.

Options

OptionMeaning
?format=csv or Accept: text/csvAnswer with CSV instead of JSON.
?currency=ZARThe ISO 4217 currency to assume where the statement prints none. Without it such an account's currency is XXX.
X-Statement-PasswordThe 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

FieldTypeMeaning
schemaVersionnumberThe response schema version. Fields are only added within a version.
requestIdstringQuote 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.
warningsarrayWhy a statement needs review: { code, message }.
statementobjectWhat the statement says about itself.
accountsarrayOne entry per account, each with its transactions in statement order.

statement

FieldTypeMeaning
bankstringA supported bank's code, or "other".
periodStart, periodEnd, statementDatedate | nullISO dates (YYYY-MM-DD).
openingBalanceMinor, closingBalanceMinorinteger | nullBalances printed on the statement, in minor units.
totalMoneyInMinor, totalMoneyOutMinorinteger | nullTotals of the transactions read.
statementNumber, accountHolderstring | nullAs printed.

Transactions

FieldTypeMeaning
postingDate, transactionDate, valueDatedate | nullThe dates the statement prints for the transaction.
description, referencestring | nullAs printed.
moneyInMinor, moneyOutMinorinteger | nullOne of the two is set: money into or out of the account, as a positive amount.
feeMinorinteger | nullA fee printed with the transaction.
balanceMinorinteger | nullThe running balance after the transaction, where printed.

Warnings

CodeMeaning
CLOSING_BALANCE_MISMATCHThe transactions do not end on the printed closing balance.
ACCOUNTS_NOT_SEPARATEDSeveral accounts are listed without saying which transactions belong to which.
NOT_CROSS_CHECKEDEvery transaction was read, but the statement prints nothing to check them against.
NEEDS_REVIEWSomething 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.00

The status is in the x-statement-status header. A cell that would start a spreadsheet formula (=, +, -, @) is prefixed with '.