Quickstart
Turn a bank statement PDF into transactions in three steps.
1. Get a key
Section titled “1. Get a key”Sign in with your email, create an integration and accept the API terms, then create a key. A key is shown once: store it as a secret, never in client-side code.
2. Send a PDF
Section titled “2. Send a PDF”Send the PDF as the request body, or as a form upload from any HTTP client.
curl -X POST https://parse.mooola.co.za/v1/parse \ -H "Authorization: Bearer $MOOOLA_API_KEY" \ -H "Content-Type: application/pdf" \ --data-binary @statement.pdfconst form = new FormData()form.set('file', pdfBlob, 'statement.pdf')
const response = await fetch('https://parse.mooola.co.za/v1/parse?currency=ZAR', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MOOOLA_API_KEY}` }, body: form,})const result = await response.json()With requests:
import os, requests
with open("statement.pdf", "rb") as pdf: response = requests.post( "https://parse.mooola.co.za/v1/parse", params={"currency": "ZAR"}, headers={"Authorization": f"Bearer {os.environ['MOOOLA_API_KEY']}"}, files={"file": ("statement.pdf", pdf, "application/pdf")}, )result = response.json()3. Check the status
Section titled “3. Check the status”A 200 answer carries status:
verifiedwhen every transaction was checked against the statement, orneeds_reviewwhen every transaction was read but a check did not pass (itswarningssay what).
A statement the API cannot stand behind is refused with NOT_VERIFIED and a reason. Add ?unverified=include to receive its transactions anyway, with status unverified. Warnings and reasons use the same issue codes, which you can show to your users. Handling results explains each status.
Amounts are integers in minor units (cents): 250000 is 2,500.00. Add ?format=csv for CSV instead of JSON.
4. Handle the result
Section titled “4. Handle the result”One branch per outcome. Issue messages are written for people, so you can show them to your users as they are.
const result = await response.json()
if (response.ok) { // 200: verified, needs_review, or unverified (only when you asked for it). if (result.status === 'verified') save(result.accounts) else if (result.status === 'needs_review') saveForReview(result.accounts, result.warnings) else saveAsDraft(result.accounts, result.reason) // unverified: a person should check it} else { const { code, message, reason } = result.error switch (code) { case 'NOT_VERIFIED': // read, but could not be verified tellUser(reason.message) // e.g. "Some transactions have no date that could be read." break case 'PASSWORD_REQUIRED': case 'INCORRECT_PASSWORD': askForPassword() // send it in X-Statement-Password break case 'RATE_LIMITED': // 30 a minute per key: retry after a short wait retryLater(5_000) break case 'QUOTA_EXCEEDED': // this month's allowance is used retryAfter(response.headers.get('x-quota-reset')) break default: // UNREADABLE, UNSUPPORTED_DOCUMENT, INVALID_FILE, TOO_LARGE, ... tellUser(message) }}Every code is listed on the error response page. The whole API is described as OpenAPI 3.1 at parse.mooola.co.za/openapi.json, for generating a client or importing into Postman or Insomnia; browse it in the operation reference or try requests in the API explorer.
- Not sure your bank is covered? See bank coverage, or try a statement in the browser.
- Your dashboard shows your integrations, keys and usage.

