ThoughtAPI

Docs FNB FNB bank APIs

EFT Domestic Payments API (FNB)

A plain-language guide to FNB's EFT Domestic Payments API, which pays beneficiaries or moves money between your own accounts, reports the status of each instruction, and lists returned (unpaid) payments.

Base URL
https://api.fnb.co.za/apigateway
Version
OpenAPI 1.0, paths v1
Auth
OAuth 2.0 bearer token (flow to be confirmed, see below)
Status
Live

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.

Overview#

This is FNB's API, not ours. It moves money, and we have not integrated it. Nothing we run today can call it.

If we ever build against it, the code will follow the rules on money-moving APIs: isolated from the read-only services, gated by an explicit human approval for every payment, audit logged, and public and small enough to inspect. This page exists so that work, if it happens, starts from a clear reading of the bank's documents.

It is based on the three documents the bank supplies to subscribers:

Short name Document
Manual API EFT Payments Product Configuration Manual, FNB SA, version 02 (7 pages)
Spec API EFT Payments Message Specification, FNB SA, version 03 (20 pages)
OpenAPI Payment Execution API, OpenAPI 3.0.1, API version 1.0

Page numbers below point into those documents. Nothing here has been checked against the live API; anything the documents leave open is marked open question, and anything we infer is marked our reading.

What it does#

Three calls, all in ISO 20022 shapes carried as JSON (Manual p4, Spec 1.1):

  1. Initiate a payment (based on pain.001, customer credit transfer initiation). One message holds one or more payment information groups, often called batches. Each group has one debit account and one or more credits to beneficiaries. The bank validates it and returns an instructionId.
  2. Retrieve the status report for that instructionId (based on pain.002, payment status report). It gives a status for the whole message, for each group and for each transaction, with reason codes when something fails.
  3. Retrieve unpaids: a list of payments that were returned unpaid, filtered by date range and, optionally, by account.

Features you choose when subscribing (Manual p2, p5 and p6):

  • Submit and Release. Every instruction waits for a person to approve it in Online Banking Enterprise before the bank processes it. Without it, instructions are processed straight through with no human step.
  • Itemised or consolidated debits on your own account: one debit per payment, or one debit for the whole batch.
  • Auto-bump: if the execution date is not valid, the bank may move it to the next business day.
  • Proof of payment by email to the beneficiary.
  • Warehousing: future-dated instructions are held until their execution date.
  • Partial processing, and single or bulk payments in one message.

Who can use it#

  • Business, commercial, corporate and investment clients in South Africa (Manual p1). That is narrower than Statements and Transaction History, whose manuals also list Lesotho, Zambia, Eswatini and Botswana.
  • Debit accounts can only be cheque (current) or savings accounts (Spec p9).
  • Onboarding is the same as for the bank's other APIs: subscribe on the Integration Channel in Online Banking Enterprise, unassisted or with help from your bank team, on your own behalf or through a third party (Manual p1 to p2, p5 and p6). See How access works.

Environments#

Environment Base URL
Integration (test) https://api.i.fnb.co.za/apigateway
Pre-production https://api.p.fnb.co.za/apigateway
Production https://api.fnb.co.za/apigateway

Authentication#

As with Statements, the documents describe two flows (see EP-01):

  • The Manual (p2 and p3) describes a client ID and secret from the subscription, signed JWTs for client authentication, and OAuth 2.0 with the authorisation code flow, then refresh tokens, with a new subscription when the refresh token expires.
  • The OpenAPI declares OAuth 2.0 with the client credentials grant and the scope i_can, with the token URL https://api.p.fnb.co.za/apigateway/oauth2/token/v2 (the pre-production host).

Calls carry Authorization: Bearer <access-token>. See also the Transaction History authentication guide.

Endpoints#

POST /paymentExecution/initiate/v1#

Submit a payment instruction of one or more batches; the bank validates it and returns an instructionId.

Auth Bearer access token

NameInTypeDescription
Authorization requiredheaderstringBearer followed by the access token.
groupHeader requiredbodyobjectmessageId (up to 35, unique for every message you ever send), creationDateTime, initiatingPartyName (up to 30), totalNumberOfTransactions and optionally totalControlSum.
paymentInformation requiredbodyarrayOne entry per batch. Each has a paymentInformationId, paymentInformationMethod TRF, optional batchBooking, numberOfTransactions, controlSum, paymentTypeInformationServiceLevelCode, requestedExecutionDate, the debtor, debtorAccount and debtorAgent, and creditTransferTransactionInformation, the list of credits.

Request

