Custom software / .NET / API integration / Scoping guide

How to scope a .NET API integration before estimating it

A useful first integration scope names one business event, one direction of data flow, the required fields, and how a safe test will prove the result. This hypothetical example uses synthetic data; it is a planning aid, not a Flextech customer project or a promise that any two systems can be connected.

Hypothetical example — synthetic data only. “Sample Parts Co.” has an existing .NET order application. Its owner wants an approved invoice sent to a separate accounting service. No real company, software vendor, database, or customer record is represented here.

Start with one event and one direction

Instead of asking for “an accounting integration,” define the first event precisely: when an invoice in the source application reaches an agreed approved state, send that invoice once to the destination system. The example is one-way. It does not assume that the destination has an API, that the source exposes one, or that either system permits this flow. Even if the .NET application stores records in SQL Server, do not assume that a direct database write is supported or safer than the application interface. Any read-only SQL inspection needs owner approval and schema context; database writes or schema changes require separate assessment.

DecisionExample definitionWhat still needs checking
TriggerAn invoice is approved in the .NET application.Which event or supported endpoint exposes that change? Who can authorize it?
DirectionSource application → accounting service.Is the intended flow one-way, and which system remains authoritative?
First record typeOne invoice shape.Are credit notes, tax adjustments or attachments separate cases?
Test boundaryVendor sandbox or isolated test environment with synthetic records.Does it exist, and can the owner grant least-privilege test access?

What if the vendor system has no supported write API?

Do not turn an undocumented database, web screen or report into a write interface. First establish whether the vendor’s documentation and the system owner authorize a supported export/import route, a defined file template, or a manual handoff. Name which system is the source of record at each stage, who may prepare or approve the handoff, and what evidence shows that a record moved or was deliberately held. A supported manual step can be a valid scope boundary; it is not a guarantee that the vendor permits bulk import or that every rejected row can be corrected automatically.

  • Supported route: retain the relevant vendor documentation and authorization for the chosen export, import or manual process. If neither exists, hold the integration request for discovery rather than proposing a direct write.
  • Record ownership: state whether the source remains authoritative until a reviewed import, or whether the destination becomes authoritative after a specific acceptance step. Do not ask staff to treat two un-reconciled copies as equally current.
  • Exception handling: agree what identifier and reason a rejected row must show, who resolves it, and whether an approved corrected row follows the same supported route or a separate manual process.

Fictional acceptance check: use two invented approved invoice rows in an authorized test route. If one row is accepted and the other is rejected, the named reviewer should reconcile both source references against the destination or handoff log, record the rejection reason and next owner, and confirm that only the accepted row is treated as transferred. This is a planning test, not a vendor certification, production import or promise that Flextech can access a system without an API.

Write down the field mapping

A small field map exposes missing decisions before code is changed. These values are invented examples, not a recommended accounting format.

Source valueSynthetic sampleDestination question
Invoice referenceINV-DEMO-0001Which field is the stable unique reference?
Invoice date2026-10-12Which time zone and date format does the API expect?
Currency and totalMYR 1280.00Are the amount and currency separate fields? How are rounding and tax represented?
Approval stateapprovedWhat exact source state is allowed to trigger a send?
Customer identityCUSTOMER-DEMO-01Does the destination require an existing customer ID, or can it create one?

Do not send live customer information just to explain the mapping. A sanitized schema or synthetic row is enough for an initial discussion.

Define behavior when things go wrong

Integrations need decisions for repeated events and failed requests, not just the successful path. For this example, agree how a repeated invoice event is recognized, what happens after a timeout, which errors a staff member can see, and who is allowed to retry. The actual approach depends on the source and destination capabilities.

Agree request limits, usage charges and staff action

Before estimating an API connection, ask the provider for its documented request limits and any separate usage or billing quota. The terms can describe different controls, so record the exact API method, provider account or project, measurement unit, time window, and whether other applications share the same limit.

