Payments Training Hub
Application programming interfaces PAYMENT OPERATIONS STARTED LIVE 01 Application programming interfaces - known as APIs, are the standard way ACTIVE 02 Messaging queues - when the sender and the receiver do not need QUEUED 03 Files remain the right choice - transfers, because they are simple, QUEUED 04 Modern file integration - adds a checksum and a record count to catch QUEUED 05 Event - order can show a payment as settled before QUEUED 06 Without that map - landscape becomes a tangle that nobody can QUEUED Application programming interfaces, known as APIs, are the standard way for one system to ask another system to do something and receive an immediate answer. Step 1 of 6 Application programming interfaces STARTED Application programming interfaces known as APIs, are the standard way for one ACTIVE Messaging queues when the sender and the receiver do not QUEUED Files remain the right choice transfers, because they are simple, QUEUED Modern file integration adds a checksum and a record count to catch QUEUED Event order can show a payment as settled before QUEUED Without that map landscape becomes a tangle that nobody can QUEUED Application programming interfaces, known as APIs, are the standard way for one system to ask another system to do something and receive an immediate answer.
Messaging queues provide reliable delivery PAYMENT OPERATIONS IN PROGRESS LIVE 01 Application programming interfaces - known as APIs, are the standard way DONE 02 Messaging queues - when the sender and the receiver do not need ACTIVE 03 Files remain the right choice - transfers, because they are simple, QUEUED 04 Modern file integration - adds a checksum and a record count to catch QUEUED 05 Event - order can show a payment as settled before QUEUED 06 Without that map - landscape becomes a tangle that nobody can QUEUED Messaging queues provide reliable delivery when the sender and the receiver do not need to be available at the same time. Step 2 of 6 Messaging queues provide reliable delivery IN PROGRESS Application programming interfaces known as APIs, are the standard way for one DONE Messaging queues when the sender and the receiver do not ACTIVE Files remain the right choice transfers, because they are simple, QUEUED Modern file integration adds a checksum and a record count to catch QUEUED Event order can show a payment as settled before QUEUED Without that map landscape becomes a tangle that nobody can QUEUED Messaging queues provide reliable delivery when the sender and the receiver do not need to be available at the same time.
Files remain the right choice for bulk PAYMENT OPERATIONS IN PROGRESS LIVE 01 Application programming interfaces - known as APIs, are the standard way DONE 02 Messaging queues - when the sender and the receiver do not need DONE 03 Files remain the right choice - transfers, because they are simple, ACTIVE 04 Modern file integration - adds a checksum and a record count to catch QUEUED 05 Event - order can show a payment as settled before QUEUED 06 Without that map - landscape becomes a tangle that nobody can QUEUED Files remain the right choice for bulk transfers, because they are simple, auditable, and easy to handle in large volumes. Step 3 of 6 Files remain the right choice for bulk IN PROGRESS Application programming interfaces known as APIs, are the standard way for one DONE Messaging queues when the sender and the receiver do not DONE Files remain the right choice transfers, because they are simple, ACTIVE Modern file integration adds a checksum and a record count to catch QUEUED Event order can show a payment as settled before QUEUED Without that map landscape becomes a tangle that nobody can QUEUED Files remain the right choice for bulk transfers, because they are simple, auditable, and easy to handle in large volumes.
Modern file integration PAYMENT OPERATIONS IN PROGRESS LIVE 01 Application programming interfaces - known as APIs, are the standard way DONE 02 Messaging queues - when the sender and the receiver do not need DONE 03 Files remain the right choice - transfers, because they are simple, DONE 04 Modern file integration - adds a checksum and a record count to catch ACTIVE 05 Event - order can show a payment as settled before QUEUED 06 Without that map - landscape becomes a tangle that nobody can QUEUED Modern file integration adds a checksum and a record count to catch corruption in transit. Step 4 of 6 Modern file integration IN PROGRESS Application programming interfaces known as APIs, are the standard way for one DONE Messaging queues when the sender and the receiver do not DONE Files remain the right choice transfers, because they are simple, DONE Modern file integration adds a checksum and a record count to catch ACTIVE Event order can show a payment as settled before QUEUED Without that map landscape becomes a tangle that nobody can QUEUED Modern file integration adds a checksum and a record count to catch corruption in transit.
Event that arrives out PAYMENT OPERATIONS IN PROGRESS LIVE 01 Application programming interfaces - known as APIs, are the standard way DONE 02 Messaging queues - when the sender and the receiver do not need DONE 03 Files remain the right choice - transfers, because they are simple, DONE 04 Modern file integration - adds a checksum and a record count to catch DONE 05 Event - order can show a payment as settled before ACTIVE 06 Without that map - landscape becomes a tangle that nobody can QUEUED An event that arrives out of order can show a payment as settled before it shows it as sent, which confuses both customers and auditors. Step 5 of 6 Event that arrives out IN PROGRESS Application programming interfaces known as APIs, are the standard way for one DONE Messaging queues when the sender and the receiver do not DONE Files remain the right choice transfers, because they are simple, DONE Modern file integration adds a checksum and a record count to catch DONE Event order can show a payment as settled before ACTIVE Without that map landscape becomes a tangle that nobody can QUEUED An event that arrives out of order can show a payment as settled before it shows it as sent, which confuses both customers and auditors.
Without that map PAYMENT OPERATIONS COMPLETE LIVE 01 Application programming interfaces - known as APIs, are the standard way DONE 02 Messaging queues - when the sender and the receiver do not need DONE 03 Files remain the right choice - transfers, because they are simple, DONE 04 Modern file integration - adds a checksum and a record count to catch DONE 05 Event - order can show a payment as settled before DONE 06 Without that map - landscape becomes a tangle that nobody can ACTIVE Without that map, the landscape becomes a tangle that nobody can change safely. Step 6 of 6 Without that map COMPLETE Application programming interfaces known as APIs, are the standard way for one DONE Messaging queues when the sender and the receiver do not DONE Files remain the right choice transfers, because they are simple, DONE Modern file integration adds a checksum and a record count to catch DONE Event order can show a payment as settled before DONE Without that map landscape becomes a tangle that nobody can ACTIVE Without that map, the landscape becomes a tangle that nobody can change safely.

