Question 240
A Business Central developer must validate a correction for this condition: An API consumer sends duplicate invoice creation requests after a gateway retry. Which acceptance result best demonstrates that the issue was resolved?
Explanation
Correct Answer
Repeating the same idempotency key yields one invoice and a stable response. would provide case-specific evidence of a successful correction. An API transport retry can otherwise generate duplicate business documents. The corresponding action is Design deduplication or idempotent request handling alongside document posting rules.
Incorrect Answers
The option would apply to “An external app needs to trigger a Business Central action against a specific posted document but the integration exposes only generic write access”. Therefore verify: The authorized request executes the intended workflow and prohibited states are rejected. This question instead requires “Repeating the same idempotency key yields one invoice and a stable response”.
The related but distinct situation is “A web service returns correct customer fields but the developer has no safeguards against one user retrieving another tenant's data”. Therefore verify: A cross-tenant access test returns no protected customer records. For the stated problem, “Repeating the same idempotency key yields one invoice and a stable response” addresses the central condition.
A successful test of that kind may follow publish a deliberate custom versioned API contract for extension-specific fields. Here it would not prove the rule that an API transport retry can otherwise generate duplicate business documents.