bash
curl -X POST "https://api.i.fnb.co.za/apigateway/paymentExecution/initiate/v1" \
  -H "Authorization: Bearer <access-token>" \
  -H "Content-Type: application/json" \
  -d '{
    "groupHeader": {
      "messageId": "EXAMPLE-MSG-20261201-0001",
      "creationDateTime": "2026-12-01T10:00:00",
      "initiatingPartyName": "EXAMPLE (PTY) LTD",
      "totalNumberOfTransactions": 1,
      "totalControlSum": 150.00
    },
    "paymentInformation": [{
      "paymentInformationId": "EXAMPLE-BATCH-0001",
      "paymentInformationMethod": "TRF",
      "batchBooking": false,
      "numberOfTransactions": 1,
      "controlSum": 150.00,
      "paymentTypeInformationServiceLevelCode": "SDVA",
      "requestedExecutionDate": "2026-12-01",
      "debtor": { "name": "EXAMPLE (PTY) LTD" },
      "debtorAccount": { "accountNumber": "<debtor-account-number>", "accountType": "CACC" },
      "debtorAgent": { "branchId": "<branch-code>" },
      "creditTransferTransactionInformation": [{
        "endToEndId": "EXAMPLE-REF-0001",
        "amount": { "currency": "ZAR", "value": 150.00 },
        "creditor": { "name": "EXAMPLE BENEFICIARY" },
        "creditorAccount": { "accountNumber": "<beneficiary-account-number>", "accountType": "CACC" },
        "creditorAgent": { "branchId": "<branch-code>" },
        "remittanceInformationUnstructured": "EXAMPLE INVOICE 1001"
      }]
    }]
  }'

Response

json
{ "instructionId": "<instruction-id>" }
StatusMeaning
204Received but still being validated and processed (Spec 2.1).
400The request failed technical validation. Body has code and text.
401The access token has expired. Get a new access token, then retry with the same messageId (see EP-04).
403The client is not authorised for this service.
429Too many requests.
500The bank could not process the request.
503The service is unavailable.

All example values are our own invention. The examples call the integration (test) host on purpose; test there first, and only point money-moving code at production once the approval gate is in place. The OpenAPI lists no request ID or idempotency header for this call. Duplicate protection rests on messageId and paymentInformationId being unique, see EP-04. With Submit and Release, nothing is paid until a person approves the instruction in Online Banking Enterprise.

GET /paymentExecution/retrieveReport/v1/{instructionId}#

Return the current status of an instruction, for the whole message, each batch and each transaction.

Auth Bearer access token

NameInTypeDescription
instructionId requiredpathstringThe instructionId returned by the initiate call.
Authorization requiredheaderstringBearer followed by the access token.

Request

bash
curl "https://api.i.fnb.co.za/apigateway/paymentExecution/retrieveReport/v1/<instruction-id>" \
  -H "Authorization: Bearer <access-token>"

Response

json
{
  "instructionId": "<instruction-id>",
  "groupHeader": { "messageId": "EXAMPLE-STATUS-0001", "creationDateTime": "2026-12-01T10:00:05" },
  "originalGroupHeader": { "originalMessageId": "EXAMPLE-MSG-20261201-0001", "originalTotalNumberOfTransactions": 1 },
  "groupStatus": "ACSC",
  "originalPaymentInformation": [{
    "originalPaymentInformationId": "EXAMPLE-BATCH-0001",
    "paymentInformationStatus": "ACSC",
    "transactionInfoAndStatus": [
      { "originalEndToEndId": "EXAMPLE-REF-0001", "transactionStatus": "ACSC" }
    ]
  }]
}
StatusMeaning
204No report yet. Poll again later; with Submit and Release this lasts until the instruction is approved.
400The request failed technical validation.
403The client is not authorised for this service.
404Not found.
500The bank could not process the request.

Failure details arrive in statusReasonInformation as a four-character reason code plus a description. Successful items carry no reason.

POST /paymentExecution/retrieveFilteredUnpaids/v1#

Return payments that came back unpaid, for a date range and optionally for chosen accounts, one page at a time.

Auth Bearer access token

NameInTypeDescription
Authorization requiredheaderstringBearer followed by the access token.
startDatebodydate, YYYY-MM-DDStart of the range.
endDatebodydate, YYYY-MM-DDEnd of the range.
accountNumberListbodyarray of stringsOnly unpaids for these accounts. Leave out to get unpaids for every account on the subscription.
pagebodyintegerPage number to return.
pageSizebodyintegerNumber of items per page.

Request

