A successful API response is not settlement
A payment platform has several related but different records: the customer request, internal posting, processor result, settlement obligation and bank movement. Reconciliation compares these records using stable identifiers and amounts. It should not silently make one database agree with another by overwriting unexplained differences.
Define the system of record for each fact. Keep amounts in a consistent currency-aware representation and document treatment of fees, reversals and rounding. Use an immutable reference for each instruction and preserve the original external references. A later status update should not erase the evidence of what was known earlier.
Make retries safe
A network timeout means the result is unknown, not necessarily that the payment failed. Re-query the provider using the original reference before issuing a replacement financial instruction. Use idempotency controls at the business-operation boundary and keep a durable attempt record before transmission. An HTTP retry without an operation-level identity can debit a customer twice.
Process signed webhooks as potentially repeated and out of order. Verify authenticity, record the event identifier, apply a state transition only once, and reconcile independently if the webhook never arrives. Do not mark settlement complete merely because a webhook says the customer payment was accepted.
Give exceptions an owner
Maintain queues for unmatched amounts, missing settlement, unexpected reversals and duplicate references. Each exception needs an age, monetary value, owner and resolution evidence. An adjustment should be a separately authorised posting with an audit trail, not a direct edit to the original transaction.
Test a delayed webhook, duplicate webhook, bank-file discrepancy, partial settlement and interrupted recovery. Include an end-of-day report that can be regenerated with the same inputs. Export only the fields needed by the recipient and restrict access to personal and account information.
Technology does not confer a financial licence
REVTEK provides software engineering and integration services. The regulated entity remains responsible for its permissions, customer funds, compliance and operational controls. Determine the applicable regulatory requirements before selecting a product architecture, and obtain specialist review before treating a technical design as compliant.
Sources and further reading
Original engineering explanation by REVTEK. Standards and operating requirements should be checked against the applicable implementation and release.
Primary reference / further readingRelated reading
EPC and IMS · Payment reconciliation · RevCore capability status
