A customer portal almost never works in isolation. It takes payments via a gateway, checks addresses through a lookup service, books couriers via a shipping API, and pushes orders into an ERP. From customer service perspective, these integrations are promises to your customer – and each presents a point of failure that may go unnoticed.
Getting these integrations right is not something you do at the end; it is about building a portal that customers will trust over competitors and not abandon at checkout. This guide describes the process of integrating third-party APIs from a maintenance, data integrity, and failure (instead of losing them) perspective.
Services such as Stripe, PayPal, Worldpay, and GoCardless facilitate payment processing. Integration with these services requires the most exacting reliability, security, and idempotency standards; they cannot allow customer payments to be charged twice or lose a payment that has been confirmed.
While services like Loqate, GetAddress, and PostcodeAnywhere help prevent lost deliveries and form drop-offs by address validating and auto completing in real time, your portal would benefit from a fallback option in case the lookup goes down.
Royal Mail, DPD, ParcelForce, and multi-carrier platforms provide automated label generation, tracking numbers, and delivery time estimates. Due to the potential for slowness or rate limits on these APIs, both the timing of requests and queuing are just as important as the connection.
Most portals tend to have a dozen or more external dependencies. A consistent integration approach is worth the effort. Examples of external integrations include tax calculations, identity verification, email/SMS notifications, mapping, accounting, and CRM.
The challenging part is not making the connection but managing the consequences when the connection does not work.
When it comes to wiring up an API, the simple part is getting everything to work because many services provide documentation and a sandbox to test with. However, the practice of engineering is about case failures, like gateways timing out after payments have been made, shipping APIs return a 500, and address services are rate-limited during peak hours.
We make every integration based on the expectation that the third-party… will That means implementing retries with appropriate backoff logic, using idempotency keys to ensure that repeated requests don’t trigger multiple actions, and establishing clear timeouts so that one slow service can’t completely freeze your entire portal.
It is just as important what the customer sees. A raw error should not be shown on screen for a failed integration. Instead, the portal degrades a queued order, ‘we’ll confirm shortly’ message, a manual fallback path — so the person on the other end maintains his confidence even when it is the fault of the supplier.
Monitored, logged, and alerted are all failures to keep your team aware of the problem before your customers do.
How we build integrations that stay reliable
-
Idempotency by defaultAll requests involving changes — be it payments, shipping bookings — are provided unique keys so that duplicate requests cannot be processed. This is by far the most important protection mechanism we have with respect to financial and fulfillment integrations.
-
Retries with intelligent backoffTransient failures are part of business as usual. We do not need to worry about supplier failures when we have automatic retries, exponential backoff and jitter. No intervention is required, and we avoid overwhelming services that are already having problems.
-
Timeouts and circuit breakersEvery service call has a timeout and if a service fails repeatedly, a circuit breaker will set to stop sending requests to the void so your portal won’t experience cascading slowness.
-
Queues for anything that can waitNot every integration has to finish with a request. The customer won’t just to wait for a slow supplier, as we queue and process notifications, label generation and syncs asynchronously.
-
Data integrity checksWe reconcile the system’s expectations of what happened against the third party’s records to automatically resolve or flag for manual review the unusual cases where a payment succeeded but the confirmation was lost.
Maintaining data consistency across systems that were not built to work together.
It can be quite difficult to answer which system truly owns the single version of truth for a piece of data. Data portals, payment providers, and ERPs all store records for the same orders, and as a result, they will always have conflicting data…one will have a refund, another will have a status change. You may be required to manually reconcile data if there is no clear source of truth, and no synchronization strategy.
We establish for each data type, which system is responsible for it, the mechanisms of change propagation, and the methods for resolving conflicts. This is the same level of rigor we apply across a client’s broader estate — refer to our sibling guide on Middleware and Data Sync: Aligning Various Systems For how this expands beyond a single portal.
Third-party API integration: common questions
How this fits into your overall integration strategy
The bigger picture
- System Integration: Connecting Your Business Tools Into One Reliable Flow
- How to Connect Your CRM, ERP, and Finance Systems
Doing it without disruption
- Integrating Legacy Systems Without Replacing Everything at Once
- Middleware and Data Sync: Keeping Multiple Systems in Step
Getting the basics first
- What Is API Integration? A Non-Technical Guide for Business Owners