bash
curl -X POST "https://api.i.fnb.co.za/apigateway/paymentExecution/retrieveFilteredUnpaids/v1" \
  -H "Authorization: Bearer <access-token>" \
  -H "Content-Type: application/json" \
  -d '{"startDate": "2026-11-01", "endDate": "2026-11-30", "page": 1, "pageSize": 20}'

Response

json
{
  "groupHeader": {
    "instructionId": "<report-id>",
    "creationDateTime": "2026-12-01T10:00:00",
    "messagePagination": { "lastPageIndicator": true, "currentPageNumber": 1, "totalNumberOfPages": 1 }
  },
  "customerUnpaidsPaymentStatusReportList": [{
    "groupStatus": "RJCT",
    "originalPaymentInformation": [{
      "debtorAccount": "<debtor-account-number>",
      "originalPaymentInformationId": "EXAMPLE-BATCH-0001",
      "paymentInformationStatus": "RJCT",
      "transactionInfoAndStatus": [{
        "creditorAccount": "<beneficiary-account-number>",
        "amount": { "currency": "ZAR", "value": 150.00 },
        "originalEndToEndId": "EXAMPLE-REF-0001",
        "transactionStatus": "RJCT",
        "statusReasonInformation": [{ "reason": "<code>", "additionalInformation": "<description>" }]
      }]
    }]
  }]
}
StatusMeaning
400The request failed technical validation.
403The client is not authorised for this service.
500The bank could not process the request.

This call is described only in the OpenAPI; the Spec covers initiation and the status report.

The error body, per the OpenAPI, has two required fields: code and text (1 to 255 characters). Note this differs from the Statements error body (status, message, details).

Rules worth knowing before sending money#

From the Spec (pages 5 to 12) and Manual p3, in our words:

  • messageId must be unique for every message your Integration Channel profile ever sends (the Spec says the period is currently indefinite). It is the natural guard against paying twice.
  • Amounts have at most 2 decimals; more makes the transaction fail. Up to 13 digits in total.
  • Beneficiary reference (remittanceInformationUnstructured): 1 to 35 characters, shown on the beneficiary's statement. For FNB accounts of type LOAN, TRNS, SBSH or GRCP only the first 20 characters are used, and where a beneficiary validates references, only the first 20 are checked.
  • endToEndId: up to 30 characters. With itemised processing it is the reference on your own statement.
  • paymentInformationId: with consolidated processing it is the batch reference on your own statement.
  • batchBooking: true posts one debit for the batch, and any failed payment comes back as a separate reversal entry on your account. false posts one debit per successful payment. If left out, the subscription preference applies; the request value wins when present.
  • Names of debtor and creditor are up to 30 characters. Account numbers up to 23, branch codes 6 digits; for a Global Recipient Account (GRCP) the branch code is zero and only SDVA is allowed.
  • Account types: CACC, LOAN, SVGS, TRAN, SBSH (subscription share), GRCP (global recipient account) (Spec 2.3).

Service levels and timing#

paymentTypeInformationServiceLevelCode sets when the payment clears (Spec 2.4):

Code Meaning, in our words
SDVA Same day. Your debit is immediate. Credits to FNB accounts show immediately; credits to other banks go in the end-of-day batch and show by the next morning.
URGP Urgent, settled through RTGS within about an hour, at an extra charge.
ONED Send one day before the execution date. Funds are reserved at once; the credit shows at the start of the execution date.
TWOD Send two days before. Settled in the end-of-day batch on the execution date.

The Manual's cut-off table (p3), summarised:

Service Monday to Friday Saturday Posted
Same day 20:00 to FNB/RMB, 16:45 to other banks 20:00 to FNB/RMB, 10:15 to other banks Next business day after cut-off; value date is the action date
One day 16:45, one business day before 10:15 Morning of the action date
Two day 14:45, one business day before 08:45 Morning of the action date
Pay and Clear Now 20:00 to FNB/RMB, 16:00 to NPS banks 20:00 to FNB/RMB, 10:00 to NPS banks Immediately

Sundays and public holidays are not business days. The Manual also notes that Real Time Clearing is temporarily switched off, so Pay and Clear Now payments go through RTGS, and payments of R5 million or more follow the national payment system cut-offs. Times are South African time (our reading).

Status codes#

Code Meaning, in our words
ACSC Processed. Settled if the beneficiary banks with FNB; otherwise queued for the day-end clearing.
ACSP Accepted and held (warehoused) for a later date.
ACWC Accepted with a change, for example the date was moved on by one business day.
PDNG Pending; more checks to come.
PART Some transactions accepted, others not yet or rejected.
RJCT Rejected.

