In an ideal world, every API comes with clear, complete documentation: every endpoint, field, error code and rate limit explained, with examples and a test environment. In reality, many APIs, especially those of older ERPs, regional logistics providers, legacy CRMs, government portals and niche industry software, have documentation that is outdated, partial or missing entirely. Businesses still need these integrations to work. Planning API integrations when documentation is incomplete requires a different approach: more discovery, more testing, explicit assumptions and defensive design. This guide explains how.
Recognise the Warning Signs Early
Incomplete documentation often looks like:
- Endpoint lists without field definitions
- Examples that do not match real responses
- No information on errors, limits or authentication renewal
- Documentation for an older version than the one you use
- PDFs shared by email rather than a maintained portal
- “Contact support for details” in place of answers
Identify these gaps during discovery, not halfway through development. They should affect estimates and timelines.
Step 1: Gather Everything Available
Collect every source of information:
- Official documentation, however incomplete
- Sample API responses from the provider
- Existing integrations, plugins or scripts that use the API
- Community forums, GitHub repositories and Q&A sites
- Previous projects with the same system
- Database schemas or export formats, if the system is self-hosted
Sometimes the best documentation is an existing integration’s source code.
Step 2: Talk to the People Who Know
Arrange calls with the provider’s technical support or the customer’s IT team who manage the system. Prepare specific questions:
- Which endpoints should we use for our process?
- Which fields are required, and what formats do they use?
- How are errors returned?
- What are the rate limits?
- How do authentication tokens expire and renew?
- Is there a sandbox or test environment?
- How are API changes communicated?
Record answers in writing and share them with the team.
Step 3: Get Hands-On Access Early
Ask for sandbox credentials or a test account at the start of the project. If no sandbox exists, agree a safe approach for testing against production with test records. Then explore the API directly using tools such as Postman or Insomnia: call each endpoint, record real responses and save them as reference examples. Real responses are more reliable than documentation.
Step 4: Write Your Own Documentation
As you learn, document the API yourself:
| Endpoint | Purpose | Request fields | Response fields | Errors observed | Notes |
|---|---|---|---|---|---|
| GET /orders | List orders | from_date, page | id, status, total, lines | 401 on expired token | Max 50 per page |
| POST /customers | Create customer | name, email, gst_no | customer_code | 422 duplicate email | Email must be unique |
This internal documentation becomes invaluable for maintenance and future developers.
Step 5: Make Assumptions Explicit
Where answers are missing, write assumptions down and get them approved by the client:
- “We assume the order API returns orders sorted by creation date.”
- “We assume tax values are inclusive of GST.”
- “We assume the API allows at least 60 requests per minute.”
Explicit assumptions make risk visible. If an assumption proves wrong, everyone understands why work needs to change.
Step 6: Build Prototypes Before Full Development
Build a small proof of concept that covers the riskiest parts: authentication, the main data flow and error handling. A prototype in the first week reveals surprises before they affect the whole project. Our API integration development process usually starts with exactly this kind of spike.
Step 7: Design Defensively When Documentation Is Incomplete
When you cannot fully trust documentation, the integration must protect itself:
- Validate every response against expected schemas
- Log raw requests and responses for troubleshooting
- Handle unexpected fields and missing values gracefully
- Use retries with backoff and clear error categories
- Quarantine invalid data rather than saving it
- Add feature flags to switch parts of the integration off quickly
Defensive design turns unknowns into manageable risks.
Step 8: Plan Estimates and Contracts Realistically
Incomplete documentation increases uncertainty. Reflect it in planning:
- Add discovery time before fixed estimates
- Use a time-and-materials approach for the investigation phase
- Include contingency for unknown behaviour
- Agree how changes caused by undocumented behaviour will be handled
Being open about uncertainty protects the relationship between business and developer.
Step 9: Test With Real Scenarios
Test common, edge and failure cases using realistic data: large orders, special characters, unusual tax cases, cancellations, expired tokens and network failures. Involve business users who understand what correct outcomes look like. Include these cases in your website testing and QA plan.
Example: Integrating With a Legacy ERP
A distributor needed its new B2B portal to connect with a 15-year-old ERP whose API documentation consisted of a short PDF. The team requested a test company in the ERP, captured real responses for every endpoint, wrote internal documentation and listed twelve assumptions for approval. A one-week prototype revealed that dates were returned in local time without time zones and that the API failed for orders with more than 200 lines. Both issues were handled before full development began, avoiding late surprises.
Common Mistakes
- Estimating as if documentation were complete
- Building the full integration before testing real responses
- Keeping assumptions undocumented
- No logging of raw API traffic
- Relying on one person’s memory of how the system behaves
Handing Over Knowledge
Integrations built on incomplete documentation carry hidden knowledge: quirks discovered in testing, workarounds for odd responses and assumptions confirmed by phone calls. If that knowledge lives only in one developer’s head, the business is exposed when that person moves on. Keep the internal API documentation, assumption list, recorded sample responses and test collections in the project repository. Write short notes explaining every workaround and why it exists. Include these materials in the formal handover and in onboarding for new developers. Ongoing website support becomes far cheaper when a new engineer can understand an unusual integration in an afternoon rather than rediscovering it over weeks.
Frequently Asked Questions
Can We Integrate Without Any Documentation?
Sometimes, by studying real responses, existing integrations or database exports, but it takes more time and testing.
Should We Choose a Different System Instead?
If the integration is critical and the provider is unresponsive, consider alternatives or middleware with better support.
Who Pays for Extra Discovery?
Agree this upfront. Discovery and prototyping are usually billed separately because the scope is uncertain.
Careful planning turns poorly documented APIs into reliable integrations. Explore our website integration services, review website development consulting, learn about website backend development, see our case studies, read our process, check B2B website development, or contact us.