For one provider-specific example, Google Places documents a per-minute rate limit for each API method and project. Its charges depend on the request SKU and usage; it says a service stops responding when a project reaches a quota limit and that a quota increase can affect the bill. Other providers use different rules, units and billing models; this example is not a price or a universal API rule. See the Google Places usage and billing documentation.

  • Account and cost owner: Which organization owns the provider account or project and its billing? Who can review usage, receive any available alerts, approve a quota or billing change, and pay the provider's charges? Keep those provider charges separate from the software build or support estimate. For comparing scope and recurring quote items, see the custom-software quote-comparison checklist.
  • When a limit is reached: What should staff see—waiting, failed, or needs review—and what reference or next action is available? Who decides whether the work can wait, needs an agreed manual step, or requires provider support? Do not show a completed result when the provider has not confirmed it.
  • Safe recovery: Which requests may wait or retry under the provider's documented rule, and who checks the outcome before retrying a write whose result is uncertain? Where available, use an approved sandbox or controlled test response to confirm the staff message without making real billable calls.

HTTP 429 means too many requests in a period and a response may include Retry-After; the standard does not define how a provider counts requests. A 429 alone therefore does not tell you whether a paid usage quota is exhausted. Check the actual API's error and billing documentation. For an uncertain write, follow the timeout and recovery decisions already covered in this guide. See RFC 6585, section 4.

These are scoping questions, not a promise of a quota, billing alert, retry queue, provider account access, or support plan. Confirm the provider's current terms for the actual account before estimating the work.

What if a request times out after the destination accepted it?

A timeout means the caller did not receive a timely answer; it does not prove that a record was never created. In the synthetic invoice scenario, immediately sending a new create request could leave two invoices for the same approved event. The scope needs a way to establish the outcome before an operator decides what to do next.

Where the destination supports idempotency, agree how a persisted operation key is created and reused for retries of the same operation, what request content it identifies, and how long the destination retains it. Support and retention rules depend on the actual API. A new key on every retry defeats that protection. If the API offers no suitable mechanism, assess a supported lookup or reconciliation path before enabling automatic replay.

Planning recovery for the hypothetical invoice handoff
Observed situationDecision to agree before implementationEvidence to check
A documented rejection confirms the record was not accepted.Identify who corrects the input and whether the corrected operation is an update or a new approved event. Follow the provider's documented rules.Sanitized error reference, correction owner and expected destination state.
The caller times out and the destination outcome is unknown.Use the documented idempotency or status-lookup process. If the outcome cannot be established, hold the item for authorized review instead of marking it complete or blindly replaying it.Original operation key, approved source reference and destination identifier or lookup result, when available.
The same approved event arrives again.Recognize it as the same operation under the agreed duplicate rule, including after a worker restart.The agreed destination record count and a persistent record of the operation's outcome.
A previously sent invoice is later corrected.Decide which system owns each change, whether updates are supported, and who authorizes them. Do not reuse a key with different content unless the API explicitly permits that behavior.Approved revision, source-of-truth rule and expected update or exception result.

A synthetic retry-exhaustion and duplicate example

A local deterministic check of the synthetic invoice example records this sequence against a scripted, in-memory destination. It uses fabricated data only; no live API or customer system is called:

  1. First import: the destination returns 503 three times. This sample stops at three attempts and reports Failed; the invoice ID is not added to its in-memory completed set.
  2. Later import: the same invoice is submitted again and the scripted destination returns 201. The sample reports Created on the first attempt. Across these two imports, the destination test double receives four calls and records one accepted payload.
  3. Repeat after success: another import of that same ID reports Duplicate without another destination call; the accepted-payload count remains one.

This check demonstrates only the sample's in-process behavior. Its ordinary memory set is neither durable nor safe across concurrent workers or a process restart, and the test does not simulate acceptance followed by a lost response. It is not an exactly-once guarantee. A real integration needs provider-specific rules for request identity, retries and reconciliation before replay. The demo records its retry delays but does not wait between attempts; its status policy is an example, not a provider contract.

Add an uncertain-outcome acceptance case

In an authorized test environment, simulate the destination accepting a synthetic record while the caller loses the response. Check that the agreed recovery path establishes the result without an unintended second record. Also check a restart before recovery and a corrected-record case; passing a normal duplicate test alone does not cover those situations.

Name the person who reviews unresolved items and the evidence needed to close them. Keep credentials and unnecessary customer data out of recovery logs. See AWS's Making retries safe with idempotent APIs for the underlying timeout and retry problem. This reference is design guidance, not a claim that either example system uses AWS or supports a particular API feature.

Asynchronous events / scoping and acceptance

What if an older event arrives after a newer one?