The group status sums up a bulk message; each transaction has its own transactionStatus. Reason codes are four characters, and the Spec refers to a separate error code document that we have not seen.

Known issues and doc clarifications#

These documents carry a lot of practical detail, such as the cut-off table and the service levels, that is often missing elsewhere. A few points differ between the three documents or could be clearer. All are Unconfirmed.

EP-01: Authorisation code or client credentials, and which token host#

  • Manual p2 and p3: authorisation code flow with refresh tokens.
  • OpenAPI: client credentials grant, token URL on the pre-production host. The Statements OpenAPI gives the same path on the production host, and the Transaction History OpenAPI on the integration host.
  • Recommendation: use the token path /apigateway/oauth2/token/v2 on the same host as the API you call, and confirm the flow with the bank.

EP-02: Method names in the Manual and paths in the OpenAPI#

  • Manual p4 names the methods POST paymentExecution, GET retrievePaymentReport and POST retrieveUnpaidsReport. The OpenAPI paths are /paymentExecution/initiate/v1, /paymentExecution/retrieveReport/v1/{instructionId} and /paymentExecution/retrieveFilteredUnpaids/v1.
  • Recommendation: call the OpenAPI paths; the Manual names read as friendly labels.

EP-03: Unpaids not in the Spec#

  • The Spec covers initiation and the status report only. The unpaids call and its paging fields (page, pageSize, messagePagination) appear only in the OpenAPI.
  • Open question: field rules and lengths for unpaids, and whether an unpaid also appears as a credit back on the debit account.

EP-04: No request or idempotency header#

  • Unlike Transaction History (X-Request-ID, X-Idempotency-ID) and Statements (X-Request-ID), the payments OpenAPI lists no such header.
  • Open question: if a call times out and the same message is sent again with the same messageId, does the bank reject it as a duplicate? We would only ever retry with the same messageId, and check the status report before resending.

EP-05: HTTP status lists differ#

  • Spec 2.1: 200, 204, 400, 401, 403, 404, 429, 500, 503. OpenAPI: 200, 400, 403, 500 for each call.
  • Recommendation: handle the full list.

EP-06: Reference lengths#

  • endToEndId is up to 30 in the request (Spec p10), but originalEndToEndId is up to 20 in the status report (Spec p15).
  • The beneficiary reference is up to 35 here, while Transaction History reports up to 30 for the reference it shows.
  • Recommendation: keep references to 20 characters or fewer until the bank confirms how longer ones are carried.

EP-07: Some OpenAPI wording comes from sister documents#

  • A few descriptions mention debit orders and collections (the credit transfer list, originalEndToEndId), the creditor's name is described as the party that owes money, and the unpaids page count is described as notification pages. The Spec's descriptions read correctly.
  • The batchBooking description in the OpenAPI looks like an editing note rather than documentation; Spec p7 has the full description.
  • Several OpenAPI examples look like they came from internal testing. We have not reproduced them, and suggest neutral placeholders would serve readers better.
  • Recommendation: rely on the Spec where the two differ.

EP-08: Amounts typed as floating point#

  • The OpenAPI types amounts as number, format: float, while the Spec limits them to 2 decimals.
  • Recommendation: build amounts from integer cents and format them with exactly two decimals; never pass binary floating point values through.

EP-09: initiatingPartyName guidance#

  • Spec p5: when no system operator or third party initiates the payment, the field should hold the creditor name. Since the initiating party is usually the paying client (the debtor), this may be meant to say the client's own name.
  • Open question: which name the bank expects here.

EP-10: Account type code for transmission accounts#

  • The account type table lists TRAN, while the 20-character rule names TRNS. The Transaction History Spec has the same pairing.
  • Recommendation: use TRAN in requests; read the 20-character rule as covering transmission accounts.

EP-11: Two-day submission lead time#

  • Manual p3: the cut-off table shows two-day payments submitted one business day before the action date.
  • Spec 2.4: TWOD instructions are sent two days before the execution date.
  • Recommendation: submit two business days ahead, which satisfies both readings.

Open questions we are asking the bank#

  1. Which OAuth flow applies, and is the client credentials grant available (EP-01)?
  2. Is a repeated messageId rejected as a duplicate (EP-04)?
  3. How does an unpaid or reversed payment appear in Transaction History: as a separate credit, and with which reference?
  4. Where is the reason code list that the Spec refers to?
  5. Can Submit and Release be required for every instruction on a subscription, so no payment can skip human approval?

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: First version, from the EFT Payments Manual v02, Spec v03 and OpenAPI 1.0.

Updated 2026-12-01