Docs FNB FNB bank APIs Transaction History
Known issues and doc clarifications
Places where the Transaction History documents differ from each other or leave a gap, each with the source, what we recommend in the meantime, and its confirmation status.
Please note: This page is our own understanding of an FNB API, written in our own words. It is not FNB's official documentation. See Copyright and disclaimer.
About this list#
The Transaction History documents are clear on the things that matter most: one endpoint, standard OAuth 2.0, ISO 20022 field names, a running balance on every entry, and an honest note that entryId is not unique. Writing three documents that stay perfectly in step is hard, and a few small differences have crept in between them. We list them here so the next developer does not have to rediscover them, and so we can confirm each one with the bank.
Every item is marked Unconfirmed until the bank confirms it, at which point we will update it with the answer and the date. These come from reading the documents; none has yet been checked against the live API.
Sources: Manual is the Product Configuration Manual v04, Spec is the Message Specification v03, OpenAPI is the OpenAPI file version 1.0.5. The catalogue page is the public Transaction History page.
Summary#
| ID | Topic | Recommendation | Status |
|---|---|---|---|
| KI-01 | fromDate and toDate: required or optional | Always send both | Unconfirmed |
| KI-02 | Amount decimals: 2 or up to 5 | Parse exactly; expect 2 | Unconfirmed |
| KI-03 | Dates described as date and time | Treat as plain dates | Unconfirmed |
| KI-04 | 423 described as Too Many Requests | Treat like 429 | Unconfirmed |
| KI-05 | Status code lists differ | Handle the union | Unconfirmed |
| KI-06 | toDate description mentions fromDate | Read as inclusive end date | Unconfirmed |
| KI-07 | lastItemKey description uses other field names | Use the groupHeader fields | Unconfirmed |
| KI-08 | Empty range: 200 or 204 | Cap 204 retries | Unconfirmed |
| KI-09 | Amount pattern would reject valid amounts | Do not validate with that pattern | Unconfirmed |
| KI-10 | Date pattern written with slashes | Do not validate with that pattern | Unconfirmed |
| KI-11 | "Total balance" mentioned but not in the schema | Use per-entry availability | Unconfirmed |
| KI-12 | One account per call, or bulk | Call once per account | Unconfirmed |
| KI-13 | Token URLs given for integration only | Confirm production URLs | Unconfirmed |
| KI-14 | 200 described with an Instruction ID | Ignore; no such field | Unconfirmed |
| KI-15 | Countries in scope | Check with the bank for non-SA accounts | Unconfirmed |
| KI-16 | Catalogue page mentions the EFT Payment API | Subscribe to Transaction History | Unconfirmed |
| KI-17 | Reference lengths differ across FNB APIs | Rely on the first 20 characters | Unconfirmed |
Details#
KI-01: fromDate and toDate, required or optional#
- Spec 1.5.1 (p5):
fromDateandtoDatehave multiplicity1..1, which means required. - OpenAPI
FromDateQueryParameterandToDateQueryParameter:required: false. - Recommendation: always send both. This works whichever document is right.
- Status: Unconfirmed.
KI-02: Amount decimals, 2 or up to 5#
- Spec 1.6 (p8, p9):
amountandavailability.amountare decimals with 13 total digits and 2 fraction digits. - OpenAPI
Amounts.amountandAvailability.amount: the pattern allows up to 5 decimals (\d{1,5}). - Recommendation: parse amounts as exact decimals and convert to integer cents. If a value ever arrives with more than 2 decimals, flag it for review rather than rounding it.
- Status: Unconfirmed.
KI-03: Dates described as date and time#
- Spec 1.6 (p7):
valueDate.Dateis described as the date and time the money becomes available, yet given the formatyyyy-mm-ddand the type labelISODateTime.bookingDate.Dateand the query parameters also carry theISODateTimelabel with aYYYY-MM-DDformat, and thefromDaterow opens by describing it as the date the message was created (Spec 1.5.1, p5). - OpenAPI: these fields use
ISODate(YYYY-MM-DD). - Recommendation: treat all of them as plain calendar dates without a time. The format column and the OpenAPI agree on that.
- Status: Unconfirmed.
KI-04: 423 described as Too Many Requests#
- OpenAPI
responses.423ErrorResponse: labelled "Too Many Requests", the same as429. In HTTP,423normally means "Locked". - Spec 2.1 (p10): does not list
423. - Recommendation: treat
423as "try again later" with backoff, like429, and log it so we can learn what triggers it. - Status: Unconfirmed. We would like to know when the API returns
423rather than429.
KI-05: Status code lists differ#
- Spec 2.1 (p10): 200, 204, 400, 401, 403, 404, 429, 500, 503.
- OpenAPI: 200, 400, 401, 403, 406, 423, 429, 500.
- Recommendation: handle all eleven. See Status codes and errors.
- Status: Unconfirmed.
KI-06: toDate description mentions fromDate#
- Spec 1.5.1 (p5) and OpenAPI
ToDateQueryParameter: thetoDatedescription refers to entries on and older than FromDate. This reads like a small copy-over from thefromDatetext; toDate is almost certainly what is meant. - Recommendation: treat
toDateas the inclusive last date of the range. - Status: Unconfirmed.
KI-07: lastItemKey description uses other field names#
- OpenAPI
LastItemKeyQueryParameter: the description tells you to send anextPagingKeytaken from ametaobject, and refers to amorePagesflag. It also says the next page includes the keyed entry. - The response schema has no
meta,nextPagingKeyormorePages. The matching fields aregroupHeader.pagination.lastItemKeyandgroupHeader.pagination.lastPageIndicator(OpenAPIPagination; Spec p9), where "more pages" meanslastPageIndicator == false. - Spec 1.5.1 (p5) gives
lastItemKeymultiplicity1..1but also says it is needed only whenlastPageIndicatorisfalse. We read it as optional on the first call. - Recommendation: send the received
groupHeader.pagination.lastItemKeywhilelastPageIndicatorisfalse; omit it on the first call; deduplicate in case the keyed item is repeated. - Status: Unconfirmed.
KI-08: Empty range, 200 or 204#
- OpenAPI
200GetTransactionsAccountId: the description allows a response with no entries at all. - Spec 1.6 (p6):
entryhas multiplicity1..n, so at least one. Spec 2.1 (p10) and Manual p5 describe204as a request that is still being processed. - So it is not certain what a quiet day returns.
- Recommendation: accept both
200with an empty or missingentryand204, and cap204retries so a quiet day cannot cause an endless loop. - Status: Unconfirmed.
KI-09: Amount pattern would reject valid amounts#
- OpenAPI
Amounts.amountandAvailability.amount:pattern: ^\d{1,13}$\|^\d{1,13}\.\d{1,5}$. - In the regular expression dialect OpenAPI uses (ECMA-262),
\|is a literal pipe character, not "or". Read strictly, the pattern cannot match any value: we checked1000.50and1000with a standard JavaScript engine and both fail. A strict validator or generated client would therefore reject every amount. The intent is clearly^\d{1,13}(\.\d{1,5})?$, and that works. - Recommendation: do not enable response validation against this pattern. Validate amounts in your own parser.
- Status: Unconfirmed.
KI-10: Date pattern written with slashes#
- OpenAPI
ISODate.pattern:/^\d{4}(-\d\d(...)?)?$/i. OpenAPI patterns are written without surrounding slashes or flags, so a strict validator treats the slashes and theias literal characters. We checked:2026-11-01does not match the pattern as written. - Recommendation: as for KI-09, skip schema pattern validation for dates and check
YYYY-MM-DDyourself. - Status: Unconfirmed.
KI-11: "Total balance" mentioned but not in the schema#
- Spec 1.2 (p3) and the OpenAPI
info.description: both say the response includes a total balance alongside the transactions. - The response tables (Spec 1.6) and the OpenAPI
Reportschema hold onlyentry[]andgroupHeader. The only balance isavailabilityon each entry. - Recommendation: use the
availabilityof the latest entry as the balance after that entry. Do not expect a separate total, opening or closing balance field. - Status: Unconfirmed.
KI-12: One account per call, or bulk#
- Spec 1.2 (p3) and 1.5.2 (p6): one account per request.
- Manual p6 (third-party flow): both single and bulk requests are supported.
- Recommendation: make one call per account. Perhaps "bulk" refers to subscribing several accounts, which would fit both documents.
- Status: Unconfirmed.
KI-13: Token URLs given for integration only#
- OpenAPI
securitySchemes.oauth.flows.authorizationCode: authorise and token URLs are onapi.i.fnb.co.za(integration). Theserverslist includes pre-production and production hosts, but no matching OAuth URLs are given. - Manual p3: clients authenticate with signed JWTs, but the exact token request is not shown.
- Statements OpenAPI 1.0.11 (a sister document): gives the production token URL
https://api.fnb.co.za/apigateway/oauth2/token/v2, with the client credentials grant. This suggests the same token path on each host, but it is a different API. - EFT Domestic Payments OpenAPI 1.0 (another sister document): gives the pre-production token URL
https://api.p.fnb.co.za/apigateway/oauth2/token/v2, also with client credentials. - Recommendation: confirm production URLs and the client authentication method with the bank before go-live. See Authentication.
- Status: Unconfirmed.
KI-14: 200 described with an Instruction ID#
- Spec 2.1 (p10):
200is named "Accepted", and its description mentions an instruction ID being generated before the history is returned. - The response has no instruction ID field, and in HTTP
200is "OK" (202is "Accepted"). This wording may come from a sister payments specification. The Statements Spec (2.1, p14) uses the same wording, which supports that. The EFT Domestic Payments Spec (2.1, p17) has the same table, and there an instruction ID really is returned by the payment call, so the wording most likely started there. - Recommendation: treat
200as a normal success with the data in the body. - Status: Unconfirmed.
KI-15: Countries in scope#
- Manual p2: lists South Africa, Lesotho, Zambia, Eswatini and Botswana.
- Catalogue page: offered to business, commercial, corporate and investment clients in South Africa.
- Recommendation: if your account is outside South Africa, confirm availability with the bank. The two may simply reflect different update dates.
- Status: Unconfirmed.
KI-16: Catalogue page mentions the EFT Payment API#
- Catalogue page, "How to get the API": the steps on the Transaction History page tell you to subscribe to the EFT Payment API. This looks like text shared with the payments page.
- Recommendation: subscribe to Transaction History specifically, under the API tab of the Integration Channel.
- Status: Unconfirmed.
KI-17: Reference lengths differ across FNB APIs#
- Transaction History Spec p7: the reference shown (
remittanceInfo.unstructured) is up to 30 characters. - EFT Domestic Payments Spec p11: a payer using that API can send a beneficiary reference of up to 35 characters, and the bank uses only the first 20 for LOAN, TRNS, SBSH and GRCP accounts, and when a beneficiary validates references.
- Open question: whether a 35-character reference is cut to 30 in Transaction History, and from which end.
- Recommendation: design any reference you ask payers to type so the first 20 characters are enough to match it.
- Status: Unconfirmed.
Behaviour that is documented, but easy to miss#
These are not errors, and the documents state them clearly. They just catch people out:
entryIdis not unique; the same value can appear more than once in one date range (Spec 1.6, p6).lastItemKeycannot fetch only what is new since an earlier call (Spec p9); it is not a change feed.- For payments into FNB accounts of type LOAN, TRNS, SBSH or GRCP, the bank uses just the first 20 of the 30 reference characters (Spec p7).
- A zero available balance is reported as
CREDIT(Spec p9). - When the refresh token expires, the subscription has to be repeated (Manual p4).
Open questions we are asking the bank#
- Does the date range filter on
bookingDateorvalueDate? - How far back can
fromDatego, and what is the longest range per call? - Is the order of
entry[]stable, and what is the order within one day? - Is
availabilitythe available or the ledger balance after the entry, and can it change for an entry already returned? - Does the API return only posted entries, or can pending items appear?
- How soon after posting does an entry appear, and what polling frequency do you recommend?
- What are the rate limits behind
429and423? - How does a recalled or reversed credit appear: as a separate
DEBIT, and with the same reference? - Are access and refresh token lifetimes fixed, and do refresh tokens rotate?
- Is source IP allow-listing required?
- Is there a unique bank reference per entry, like
servicerReferencein the Statements API, and can entries from the two APIs be matched to each other? - Is the client credentials grant, declared in the Statements and EFT Domestic Payments OpenAPI files, also available for Transaction History?
- How do an unpaid outgoing payment and an incoming reversal appear in Transaction History: as separate entries, and with which reference?
If you know an answer, we would be glad to hear it at info@thoughtful.co.za.
Changelog#
- 2026-12-01: Copyright and disclaimer notice added.
- 2026-12-01: KI-13 and KI-14 updated with evidence from the Statements documents; two new open questions. Addresses now have no trailing slash. KI-13, KI-14 updated and KI-17 added from the EFT Domestic Payments documents.
- 2026-11-30: Quoted passages rewritten in our own words; each issue keeps its source reference and Unconfirmed status.
- 2026-11-29: First version.
Updated 2026-12-01