API Payment Integration eBook
Integrate cross border payment APIs into your webs
by Baer Jacinto
Integrate cross border payment APIs into your website or ERP for automated collections.
Formats
Free sample
Chapter 1: The Invisible Settlement--–- The first time I watched a $250,000 cross-border payment disappear, I was sitting in a glass-walled conference room overlooking the Chicago River. The finance director of a manufacturing firm had just initiated a wire transfer to a supplier in Vietnam. She clicked “send” in her bank’s portal. The money left her account. A confirmation screen appeared with a transaction ID.
She closed her laptop, satisfied. Three weeks later, the supplier emailed: “Where is our money?”What happened in those three weeks is the subject of this chapter. The payment had not disappeared in any magical sense. It had entered a system that was not designed to be visible. It was processed by three correspondent banks, converted from USD to VND at an unknown rate, assessed hidden intermediary fees, and finally deposited into the supplier’s account—minus $1,200 in deductions that no one could explain.
The transaction ID from the original bank portal was useless for tracking. The supplier’s bank statement showed only the final amount, not the deductions. The finance director spent eight hours on the phone with three banks, two of which refused to speak to her because she was not their direct customer.This is not an edge case. This is the normal operation of cross-border payments. And until you understand why it happens—at the level of message formats, correspondent banking relationships, and settlement mechanics—you will build API integrations that fail in exactly the same way.
You will have transaction IDs that lead nowhere, statuses that lie, and finance teams that still spend Mondays in spreadsheets.The Architecture of Obscurity Cross-border payments are not a single transfer of value from point A to point B. They are a relay race. Your bank passes money to a correspondent bank, which passes it to another correspondent bank, which finally passes it to the beneficiary’s bank. Each handoff is an opportunity for friction, delay, and deduction.The system was designed this way for historical reasons. Before electronic messaging, banks maintained nostro and vostro accounts—reciprocal accounts held in each other’s names.
A payment from a US bank to a Vietnamese bank would move through a series of these bilateral relationships, with each bank deducting a fee for the service. The system worked, but it was never designed for transparency. Each bank knows only its immediate neighbors in the chain. No single participant sees the whole path.SWIFT (the Society for Worldwide Interbank Financial Telecommunication) was created to standardize the messages that banks send each other. It succeeded brilliantly at standardization.
A SWIFT MT103 message—the most common format for customer credit transfers—has fields for sender, receiver, amount, currency, and a single line of remittance information. But SWIFT standardized the message, not the visibility. The MT103 tells you that a payment was sent. It does not tell you where it is.The upgraded version, SWIFT gpi (global payments innovation), adds tracking. Each bank in the chain reports when it receives and forwards the payment.
You can see the payment move from New York to London to Singapore to Ho Chi Minh City. But gpi adoption is uneven. Not every bank supports it. And even when they do, the tracking data is often delayed by hours or days. The finance director in Chicago had initiated her wire through a bank that supported gpi, but the supplier’s bank in Vietnam did not.
The tracking stopped at the last correspondent bank that supported gpi, leaving a four-day gap before final settlement.ISO 20022 is the future. It is a richer, more flexible messaging standard that can carry structured remittance data, invoice details, and even attachments. A payment sent via ISO 20022 can include a complete digital invoice as XML or JSON. The receiving ERP can parse that data automatically, matching the payment to the invoice without human intervention. But as of 2026, ISO 20022 is still rolling out.
High-value payment systems in the US (Fedwire), Europe (TARGET2), and the UK (CHAPS) have migrated. Many regional and local banks have not. Your integration must handle MT, gpi, and ISO 20022 simultaneously, because you will receive all three.The Correspondent Banking Labyrinth To understand why your API status fields are often wrong, you need to understand correspondent banking. A correspondent bank is simply a bank that holds accounts for other banks. When Bank of America wants to send a payment to a small bank in Indonesia that it does not have a direct relationship with, it sends the payment to a larger correspondent bank—say, JPMorgan Chase—that does have a relationship with an Indonesian correspondent bank, which then sends it to the final beneficiary bank.Each correspondent bank in the chain can deduct a fee.
These fees are not published. They are negotiated bilaterally between banks. They can be flat amounts (e.g., $25 per transaction) or percentages (e.g., 0.1% of value). They are rarely communicated to the sender. When the final amount arrives at the beneficiary bank, it is less than the amount sent.
The difference is invisible unless you have access to the intermediary’s internal records, which you do not.This is why the finance director could not explain the 1,200deduction.Thefirstcorrespondentbanktook1,200 deduction. The first correspondent bank took 1,200deduction.Thefirstcorrespondentbanktook15. The second took 25plusacurrencyconversionspread.Thethirdtook0.225 plus a currency conversion spread. The third took 0.2% of the remaining value as a “handling fee.” The final bank added a 25plusacurrencyconversionspread.Thethirdtook0.220 incoming wire fee. No single bank owed her an explanation because no single bank had taken more than a small portion.
The cumulative effect was large.Your API integration must account for this. If you are the sender, you can request that fees be deducted from the amount (so the beneficiary receives less) or charged to the sender (so you see a separate fee line item). Most APIs default to deducting from the amount. Your system must be able to ingest the final settled amount from the webhook and compare it to the intended amount. The difference is a fee, and it must be posted to your general ledger as a bank fee expense, not written off as a loss.If you are the receiver, you face the same problem in reverse.
An incoming cross-border payment may arrive less than the invoice amount because of intermediary fees. Your auto-reconciliation logic (Chapter 5) must handle partial matches, create credit memos for the difference, or automatically post the difference as a fee expense depending on your agreement with the payer.The Data Loss Problem Here is a specific, replicable problem that has wasted thousands of engineering hours. A buyer sends a payment with a reference field of “INV-2025-001234”. The buyer’s bank includes this reference in the SWIFT MT103, field 70 (Remittance Information). The first correspondent bank passes it unchanged.
The second correspondent bank truncates the field from 35 characters to 20 characters, producing “INV-2025-0012”. The third correspondent bank converts the message from MT to a proprietary internal format and back, losing the reference entirely. The beneficiary’s bank receives the payment with a blank reference field.Your payment provider’s API will report the payment as settled, but with an empty reference. Your ERP cannot match it to an invoice. The payment goes to…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Baer Jacinto
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Business Brief, API
- Released
- 2026-05-30
- Pages (approx.)
- 126
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Baer Jacinto
Pet Loss MeditationBaer Jacinto$11.99
Dream Premonition LogBaer Jacinto$11.99
Walking Meditation in RehabBaer Jacinto$11.99
The Rhyme and Song MethodBaer Jacinto$11.99
Yoga Nidra Nap GuideBaer Jacinto$11.99
Story Method for Random FactsBaer Jacinto$11.99
Honor Your HungerBaer Jacinto$11.99
Financial Goal Action PlanBaer Jacinto$11.99
The Starlight Philanthropists: How Black Industrialists Funded the FutureBaer Jacinto$11.99
The Ballarat Goldfields Conspiracy: Australia's Forgotten Mob TrialBaer Jacinto$11.99
A Collector's Handbook to the Lancia 2000hfBaer Jacinto$11.99
Cooperative Succession PlanningBaer Jacinto$12.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99