Skip to content
فهد النعيميFahad ALNaimi Entrepreneurship, e-commerce and artificial intelligence
All articles

A Successful API Request Does Not Prove a Complete Import

In this article

A data import can finish without a technical error while copying only the first page of records. Its report may look tidy but support decisions with incomplete information. Integration acceptance should test completeness as well as connectivity.

Read the provider’s pagination method

GitHub’s pagination documentation describes following the Link response header to additional pages where supported. Other systems may use continuation tokens or different mechanisms. Increasing the requested page size does not establish that every record has been returned.

Use a multi-page test set

Prepare authorised test data exceeding one page and compare expected identifiers with imported identifiers. Check examples from the first and final pages. Detect missing and duplicated records instead of relying solely on the total count.

Separate partial progress from completion

In a hypothetical case, three pages succeed and the fourth fails. The operation should remain visibly partial and resumable, rather than producing a report marked complete. Record the last confirmed position and define how a restart avoids duplicating effects in the receiving system. Avoid collecting unnecessary sensitive information for tracking.

Account for a changing source

Records may be added during collection. Understand the provider’s ordering and time-boundary guarantees, and test concurrent changes in your environment. Define completion as reaching the known end of the collection path and passing completeness checks. Successful response codes for individual requests are part of the evidence, rather than the whole acceptance test.

Back to article top
  • Artificial intelligence
  • Digital platforms
  • Strategic partnerships

Building opportunities for Qatar and the Gulf

Collaborate & contact

To discuss an opportunity, share the partnership idea, your goal and the proposed timeline.

Contact on WhatsApp