Key points of this lesson, in order.

0:00 / 3:27 Step 1 of 6

APIs, Messaging Queues, Files and Event Streaming

Banking Integration Patterns, Lesson 5 of 9, Narration 3:27, D10 APIs and integration

Payment hubSettlementpain.001

What you will learn

Your objective. By the end of this lesson, you will be able to explain APIs, messaging queues, files and event streaming. Application programming interfaces, known as APIs, are the standard way for one system to ask another system to do something and receive an immediate answer.

Why it matters. This matters because APIs and integrations are how systems talk to each other. A badly specified API is a failed payment, a duplicate, or a security hole.

Chapter objective: Learner explains banking integration patterns, including file transfer, messaging, APIs, and event streaming, and selects the right pattern for a given payment integration need. Learner demonstrates this skill using realistic banking examples, explaining each step clearly and using correct terminology throughout.

Key learning points

  • Application programming interfaces
  • Messaging queues provide reliable delivery
  • Files remain the right choice for bulk
  • Modern file integration
  • Event that arrives out
  • Without that map

Key terms

Payment hub: A central system in a bank that receives payment instructions from all channels, validates them, applies screening and routing rules, and sends them to the correct clearing system or correspondent.

Settlement: The final movement of funds between banks to discharge obligations created by cleared payments. Settlement is usually made in central bank money or through correspondent accounts.

pain.001: An ISO 20022 message a customer sends to its bank to instruct one or more credit transfers. It carries payment information, debtor and creditor details, amount, execution date and remittance data.

Banking architecture diagram showing APIs, Messaging Queues, Files and Event Streaming.

Practise this lesson

Exercise

Write the request and the expected response for the API call described in this lesson.

Use the API resources, operations and fields named in this lesson.

  1. What to do. Write the JSON request with the required fields, the success response, and one error response with its error code.

Correct result. A correct request has all mandatory fields, a valid idempotency key, and the right resource and operation. The success response confirms acceptance, and the error response names the field or rule that failed.

Why. An API contract is a promise between two systems. If the request is wrong, the API must reject it cleanly, not fail silently.

Check your understanding

Practice question

Which of the following best describes APIs, messaging queues, files and event streaming?

Takeaway and next step

What to remember

A bank that publishes an API without versioning forces every consumer to change whenever the API changes, which quickly becomes unmanageable.

Call the API described in this lesson with a valid request, then with a missing field, and compare the responses.

Open the API Playground →

Builds on "Gateway, Aggregator and Third-Party Service Integration".

Transcript and full text

Show transcript

