One request turns a raw transaction string into a merchant, category and more.
Overview
Base URL
https://sandbox.api.tanzimfinancial.com/v1
Format
JSON over HTTPS. Send Content-Type: application/json.
Auth
API key in the Authorization header.
Current engine
3.3.0+51d01cf1
Versioning. Everything under /v1 is additive-only: fields are never removed,
renamed or re-typed, so an integration written today keeps working while the matching engine improves behind it.
Treat unknown response fields as ignorable. Breaking changes ship as /v2, side by side. Every response
carries X-Tanzim-Engine-Version so you can tell which build answered.
Quickstart
1. Get a test key (instant, free): create one here, or
curl -X POST https://sandbox.api.tanzimfinancial.com/v1/keys -H "Content-Type: application/json" -d '{}'. 2. Send a transaction — if you created a key in this browser it is already filled into the snippets below:
import java.net.URI;
import java.net.http.*;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest req = HttpRequest.newBuilder(URI.create("https://sandbox.api.tanzimfinancial.com/v1/enrich"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString("{\"description\": \"NETFLIX.COM 4029357689\"}"))
.build();
HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());
}
}
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var content = new StringContent("{\"description\": \"NETFLIX.COM 4029357689\"}", Encoding.UTF8, "application/json");
var res = await client.PostAsync("https://sandbox.api.tanzimfinancial.com/v1/enrich", content);
Console.WriteLine(await res.Content.ReadAsStringAsync());
Always check matched before using merchant_name. When it is false (for example a
person-to-person transfer) the fields are null — see the live examples at
the playground.
Analyse a bank statement
Upload a statement and get every transaction parsed, classified and enriched, plus spending insights. PDF (with selectable text),
CSV and Excel (.xlsx) are supported, up to 8 MB. The file is processed in memory and never stored.
import requests
with open("statement.pdf", "rb") as f:
r = requests.post("https://sandbox.api.tanzimfinancial.com/v1/statements/analyze",
headers={"Authorization": "Bearer YOUR_API_KEY"}, files={"file": f}, timeout=60)
r.raise_for_status()
result = r.json()
print(result["statement"]["confidence"], result["insights"]["summary"]["spending"])
The response has three parts: statement (what was read, with a confidence grade and a reconciliation self-check
against the statement's own balances), transactions (each with direction, kind and a full
enrichment), and insights (summary, categories, top merchants, monthly trend, recurring payments, transfers,
and how much spending could be identified). Show statement.warnings to your user. If you already have the transactions as data,
send them to POST /v1/transactions/analyze instead. Statements are limited to 20 per hour per key.
Privacy. Statement contents are not stored. Only merchant narrations Tanzim could not identify are kept to improve
matching, with long digit runs and e-mail addresses masked and person-to-person transfers excluded.
Webhooks
Instead of polling, give Tanzim a URL and it will POST an event there when something changes in a customer's subscriptions.
Every event is also kept in the event log (GET /v1/events), so you can catch up after downtime.
Event
When
subscription.detected
A subscription was found in a customer's transactions that was not there at their previous analysis.
subscription.price_changed
A subscription's price went up or down. has the previous average, the new amount and the date.
subscription.status_changed
A subscription's status moved (for example -> : payments stopped).
subscription.renewal_due
A subscription is expected to renew within 3 days. Sent once per expected renewal date.
curl -X POST https://sandbox.api.tanzimfinancial.com/v1/webhooks -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"url": "https://example.com/hooks/tanzim", "events": ["subscription.renewal_due"]}'
# the response contains "secret": "whsec_..." : shown once, store it
Try your handler before real events exist: POST /v1/webhooks/{id}/test sends a sample event of any type
({"type": "subscription.price_changed"}) and tells you what your server answered;
GET /v1/webhooks/{id}/deliveries is the delivery log.
Verify every request. Each one carries Tanzim-Signature: t=<unix time>,v1=<hex>, where the hex is HMAC-SHA256 of
"<t>.<raw body>" with your signing secret. Compute it over the raw bytes you received (not a re-serialised copy), compare in
constant time, and reject timestamps older than 5 minutes. The SDKs do this for you:
from tanzim import verify_webhook # Python (standard library only)
ok = verify_webhook(SECRET, request.headers["Tanzim-Signature"], request.get_data())
import { verifyWebhook } from "./tanzim.mjs"; // Node 16+. With Express use express.raw({ type: "application/json" })
const ok = await verifyWebhook(SECRET, req.get("Tanzim-Signature"), req.body);
Answer with any 2xx within 5 seconds, then do the real work. Anything else is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h (then Tanzim gives up on that delivery).
Handle duplicates:Tanzim-Event-Id (and id in the body) is the same on every retry. Store it and ignore repeats.
Your URL must be HTTPS on a public address. Localhost, private networks and cloud-metadata addresses are refused, and redirects are not followed.
While developing, expose your machine with a tunnel (ngrok, Cloudflare Tunnel) or use a public inspector URL.
An endpoint that fails 50 deliveries in a row is switched off (disabled_reason: "too_many_failures"); create it again once fixed.
Up to 5 endpoints per account. Rotate a secret with POST /v1/webhooks/{id}/rotate-secret.
Authentication
Send your key as Authorization: Bearer tz_test_…, or as X-API-Key: tz_test_… if your tooling
can't set that header. Test keys (tz_test_…) are instant and self-serve and work only on the sandbox; live keys
(tz_live_…) are issued after onboarding and work only on production. Sending the wrong kind answers 403 wrong_environment,
and every response carries X-Tanzim-Environment. Verify a key with GET /v1/me. Rotate by creating a new key, switching over, then
DELETE /v1/keys/current with the old one. Keep keys out of public front-end code.
Live example inputs and outputs · No authentication
Sample transactions run through the engine right now, so the output is always what the current build really returns. The docs pages are generated from this.
The raw transaction string exactly as it appears on the statement or card feed. e.g. "NETFLIX.COM 4029357689"
mcc
string | null
Optional 4-digit Merchant Category Code from the card network. Used only as a fallback category when the merchant cannot be identified. mcc_code is accepted as an alias. e.g. "5968"
Up to 100 transactions per call. Each item counts once toward your rate limit. Results are in input order; one unmatched item never fails the whole batch.
Analyse a bank or card statement · API key required
Upload a statement (PDF, CSV or Excel) and get back every transaction parsed, dated, classified and enriched with merchant details, plus insights: spending by category and merchant, monthly trend, recurring payments and subscriptions, transfers, fees and cash. The file is processed in memory and never stored. statement.confidence and statement.reconciliation tell you whether the parse can be trusted: if the statement has a balance column, every row is checked against it.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
413
The request body is too large (1 MB for most endpoints; statements may be larger, see /v1/meta). ErrorResponse
415
That file type isn't supported. Upload a PDF, CSV or Excel (.xlsx) statement. ErrorResponse
422
The file was read but no transactions could be extracted (for example a scanned PDF, a password-protected PDF, or a file that isn't a statement). details[].reason says which. ErrorResponse
POST/v1/transactions/analyze
Analyse a list of transactions · API key required
Same enrichment and insights as /statements/analyze, for transactions you already have as structured data (up to 5000). Include balance when you can: it makes direction detection and the self-check reliable.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
413
The request body is too large (1 MB for most endpoints; statements may be larger, see /v1/meta). ErrorResponse
422
The file was read but no transactions could be extracted (for example a scanned PDF, a password-protected PDF, or a file that isn't a statement). details[].reason says which. ErrorResponse
POST/v1/transactions/bulk
Submit customer transactions · API key required
Submit up to 5000 transactions for one customer: a full history or just the new ones. Each transaction is validated on its own (a bad one is rejected with a reason; the rest are processed), de-duplicated (re-sending an id is idempotent; the same payment under two ids is flagged), enriched (your merchant block, or Merchant Intelligence), stored, and the customer's subscriptions are re-analysed so existing records update in place.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
POST/v1/subscriptions/analyze
Detect a customer's subscriptions · API key required
Analyse the customer's submitted history: recurring payments are detected, given a billing frequency and confidence, classified (subscription vs bill vs obligation vs repeated purchase), consolidated into records with stable ids, and totalled per currency. Confidence comes from the detection engine and the history available; it is not fixed.
How far back from as_of to look. Annual subscriptions need more than 12 months to be seen twice.
include_forecasts
boolean
Include upcoming_payments (next 7 and 30 days).
as_of
string | null
Date to analyse as of (status and forecasts are relative to it). Defaults to today (UTC). Remembered: later uploads for this customer re-analyse with the same settings.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
404
customer_not_found or subscription_not_found (also for ids that belong to another institution). ErrorResponse
DELETE/v1/customers/{customer_id}
Delete a customer's data · API key required
Permanently erases every transaction, subscription record and payment link stored for this customer (for example when they close their account or withdraw consent). Irreversible. Other customers are untouched.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
404
customer_not_found or subscription_not_found (also for ids that belong to another institution). ErrorResponse
GET/v1/customers/{customer_id}/transactions
List a customer's stored transactions · API key required
Every submitted transaction with its merchant enrichment and payment class (subscription payment, recurring bill, recurring obligation, ordinary purchase, unclassified, ...), newest first.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
POST/v1/webhooks
Create a webhook endpoint · API key required
Receive events at your URL instead of polling. Each delivery is a POST of the event as JSON with a Tanzim-Signature: t=<unix time>,v1=<hex> header: the hex is HMAC-SHA256 of "<t>.<raw body>" with your signing secret (returned once, here). Verify it and reject timestamps older than 5 minutes. Answer any 2xx within 5 seconds; otherwise Tanzim retries after 1 min, 5 min, 30 min, 2 h, 6 h and 12 h. Tanzim-Event-Id is stable across retries: use it to ignore duplicates. Redirects are not followed.
Too many requests. Wait Retry-After seconds, then retry. ErrorResponse
POST/v1/webhooks/{endpoint_id}/test
Send a test event · API key required
Simulate an event: sends a sample event (test: true) of the type you choose to this endpoint right now, with one attempt and no retries, and returns what happened (status, last_status_code, last_error). Use it to build and debug your handler.
How far back from as_of to look. Annual subscriptions need more than 12 months to be seen twice.
include_forecasts
boolean
Include upcoming_payments (next 7 and 30 days).
as_of
string | null
Date to analyse as of (status and forecasts are relative to it). Defaults to today (UTC). Remembered: later uploads for this customer re-analyse with the same settings.
True when the new transactions re-ran the customer's analysis.
total_subscriptionsrequired
integer
CategoryCount
Field
Type
Description
namerequired
string
merchantsrequired
integer
CategoryInsight
Field
Type
Description
categoryrequired
string
Merchant category; unidentified spending is grouped as Unidentified.
amountrequired
number
countrequired
integer
sharerequired
number
Share of total spending, 0 to 1.
top_merchantsrequired
array of string
ClientMerchant
Merchant Intelligence output you already have (the Enriched Transaction Data Contract). Send it and Tanzim
uses it as is; leave it out and Tanzim resolves the merchant from the description.
Field
Type
Description
merchant_id
string | null
Your/Merchant Intelligence's stable merchant id. e.g. "MER001"
merchant_name
string | null
Canonical merchant name. e.g. "Netflix"
category
string | null
Merchant Intelligence category (e.g. Subscriptions & OTT, Utilities - Electricity). e.g. "Subscriptions & OTT"
subcategory
string | null
e.g. "OTT - International"
confidence
number | null
Merchant resolution confidence, 0 to 1. Defaults to 1.
logo_url
string | null
domain
string | null
is_person
boolean | null
True when the counterparty is a person (a transfer), not a merchant.
CounterpartyInfo
Field
Type
Description
namerequired
string
The other person's name with sensible capitalisation ("RAO EHTISHAM ALI KHAN" -> "Rao Ehtisham Ali Khan"). e.g. "Ali Raza"
raw_namerequired
string
Exactly as printed on the statement (the account title returned by the bank's title fetch). e.g. "ALI RAZA"
bank
string | null
The other party's bank or wallet, when the narration shows it. e.g. "HBL"
channel
string | null
ibft, raast, wallet, transfer, or card (a card payment made to a person's name).
direction
string | null
in or out, from the wording of the narration. A statement's debit/credit is more reliable when you have it.
True once the new amount has been charged at least twice.
noterequired
string
subscription_idrequired
string
merchant_namerequired
string
currencyrequired
string
Duplicate
Field
Type
Description
indexrequired
integer
transaction_idrequired
string
kindrequired
string
already_received (same id and content as before: ignored) or possible_duplicate (same customer, date, amount, currency and description under a different id: stored, flagged, never counted twice).
duplicate_ofrequired
string
EnrichRequest
Field
Type
Description
descriptionrequired
string
The raw transaction string exactly as it appears on the statement or card feed. e.g. "NETFLIX.COM 4029357689"
mcc
string | null
Optional 4-digit Merchant Category Code from the card network. Used only as a fallback category when the merchant cannot be identified. mcc_code is accepted as an alias. e.g. "5968"
EnrichResponse
Field
Type
Description
inputrequired
string
The description you sent, echoed back (handy for batches).
matchedrequired
boolean
True when a specific merchant was identified. Check this before using merchant_name.
merchant_name
string | null
Canonical merchant name. null when matched is false. e.g. "Netflix"
merchant_id
string | null
Stable id for the merchant: the same merchant always has the same id, across requests and clients. Use it to group transactions by merchant. null when matched is false. e.g. "mer_e42776aa5123"
category
string | null
Spending category. When matched is false this is only set if you sent an mcc. e.g. "Subscriptions & OTT"
subcategory
string | null
e.g. "OTT - International"
country
string | null
ISO 3166-1 alpha-2 country the merchant operates in, where known; otherwise null. e.g. "PK"
logo_url
string | null
Logo/icon image URL. Checked to load when last verified; null when no working logo is known, so show your own placeholder (e.g. the merchant's initial).
website
string | null
e.g. "https://netflix.com"
domain
string | null
e.g. "netflix.com"
mcc
string | null
The merchant's usual Merchant Category Code, where known. e.g. "5968"
confidencerequired
number
How sure Tanzim is that merchant_name is right, 0 to 1. It is derived from the match method and similarity score, not a calibrated probability: treat >= 0.9 as reliable and anything lower as worth a human glance. Always 0 when matched is false. e.g. 0.99
For person-to-person transfers whose narration names the other person (IBFT / Raast / wallet title fetch): who it is. When present, matched is false unless a real merchant was identified.
request_idrequired
string
Unique id for this request; also sent as the X-Request-Id header.
engine_versionrequired
string
Version of the matching engine + merchant data that produced this result. e.g. "3.1.0+18b095da"
EnrichResult
Field
Type
Description
inputrequired
string
The description you sent, echoed back (handy for batches).
matchedrequired
boolean
True when a specific merchant was identified. Check this before using merchant_name.
merchant_name
string | null
Canonical merchant name. null when matched is false. e.g. "Netflix"
merchant_id
string | null
Stable id for the merchant: the same merchant always has the same id, across requests and clients. Use it to group transactions by merchant. null when matched is false. e.g. "mer_e42776aa5123"
category
string | null
Spending category. When matched is false this is only set if you sent an mcc. e.g. "Subscriptions & OTT"
subcategory
string | null
e.g. "OTT - International"
country
string | null
ISO 3166-1 alpha-2 country the merchant operates in, where known; otherwise null. e.g. "PK"
logo_url
string | null
Logo/icon image URL. Checked to load when last verified; null when no working logo is known, so show your own placeholder (e.g. the merchant's initial).
website
string | null
e.g. "https://netflix.com"
domain
string | null
e.g. "netflix.com"
mcc
string | null
The merchant's usual Merchant Category Code, where known. e.g. "5968"
confidencerequired
number
How sure Tanzim is that merchant_name is right, 0 to 1. It is derived from the match method and similarity score, not a calibrated probability: treat >= 0.9 as reliable and anything lower as worth a human glance. Always 0 when matched is false. e.g. 0.99
For person-to-person transfers whose narration names the other person (IBFT / Raast / wallet title fetch): who it is. When present, matched is false unless a real merchant was identified.
EnrichmentCounts
Field
Type
Description
merchant_suppliedrequired
integer
Transactions that arrived with a merchant block.
resolved_by_tanzimrequired
integer
Resolved by Merchant Intelligence from the description.
unresolvedrequired
integer
Merchant not identified; grouped by a cleaned description instead.
What you're building (shown only to you). e.g. "My budgeting app"
email
string | null
Optional, but lets us tell you about breaking changes and quota.
source
string | null
Free-form label for where the key was requested from.
KindTotal
Field
Type
Description
kindrequired
string
countrequired
integer
debit_amountrequired
number
credit_amountrequired
number
LargeTransaction
Field
Type
Description
daterequired
string
descriptionrequired
string
amountrequired
number
merchant
string | null
kindrequired
string
Match
Field
Type
Description
methodrequired
string
How the merchant was identified: exact (the whole string is a known name), substring (a known name appears inside it), fuzzy (a close misspelling/partial match), mcc_fallback (merchant unknown, category taken from the MCC you sent) or none. e.g. "substring"
matched_on
string | null
The known name/alias that matched, normalised. Useful for debugging. e.g. "NETFLIX COM"
Self-check against the statement's balances. null when the statement has no balance column.
StatementTransaction
Field
Type
Description
indexrequired
integer
Position in the statement, starting at 0.
date
string | null
descriptionrequired
string
amountrequired
number
Always positive; see direction.
directionrequired
string
debit (money out), credit (money in) or unknown.
balance
number | null
kindrequired
string
What sort of transaction this is: merchant, transfer_in, transfer_out (person-to-person), cash, fee, income, interest, refund, bill_payment or unknown.
counterparty
string | null
The other person in a transfer, when the narration names them (capitalisation normalised).
payee_id
string | null
Stable id of that person within this statement: different spellings of one name share it.
counterparty_bank
string | null
The other person's bank or wallet, when shown.
channel
string | null
ibft, raast, wallet, transfer or card.
identifiedrequired
boolean
True when the merchant was identified with confidence of at least 0.9. Weaker guesses stay in enrichment (show them as "possibly ...") but are not used for categories, merchants or kinds.
client (sent with a merchant block) or tanzim (resolved by Merchant Intelligence).
payment_class
string | null
One of: subscription_payment, recurring_bill, recurring_obligation, ordinary_purchase, unclassified, credit, failed, transfer, possible_duplicate. Null until analysed.
subscription_id
string | null
The recurring relationship this transaction belongs to, if any.
duplicate_of
string | null
Subscription
Field
Type
Description
subscription_idrequired
string
customer_idrequired
string
merchant_idrequired
string
merchant_namerequired
string
merchant_resolvedrequired
boolean
False when Merchant Intelligence could not identify the merchant (grouped by cleaned description).
merchant_confidencerequired
number
logo_url
string | null
domain
string | null
categoryrequired
string
One of: Entertainment, Software and SaaS, Music and Streaming, Gaming, Cloud Services, Telecommunications, Utilities, Insurance, Financial Services, Shopping and Retail, Food and Delivery, Transportation, Other.
source_category
string | null
The Merchant Intelligence category it was derived from.
source_subcategory
string | null
classificationrequired
string
subscription, recurring_bill (utilities, telecom), recurring_obligation (insurance, EMIs, fees) or recurring_payment (a repeated purchase, not a commitment).
detectionrequired
string
confirmed_subscription (confirmed by the observed payment history), probable_subscription, or recurring_payment. A payment pattern cannot prove a merchant-side contract exists.
is_subscriptionrequired
boolean
frequencyrequired
string
One of: weekly, fortnightly, monthly, bimonthly, quarterly, semi_annual, annual, irregular.
average_amountrequired
number
last_amountrequired
number
expected_amountrequired
number
Expected next payment: the current price (after any price change), or the recent average for variable amounts.
monthly_equivalent
number | null
expected_amount converted to a month: weekly x 52/12, fortnightly x 26/12, quarterly / 3, ...
annualised_equivalent
number | null
currencyrequired
string
amount_patternrequired
string
fixed, stepped (price changed), variable (metered bills), or fixed_in_original_currency (only FX moved).
payment_countrequired
integer
total_paidrequired
number
first_observed_daterequired
string
last_payment_daterequired
string
next_expected_payment
string | null
Estimate, not a guaranteed billing date.
recurrence_confidencerequired
number
How sure Tanzim is that the payment recurs at frequency, from the number of payments, interval regularity and amount stability.
classification_confidencerequired
number
How sure Tanzim is of classification (recurrence x merchant category evidence x merchant resolution confidence).
forecast_confidencerequired
number
statusrequired
string
Estimated from the pattern: active_pattern, observed_recurring (too little history to say more), uncertain (the expected payment is late) or inactive (expected payments missed).
status_reasonrequired
string
included_in_totalsrequired
boolean
Counted in monthly/annualised expenditure (status active_pattern or observed_recurring).
False when Merchant Intelligence could not identify the merchant (grouped by cleaned description).
merchant_confidencerequired
number
logo_url
string | null
domain
string | null
categoryrequired
string
One of: Entertainment, Software and SaaS, Music and Streaming, Gaming, Cloud Services, Telecommunications, Utilities, Insurance, Financial Services, Shopping and Retail, Food and Delivery, Transportation, Other.
source_category
string | null
The Merchant Intelligence category it was derived from.
source_subcategory
string | null
classificationrequired
string
subscription, recurring_bill (utilities, telecom), recurring_obligation (insurance, EMIs, fees) or recurring_payment (a repeated purchase, not a commitment).
detectionrequired
string
confirmed_subscription (confirmed by the observed payment history), probable_subscription, or recurring_payment. A payment pattern cannot prove a merchant-side contract exists.
is_subscriptionrequired
boolean
frequencyrequired
string
One of: weekly, fortnightly, monthly, bimonthly, quarterly, semi_annual, annual, irregular.
average_amountrequired
number
last_amountrequired
number
expected_amountrequired
number
Expected next payment: the current price (after any price change), or the recent average for variable amounts.
monthly_equivalent
number | null
expected_amount converted to a month: weekly x 52/12, fortnightly x 26/12, quarterly / 3, ...
annualised_equivalent
number | null
currencyrequired
string
amount_patternrequired
string
fixed, stepped (price changed), variable (metered bills), or fixed_in_original_currency (only FX moved).
payment_countrequired
integer
total_paidrequired
number
first_observed_daterequired
string
last_payment_daterequired
string
next_expected_payment
string | null
Estimate, not a guaranteed billing date.
recurrence_confidencerequired
number
How sure Tanzim is that the payment recurs at frequency, from the number of payments, interval regularity and amount stability.
classification_confidencerequired
number
How sure Tanzim is of classification (recurrence x merchant category evidence x merchant resolution confidence).
forecast_confidencerequired
number
statusrequired
string
Estimated from the pattern: active_pattern, observed_recurring (too little history to say more), uncertain (the expected payment is late) or inactive (expected payments missed).
status_reasonrequired
string
included_in_totalsrequired
boolean
Counted in monthly/annualised expenditure (status active_pattern or observed_recurring).
webhook.test or any event type from GET /v1/events/types: a sample event of that type is sent. e.g. "subscription.renewal_due"
Errors
Every error has the same shape and an X-Request-Id header:
{
"error": {
"code": "invalid_api_key",
"message": "The API key is unknown or has been revoked.",
"request_id": "req_…"
}
}
code
HTTP
Meaning
invalid_request
400
The request body or a parameter is missing or malformed. details lists the offending fields.
missing_api_key
401
No API key was sent. Use Authorization: Bearer <key> or X-API-Key: <key>.
invalid_api_key
401
The API key is unknown or has been revoked.
wrong_environment
403
This key belongs to the other environment. Test keys (tz_test_…) work only on the sandbox base URL and live keys (tz_live_…) only on the production base URL.
self_serve_disabled
403
Self-serve keys are only available on the sandbox. Production keys are issued after onboarding.
webhook_not_found
404
No webhook endpoint with that id on this account.
webhook_limit_reached
409
Too many active webhook endpoints on this account (5). Delete one first.
not_found
404
No such endpoint.
customer_not_found
404
No transactions have been submitted for that customer_id with this institution's keys.
subscription_not_found
404
No subscription with that id for this institution.
method_not_allowed
405
That endpoint does not support this HTTP method.
payload_too_large
413
The request body is too large (1 MB for most endpoints; statements may be larger, see /v1/meta).
rate_limited
429
Too many requests. Wait Retry-After seconds, then retry.
unsupported_file
415
That file type isn't supported. Upload a PDF, CSV or Excel (.xlsx) statement.
statement_unreadable
422
The file was read but no transactions could be extracted (for example a scanned PDF, a password-protected PDF, or a file that isn't a statement). details[].reason says which.
internal_error
500
Something went wrong on our side. Quote the request_id if you contact us.
Branch on error.code, not on the message text.
Rate limits
Test keys: 120 transactions per minute and 10000 per day (a batch of N counts as N).
Responses include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds);
a 429 includes Retry-After. Batches take up to 100 items.
Integration tips
Any language works. It is plain REST + JSON. For a typed client, generate one from /v1/openapi.json
(e.g. openapi-generator, openapi-typescript, oapi-codegen) or import that URL into Postman/Insomnia.
Minimal dependency-free clients for Python and JavaScript are in backend/sdk/.
Retries are safe. Enrichment is read-only and idempotent: retry 429 (after Retry-After) and 5xx with backoff.
Batch when you can. One request for 100 transactions beats 100 requests.
Use confidence. ≥ 0.9 is reliable; lower deserves a human glance or a "suggested" label in your UI.
Send the whole string exactly as the bank gave it, noise and all. Don't pre-clean it; the engine does that.
Send mcc when you have it. It gives a category even for merchants we don't know yet.
Ignore unknown fields in responses so additive improvements never break you.
Test-key requests are logged with their input so we can improve matching; live keys never store your inputs. Don't send real personal data from test keys. Failed and low-confidence enrichments are reviewed to add
missing merchants, which is how coverage improves over time.