The API Docs Are Complete — So Why Is the Integration Still a Month Late?
The easiest explanation for a late integration is that "the other side isn't cooperating." That explanation is usually inaccurate, and it doesn't solve anything. Complete documentation proves one thing only: the other party knows which endpoints and fields their own system has. It does not prove that both sides understand the same sentence the same way, and it does not prove that they have scheduled time for you this month.
Our view: integration drags on not because the code is hard to write, but because at kickoff the API was treated as a document that can be forwarded rather than a deliverable that both sides must accept together. A document can be provided unilaterally; a deliverable requires agreed content, environment, owner, and acceptance criteria. Skip one layer of agreement and you pay for it later in rework.
If you are evaluating a project that must connect to a third-party system, ask four questions first: how many states are there, what happens on failure, who is available to help this month, and who is accountable when something breaks. If two of the four cannot be answered, the schedule should not be estimated on the basis of "the API is already provided."
1. Why integrations always stall when they are "almost done"
In a custom system, most of the development effort sits in visible places: pages, workflows, reports, permissions. But what decides whether you ship on time is often the seam between two systems. That seam produces no interface of its own, yet it drags scheduling, ownership, and acceptance into the project.
Under the word "integration" there are actually three very different kinds of work:
- Internal enterprise systems — ERP, finance, CRM, a business database from a decade ago. The difficulty is people: the other side's IT has its own schedule, permission approvals, and change windows; what you receive may be a three-year-old document whose author has already left.
- External platforms — payments, logistics, SMS, e-invoices, maps. The difficulty is rules: qualifications, review, limits, fees, and filing for callback domains. These are not development tasks, but they block development.
- Hardware and devices — access control, charging piles, sensors, printers. The difficulty is on site: protocol versions, firmware behavior, network conditions, and data backfill after a disconnection. If any of these differs from the lab, integration testing starts over.
Folding these three into a single "API integration" line item when estimating is where many projects begin to lose speed mid-way. Their risks differ, and so do their verification methods; they cannot share one plan.
There is a less visible reason too: the two sides do not share the same goal. Your goal is to go live this month; the other side's integration engineer wants to avoid trouble for the production system. That is not non-cooperation; it is a normal difference in risk appetite. If your plan leaves the other side no low-risk window, they will protect themselves with "let's wait a bit," and you will read that as delay.
2. Five places that decide whether an integration can stay on schedule
The five items below are not a scorecard but five judgment points that can change the conclusion. Each needs evidence, not a verbal "no problem."
2.1 Is the business semantics closed?
A field list tells you that status is an integer, but not whether 3 means "paid" or "refunding," nor whether 3 can revert to 1. The real work of integration lies in translating the other side's state machine into yours and deciding what to do with the cases they never defined: is a timeout a failure or an unknown? Does a duplicate callback count as a new order? Can a cancelled request be re-initiated?
These disagreements never show up in the documentation; they show up on day three of integration testing as "an order that doesn't match." The way to get evidence is to ask for a state-transition description or a state dictionary, not just a field table. If no document exists, walk through three to five real business scenarios verbally and record the answers in the meeting minutes on the spot.
2.2 Can the environment actually be used?
"We have a test environment" needs to be broken down: does the test account have permissions, is the test data a de-identified copy of the real structure, do test-environment rules match production, and can you deliberately create the exception states you need?
Limits, review, and signature validation are often two different logics in test and in production. Many projects spend their entire first week here: the account application needs approval, the test merchant number is pending, the sandbox does not support one business type, and in the end you can only do small-amount verification in production. None of this is solved by writing code, but all of it counts against your schedule.
2.3 Boundary conditions: a call that works is not a system that holds
One successful call and a hundred thousand successful calls a day are two different systems. Confirm in advance: what the rate limit is, how timeouts are set, how many retries are allowed, whether retries cause duplicate charges or duplicate shipments, whether the callback URL is reachable from the public internet, and whether the other side has a fixed maintenance window.
The most commonly overlooked point here is idempotency. If the same request is resent after a timeout, will the other side treat it as two transactions? If they do not provide an idempotency key, you must de-duplicate on your side, and reliable de-duplication depends on a stable business number — which usually means changing the table structure. The later this decision is made, the more it costs.
2.4 Ownership and people: who is making room in their schedule for you this month
The most common concrete cause of a delayed integration is not technology but "I can't find the right person." You need names: who owns the API on their side, who can grant permissions, who can approve the test environment, and whether problems go through a ticket or a group chat. And a question nobody asks: when their API changes, how far in advance are you notified, and who receives the notice?
If the other side is a large enterprise or an overseas team, also confirm time zone, language, and working days. One cross-time-zone confirmation round trip is two days; five round trips are two weeks — and none of it appears on any Gantt chart.
2.5 Cost and compliance: some money and paperwork come before development
Platform APIs usually involve call fees, SMS fees, map licensing fees, and payment channel fees; some require corporate qualifications, industry licenses, or filings; fields involving personal information require confirming the scope of collection, where the data is stored, and whether it crosses borders.
If these are not written into the budget and the schedule, they turn into "why is there another step?" right before launch. If any of the five items is still "we'll deal with it later" at kickoff, the schedule should carry a corresponding buffer instead of assuming it will not happen.
3. Three kinds of integration, three different blockers
Internal enterprise systems: "we have an API" often means "we have a database"
This is the most common misunderstanding. The other side says "the API is fine," and what they can actually provide is a read-only database account, or an intermediate table exported at 1 a.m. every day.
Connecting directly to the production database looks fastest, but it hands you three responsibilities at once: their table-structure changes, the impact of your queries on production performance, and the authority to interpret data definitions. The moment they change a field type, your system starts throwing errors late one night, while they believe they have not changed any API.
The safer approach is to ask for a read-only data outlet — an API, a view, or a scheduled sync file — and to confirm three things in writing: who interprets field definitions, how far in advance changes are announced, and which side prevails when data disagrees. If all they can give is a database account, restrict it to read-only, keep queries on a replica, and agree that your system takes no write responsibility.
Then there is historical data. A new system usually has to migrate tens of thousands of old orders or customer records; phone numbers in the old database may contain spaces, dates may be stored as text, and statuses may mix Chinese characters and numbers. Cleaning this up usually takes more effort than the API itself, and it must be listed separately at the design stage.
Platform APIs: qualifications and review are preconditions, not development tasks
For payments, SMS, maps, and e-invoices, the real barrier is rarely code. Merchant numbers need review, settlement accounts need to be opened, industry categories need to be reported, SMS signatures and templates need approval, and callback domains need filings. Each has a waiting time, and most do not accept "launch first, fix later."
There is also an easily overlooked decision: whose account to apply with. If the client's own entity applies, keys and settlement belong to the client, and changing providers later does not affect the business. If a provider's account is used, it is easier in the short term and creates dependency in the long term — renewals, configuration changes, and billing all go through a third party. We prefer to settle this at the start of a project and, at delivery, to hand the third-party accounts to the client together with source code, data, and documentation, so that "the system is ours but the entrance is in someone else's hands" never happens.
Hardware and devices: passing in the lab is only the beginning
Device documentation usually describes a standard protocol, but the device on site may run older firmware. A command that is sent does not mean the device executes it; the device executing does not mean the state is reported back; the state being reported does not mean the timestamp is trustworthy.
There are also practical on-site issues: the network drops, power loss loses data, device clocks drift, and the installation site may have no signal. The design must answer where data goes while offline, how it is backfilled on recovery, and which day's business the backfilled data belongs to. None of this can be tested in an office; it can only be planned in advance with an on-site integration checklist.
4. When fields "don't match," it is usually these six things
What consumes the most time in integration testing is not writing code but investigating "why is this record wrong." Checking the six categories below one by one at the documentation stage saves a great deal of back and forth.
| Issue | Typical symptom | Consequence | How to confirm |
|---|---|---|---|
| Inconsistent units | Amounts in yuan on one side and cents on the other; durations in seconds vs. milliseconds | Amounts off by 100x; all timeout judgments invalid | Label the unit of every numeric field and cross-check with one real amount in both directions |
| Precision and rounding | Tax rates, discounts, and allocated amounts each rounded separately | Reconciliation gaps of a few cents that accumulate into unexplainable differences | Agree the calculation order and rounding rules, and which side's result prevails |
| Time zones and time formats | Local time without a zone; timestamps in different units | Business dates off by one day across time zones; daily closing reports do not reconcile | Use zoned time or an explicit UTC timestamp, and check one record that crosses midnight |
| Encoding and character sets | GBK and UTF-8 mixed; nicknames with special symbols | Garbled Chinese text; some user data fails to write | Specify the character set and test samples with symbols and rare characters |
| Primary keys and uniqueness | Reused primary keys, composite keys, over-long order numbers | Duplicate records; history overwritten | Confirm the key generation rule and length, and whether historical keys are reused |
| States and null values | 0 means both "not started" and "field absent" | Wrong state judgments; flows stuck or falsely triggered | Require null to be expressed separately; never use a business value to stand for "none" |
The value of this table is not in the fields themselves but in turning "we'll look at it later" into "we decide now." Every item confirmed removes one argument from a late integration night.
5. Make integration testing a controllable stretch, not a waiting period
What integration work fears most is not difficulty but "not knowing who it is stuck with." A few practices make it controllable, and their order matters.
Agree the contract before writing code. The API list, field mapping table, state mapping table, and key sequence diagrams should be completed before development and confirmed by both sides. A contract is not a restatement of the documentation; it records how you use their API: which endpoint you call, what you send, what you expect back, and how exceptions are handled.
Run the main flow through a mock service first. When their environment is not ready, build a mock service to the contract so that your own system can already run. When integration testing starts, the only remaining variable is their side, and the search space halves immediately. A lot of "slow integration" is really your own development being held hostage by their schedule.
Test by use case, not by feel. Every endpoint should cover at least: one normal call, missing parameters, duplicate submission, timeout retry, a business error returned by them, a system error returned by them, and boundary values (minimum amount, longest remark, maximum number of items). Tick each one off; progress becomes visible.
Classify problems and sync blockers daily. Sort problems into blocking launch, affecting experience, and pending confirmation. Sync only the blockers and their owners each day; the rest live in a list. Without this mechanism, integration testing turns into a group chat with no agenda.
At this stage, our practice is to treat interfaces as an independent deliverable of requirements analysis: first produce the API list and responsibility matrix, specifying which endpoint each side provides, which side calls it, and who judges each exception, and then move into development and integration. What the client genuinely needs to provide at this stage is business judgment (for example, whether a timeout counts as a failure), the counterpart contact, and qualification and account materials; how the API is designed, how exceptions are contained, and how use cases are covered are professional decisions we should be making — not questions to hand back to the client.
6. Launch is not the finish line of integration
After launch, the other side keeps changing: API upgrades, new fields, adjusted rate limits, expiring certificates, migrated callback URLs. These changes do not ask for your consent; they appear as a batch of failed requests one morning.
So at launch, leave at least three things behind:
- Monitoring: call success rate, latency distribution, error-code distribution, callback backlog. Success rate alone is not enough; you also need the share of "succeeded but wrong business result."
- Reconciliation: check totals and amounts daily, and make every discrepancy traceable to a specific document, not just a total.
- A change channel: when the other side announces a change, who receives it, who assesses the impact, who schedules the modification. If this owner is a blank, the first change becomes an incident.
7. What can wait, and what should be routed around
Not every integration is worth fighting to the end. The three situations below call for completely different handling.
They have a clear schedule and it does not affect the main flow. Build other modules first and put the integration in the second iteration, provided the feature is not on the critical path of first-phase acceptance. The test is simple: without it, can users still complete the core business? If yes, it can wait.
They have no test environment but allow small-amount production verification. You can isolate a dedicated account, cap per-transaction amounts and frequency, add manual review, and run the key use cases that way. The cost is accepting some risk, and there must be a rollback plan; this should not become standard practice.
They have had no contact for a long time, documentation is missing, and they will not provide test conditions. At this point, re-evaluate the plan instead of adding more people. Options include building an intermediate data exchange layer (batch import and export, scheduled file sync), supporting the business manually for a transitional period, or moving the feature out of the first phase. All three have a price, but a price is more controllable than "waiting indefinitely for an uncertain API."
8. Questions you can ask before kickoff
You do not have to ask them all at once, but each should have a clear answer.
- Which business scenarios does this API support, and which ones explicitly not?
- Is there a state-transition description, not just a field table?
- How are test-environment accounts, data, and permissions requested, and how long does it take?
- What rules differ between test and production?
- What are the limits on rate, timeout, and retries, and is idempotency supported?
- What are the requirements for the callback URL, and are public access and filing in place?
- Who is the contact, which channel do problems go through, and how much notice precedes changes?
- Are there call fees, qualification requirements, or data-handling restrictions?
If the answer to all eight is still "to be confirmed" in a proposal, then the delivery date it quotes can only be understood as "assuming everything goes smoothly." That is not conservatism; it puts uncertainty back where it belongs.
9. Final thoughts
Whether integration goes well is rarely visible in technology choices; it shows in whether someone at kickoff was willing to ask the questions others deferred. Documentation is a starting point, not a guarantee; real assurance comes from a contract both sides have accepted, an environment that runs, a chain of responsibility that reaches a person, and monitoring that still works after launch.
If your project has a few systems that must be connected and their documentation looks complete, it is worth verifying that completeness with the questions above before you start.
Supplementary Q&A
They say the API is standard REST. Do we still need to confirm all this?
Yes. REST describes a calling style, not business semantics. How states transition, whether a timeout is a failure or an unknown, and how duplicate requests are handled have nothing to do with REST — and they are exactly what determines how long integration testing takes.
Can we launch first and connect the API later?
Yes, provided the feature is not on the core business path and the transitional arrangement after launch is clear, for example manual entry or batch import first. If the core flow depends on it, launching early only pushes the risk onto users and forces rework at a higher cost.
They ask us to connect directly to their database. Is that acceptable?
Technically possible, but three things must be written down first: you have read-only permission only, your queries cannot affect their production performance, and table-structure changes are announced in advance. A safer option is to ask for a read-only outlet — an API, a view, or a scheduled file — keeping the coupling within an agreed boundary.
How long does integration usually take?
There is no universal answer, because it depends on the availability of their environment and the length of the decision chain, not on lines of code. A plan that can give a specific range has usually completed the five confirmations above; a plan that only gives days has probably hidden the assumptions inside the number.
Source note
The judgments in this article about integration methods, field verification, and organizing integration testing come from our implementation experience in custom systems and system integration projects, together with the delivery approach publicly described on our website (scoping the first phase early, defining interfaces and launch cadence, and handing over source code, data, documentation, and third-party accounts at delivery). It does not cover specific platforms' fees, limits, or review turnaround times: that information changes with platform policy and should follow each platform's current official documentation and agreements during implementation; it has not been verified item by item here.