When an integration receives asynchronous events, delivery order may differ from the order in which the underlying record changed. This is a different case from receiving the same event twice, which the duplicate-handling guidance above already covers. First confirm that the source actually sends events and document its event identity, any per-record version or sequence field, and whether an authoritative current-record lookup is supported. Do not apply event-order assumptions to an ordinary request/response API without checking its actual contract.

Stripe documents one provider-specific example: webhook events are not guaranteed to arrive in generation order, and distinct snapshot events can share the same created second. Stripe advises against using that timestamp alone to infer event order or identify duplicate deliveries; it describes event IDs for duplicate detection and retrieving current objects where needed. See Stripe’s webhook event-ordering guidance. This is an example of one provider’s documentation, not a claim that the fictional system or Flextech uses Stripe, or that another provider behaves the same way.

Wholly fictional example — synthetic data only. “Sample Parts Co.” receives two messages about transfer TR-DEMO-021: record revision 12 says “awaiting review,” and revision 13 says “approved.” Revision numbers and messages here are invented fields, not a standard API contract. If revision 13 arrives first and revision 12 later, a test should prove what the chosen integration does with the late message instead of assuming arrival order is business order.

Newer event arrives first

Test: Deliver revision 13, then revision 12, for the same fictional transfer. If the actual source documents comparable per-record versions, confirm the older revision cannot roll the stored state back. If no trustworthy order field is documented, hold the change for the agreed lookup or review path rather than guessing. This ordering check does not itself authorize a stock movement.

Two events share a timestamp

Test: Send two distinct event IDs for the same record with equal timestamps. Confirm the integration does not sort them by that timestamp or mistake them for the same delivery. Use only a provider-documented version/sequence or current-record lookup; if neither is available, leave the outcome unresolved for an authorized reviewer.

A prerequisite is missing

Test: Deliver an update before the related record or required parent is available in the receiving workflow. Confirm it remains visibly pending or unresolved and is not marked complete. Agree whether a documented lookup, later event, or named review owner supplies the missing prerequisite.

The authoritative lookup is unavailable

Test: Make the agreed current-record lookup unavailable in a safe test. Confirm the result is not treated as proof that the record is absent or current; keep the operation unresolved, show the agreed next owner/action, and do not blindly replay a write. Retry limits and recovery steps must follow the actual provider’s documentation and the agreed scope.

Scoping boundary: Ask which state is authoritative, how stale or unordered events are recognized, and what staff should see when reliable ordering cannot be established. An event can inform a business decision; it does not automatically authorize a separate execution step. For a write whose destination outcome is uncertain, use the separate timeout and recovery checks already covered in this guide. Do not assume every provider exposes versions or supports a current-object lookup.

Example acceptance checks for a first test

Acceptance should be observable and agreed before implementation. A safe test plan for the synthetic example could check:

  1. Only the agreed approved test invoice is sent from the test source to the test destination.
  2. The destination shows the expected reference, date, currency, amount and customer mapping.
  3. Repeating the same event follows the agreed duplicate rule and does not silently create an unintended second invoice.
  4. A deliberately invalid test value or unavailable test endpoint produces a visible, traceable failure and follows the agreed retry rule.
  5. The owner reviews the result and separately approves any production access or write before it is enabled.

Passing these checks would confirm only the agreed test cases. It would not certify either system's security, accounting treatment, tax compliance, or every future scenario.

What must be ready before a real estimate

If documentation, ownership, permission or a safe test path is missing, pause at discovery. Do not guess how a private API works or promise compatibility before it has been assessed.

Keep the first scope bounded

A first written scope might cover one source, one destination, one invoice event, an agreed field map, safe test cases, visible failure handling and a documented handoff—only if both systems support that approach. Two-way synchronization, historical backfill, multiple record types, redesigning either application, schema migrations, security certification, accounting advice and ongoing support should be assessed and quoted separately if needed.

For the wider custom-software process, see custom software development in Malaysia. For the factors that affect an estimate, see the custom software cost guide.

Discuss a possible fit

Have a real integration or .NET change to scope?

Share the source and destination systems, one desired event, the current blocker, and whether documentation and a safe test environment exist. Use synthetic examples. Do not send passwords, API keys, tokens, or customer records. Flextech will need to assess ownership, compatibility, access and acceptance before any scope or estimate can be confirmed.

Start a project discussion ↗
WhatsApp