Application programming interfaces, known as APIs, are the standard way for one system to ask another system to do something and receive an immediate answer. A channel system calls a payment API with a JSON request, and the API returns a confirmation or a rejection within seconds. The pain.001 is a different thing: it is an XML payment initiation message, normally carried as a file or as a message between systems, not as an API payload. A payment API accepts a JSON request that describes the payment, while the pain.001 XML is the format the instruction takes when it travels as a message or a file. REST APIs use standard web protocols and JSON messages, which makes them easy to build and test. Good APIs are versioned, so that version one continues to work while version two adds new fields, and they are documented with examples, error codes, and limits. A bank that publishes an API without versioning forces every consumer to change whenever the API changes, which quickly becomes unmanageable. Messaging queues provide reliable delivery when the sender and the receiver do not need to be available at the same time. A payment hub places a pacs.008 message on a queue, and the receiving system collects it when it is ready, even if it was down for an hour. Queues guarantee that a message is delivered at least once, which means a receiver must handle duplicate deliveries. Ordering is not guaranteed by a queue in general. Only a FIFO or ordered queue, or a single ordered partition in an event stream, preserves order, and that ordering guarantee is what a designer relies on when a debit must be processed before a credit. A standard queue can deliver messages out of order, so a system that needs ordering must choose an ordered queue or partition, not assume one. The cost is complexity, because the consumer must handle duplicate deliveries and must acknowledge each message after processing it. Queues are ideal for high-volume flows, such as the 20,000 direct debits that arrive in a morning batch. Files remain the right choice for bulk transfers, because they are simple, auditable, and easy to handle in large volumes. A corporate customer sends a file with 5,000 supplier payments totalling EUR 1.2 million, and the bank processes it as a single unit with a single control total. Files are also the standard format for scheme settlement reports and for regulatory submissions, where a complete and signed record matters more than speed. The weakness of files is latency, because nothing is processed until the file arrives, and error handling must be designed per record so that one bad payment does not reject 4,999 good ones. Modern file integration adds a checksum and a record count to catch corruption in transit. Event streaming treats every change as an event that any interested system can consume. When a payment status changes from pending to settled, the hub publishes an event, and the notification service, the data warehouse, and the customer app all receive it at the same time. This decouples the systems, because the hub does not need to know who is listening, and new consumers can be added without changing the hub. Event streaming is powerful for real-time reporting and for customer notifications, but it needs careful design around ordering, replay, and retention. An event that arrives out of order can show a payment as settled before it shows it as sent, which confuses both customers and auditors. Most banks use all four styles together, and the skill lies in choosing the right one for each connection. A real-time customer payment uses an API for the request and event streaming for the status updates. A bulk salary file uses file transfer for the instructions and a messaging queue for the internal processing. A scheme connection uses a queue for guaranteed delivery and a file for the end-of-day settlement report. The integration architect documents each choice in an integration map that names the transport, the format, the frequency, and the owner for every connection. Without that map, the landscape becomes a tangle that nobody can change safely.

Application programming interfaces, known as APIs, are the standard way for one system to ask another system to do something and receive an immediate answer. A channel system calls a payment API with a JSON request, and the API returns a confirmation or a rejection within seconds. The pain.001 is a different thing: it is an XML payment initiation message, normally carried as a file or as a message between systems, not as an API payload. A payment API accepts a JSON request that describes the payment, while the pain.001 XML is the format the instruction takes when it travels as a message or a file. REST APIs use standard web protocols and JSON messages, which makes them easy to build and test. Good APIs are versioned, so that version one continues to work while version two adds new fields, and they are documented with examples, error codes, and limits. A bank that publishes an API without versioning forces every consumer to change whenever the API changes, which quickly becomes unmanageable.

Messaging queues provide reliable delivery when the sender and the receiver do not need to be available at the same time. A payment hub places a pacs.008 message on a queue, and the receiving system collects it when it is ready, even if it was down for an hour. Queues guarantee that a message is delivered at least once, which means a receiver must handle duplicate deliveries. Ordering is not guaranteed by a queue in general. Only a FIFO or ordered queue, or a single ordered partition in an event stream, preserves order, and that ordering guarantee is what a designer relies on when a debit must be processed before a credit. A standard queue can deliver messages out of order, so a system that needs ordering must choose an ordered queue or partition, not assume one. The cost is complexity, because the consumer must handle duplicate deliveries and must acknowledge each message after processing it. Queues are ideal for high-volume flows, such as the 20,000 direct debits that arrive in a morning batch.

Files remain the right choice for bulk transfers, because they are simple, auditable, and easy to handle in large volumes. A corporate customer sends a file with 5,000 supplier payments totalling EUR 1.2 million, and the bank processes it as a single unit with a single control total. Files are also the standard format for scheme settlement reports and for regulatory submissions, where a complete and signed record matters more than speed. The weakness of files is latency, because nothing is processed until the file arrives, and error handling must be designed per record so that one bad payment does not reject 4,999 good ones. Modern file integration adds a checksum and a record count to catch corruption in transit.

Event streaming treats every change as an event that any interested system can consume. When a payment status changes from pending to settled, the hub publishes an event, and the notification service, the data warehouse, and the customer app all receive it at the same time. This decouples the systems, because the hub does not need to know who is listening, and new consumers can be added without changing the hub. Event streaming is powerful for real-time reporting and for customer notifications, but it needs careful design around ordering, replay, and retention. An event that arrives out of order can show a payment as settled before it shows it as sent, which confuses both customers and auditors.

Most banks use all four styles together, and the skill lies in choosing the right one for each connection. A real-time customer payment uses an API for the request and event streaming for the status updates. A bulk salary file uses file transfer for the instructions and a messaging queue for the internal processing. A scheme connection uses a queue for guaranteed delivery and a file for the end-of-day settlement report. The integration architect documents each choice in an integration map that names the transport, the format, the frequency, and the owner for every connection. Without that map, the landscape becomes a tangle that nobody can change safely.

Full lesson text (all scenes)

Completing a lesson updates your progress dashboard on the homepage.

Scene timestamps are estimated by allocating the narration text proportionally across the real audio length. The audio playback position is the source of truth: pause freezes the visual, seeking restores the correct scene, replay restarts the scene animation.