A customer submits a maintenance request. The website calls an API, receives 201 Created, and stores a new job record. Technically, that request succeeded.
But no technician has been assigned. A required replacement part is unavailable. The customer receives a message saying the appointment is confirmed.
We have a successful API call and an unsuccessful business promise.
This is a hypothetical example, but it illustrates a design distinction worth making explicit: a system acknowledging an action is not necessarily the same as a business outcome being confirmed.
Give each state a meaning people can rely on
A service workflow might distinguish between:
RECEIVED — The request exists and its basic details are recorded.
TRIAGE_REQUIRED — Someone or an authorised rule must decide priority.
SCHEDULING_PENDING — An appointment has not yet been confirmed.
ASSIGNED — A technician and slot have actually been confirmed.
WORK_RECORDED — The technician has submitted a completion record.
CLOSED — The agreed completion checks have passed and any necessary customer communication has happened.
These are illustrative states, not a universal design template. The important point is that every state should have a clear meaning, an authorised way to enter it, and evidence that supports it.
Design for the uncertain outcome
Consider a request to a third-party scheduling system that times out. The request may have failed, or the appointment may have been created even though the acknowledgement never arrived.
Blindly retrying could create a duplicate booking. Assuming success could falsely reassure the customer. Where supported, an idempotent request and a way to reconcile the actual outcome are safer than guessing. When the outcome cannot be established, the workflow needs an explicit hold or escalation path.
Four questions I would ask before calling an integration complete
- What does “done” mean to the person depending on this workflow?
- Who or what has authority to move it to the next state?
- Which record or confirmation demonstrates that the outcome really happened?
- What happens when systems disagree, a response is missing, or someone needs to intervene?
These questions also matter when we use off-the-shelf software. Before adding custom code, it is worth checking whether existing tools already provide the necessary status, approvals, audit trail and exception handling.
The engineering lesson
Reliable automation is not about making every task move forward at all costs. It is about making progress when the evidence supports it, and making uncertainty visible when it does not.
An API can return success while the wider workflow still has work to do. Good system design makes that difference understandable to developers, operators and customers.
I'm interested in how other engineers handle the boundary between a technically successful action and a confirmed business outcome. Where has that boundary caused trouble in your integrations?
AI disclosure: This article was drafted with AI assistance.