Skip to content

Read one statement PDF

POST
/v1/parse
curl --request POST \
--url 'https://parse.mooola.co.za/v1/parse?format=json&unverified=include' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/pdf' \
--header 'X-Unverified: include' \
--data binary
format
string
default: json
Allowed values: json csv

CSV instead of JSON. Accept: text/csv does the same.

currency
string
/^[A-Z]{3}$/

ISO 4217 currency to assume where the statement prints none.

unverified
string
Allowed values: include

Return a statement that cannot be verified, labelled unverified, instead of refusing it.

X-Unverified
string
Allowed values: include

The same as unverified=include.

X-Statement-Password
string

The password of a protected PDF. Never stored.

string format: binary

The statement: verified, needing review, or (when asked for) unverified.

object
schemaVersion
required
Allowed value: 1
requestId
required
string format: uuid
status
required
string
Allowed values: verified needs_review unverified
reason

Unverified only: why it could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string
warnings
required

Needs_review: what did not check out.

Array<object>
object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string
statement
required
object
bank

A supported bank code, or “other”.

string
statementNumber
string | null
statementDate

The statement date.

string | null format: date
periodStart

The first day the statement covers.

string | null format: date
periodEnd

The last day the statement covers.

string | null format: date
accountHolder
string | null
openingBalanceMinor

The opening balance printed. In minor units (cents).

integer | null
closingBalanceMinor

The closing balance printed. In minor units (cents).

integer | null
totalMoneyInMinor

Total money in. In minor units (cents).

integer | null
totalMoneyOutMinor

Total money out. In minor units (cents).

integer | null
accounts
required
Array<object>
object
accountNumber
string
accountName
string | null
accountType
string | null
branchCode
string | null
currency

ISO 4217, or XXX when unknown.

string
transactions
Array<object>
object
postingDate

The posting date.

string | null format: date
transactionDate

The transaction date.

string | null format: date
valueDate

The value date.

string | null format: date
description
string | null
reference
string | null
moneyInMinor

Money into the account. In minor units (cents).

integer | null
moneyOutMinor

Money out of the account, as a positive amount. In minor units (cents).

integer | null
feeMinor

A fee printed with the transaction. In minor units (cents).

integer | null
balanceMinor

The running balance after the transaction. In minor units (cents).

integer | null
verified

True when this transaction was checked against the statement’s own figures (balances or totals); false when it was inferred. In an unverified result, keep the true ones or send the false ones for review.

boolean

Example

{
"schemaVersion": 1,
"status": "verified",
"reason": {
"code": "BALANCE_MISMATCH"
},
"warnings": [
{
"code": "BALANCE_MISMATCH"
}
]
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

x-statement-status
string

CSV responses: the status.

Refused: INVALID_REQUEST.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: UNAUTHORIZED.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: TOO_LARGE.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: INVALID_FILE.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: TOO_MANY_PAGES, PASSWORD_REQUIRED, INCORRECT_PASSWORD, UNREADABLE, UNSUPPORTED_DOCUMENT, NOT_VERIFIED.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: RATE_LIMITED, QUOTA_EXCEEDED.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.

Refused: INTERNAL.

Media typeapplication/json
object
requestId
string format: uuid
error
required
object
code
required
string
Allowed values: UNAUTHORIZED RATE_LIMITED QUOTA_EXCEEDED INVALID_REQUEST INVALID_FILE TOO_LARGE TOO_MANY_PAGES PASSWORD_REQUIRED INCORRECT_PASSWORD UNREADABLE UNSUPPORTED_DOCUMENT NOT_VERIFIED INTERNAL
message
required
string
reason

NOT_VERIFIED only: why the statement could not be verified.

object
code
required
string
Allowed values: BALANCE_MISMATCH DIRECTION_UNCLEAR DATE_UNCLEAR ROWS_UNREADABLE ACCOUNTS_UNCLEAR NOTHING_TO_CHECK NO_TRANSACTIONS NOT_CHECKED
message
required

Plain English, safe to show to your users.

string

Example

{
"error": {
"code": "UNAUTHORIZED",
"reason": {
"code": "BALANCE_MISMATCH"
}
}
}
x-quota-limit
integer

Statements per account per month on the free tier (300).

x-quota-remaining
integer

Statements left this month, after this request.

x-quota-reset
string format: date-time

When the allowance resets (UTC).

x-request-id
string format: uuid

Quote it when you contact us about a request.