Custom B2B Service Portals: Separating Retries from Genuine Repair Reports
How to specify and acceptance-test a B2B repair portal that treats a retry after a timeout differently from two similar genuine reports, with request IDs, notification dedup, AI-suggested links and test cases.
Published by Mentrix Digital ·

Key points
- A retry carries the original request ID and returns the original work order. A new report always gets a new ID and its own ticket, however similar the wording.
- A reused ID arriving with different data is rejected: no new ticket, and no silent overwrite of the existing one.
- AI only suggests which reports may be related. The dispatcher decides whether to merge, link or keep them apart, and every merge can be undone.
Two kinds of duplicate, two different fixes
A customer's facilities officer submits a repair report from a site with poor signal. The page spins until it times out, so they press submit again. Without the right design, that creates two work orders for one fault, and a dispatcher may send two crews or close one and forget the other. The other case is two people genuinely reporting similar faults, such as leaks in two places in the same building, which need two tickets.
The first is a technical problem the system should prevent deterministically. The second is an operational judgement that needs a person. The common mistake is handling both the same way, for example auto-merging tickets with similar text, which risks losing a real job. The maintenance company used here is fictional, not a client project.
If your challenge is tracking service work that gets stuck after a ticket exists, read tracking blocked service work with a custom portal →
Specifying retries: same request ID, same result
Specify that the repair form generates one request ID when it opens and reuses it on every retry of that submission. The server stores the ID with its outcome; when the same ID arrives again it returns the existing work order number instead of creating another. Stripe's engineering article on idempotency is useful background: the client generates the key, the server remembers the first result, and retries back off with a little randomness so clients do not all retry at once.
Spell out the edge rules too. If a known ID arrives with different data, such as a changed equipment location, reject it with a message that the report was already submitted and send the user to the ticket's edit screen, which keeps a history. If the same ID arrives twice at the same moment, a uniqueness constraint in the database lets only one create a ticket. Key notifications to the ticket and event, so “work order created” goes out once even if the messaging service retries. State how long IDs are kept, and route an expired-ID retry to a person rather than creating a ticket.
Two genuine reports: AI suggests, the dispatcher decides
Every new report gets its own ticket first. Only then does AI look at open tickets for the same site and time window and suggest possible relations, with a short reason such as same building, same asset or similar symptom. It reads only that customer's data within the dispatcher's access and has no permission to merge, close or change the status of any ticket.
The dispatcher has three choices: merge when it is certainly the same fault, link when a shared cause is likely but separate locations need checking, or keep apart. A merge keeps the secondary ticket on record, keeps both reporters updated, logs who decided and why, and can be reversed. If AI is unavailable, tickets are still created and dispatched manually.
For AI that suggests related records while people make the decisions, see Custom AI Solutions for Business →
Fictional field example
A fictional HVAC maintenance firm services a corporate customer's hotel. At 10:02 the facilities officer reports a chilled-water pipe leak in the basement plant room; the submission times out, so at 10:03 they resend with the same request ID. The portal returns the existing WO-1182 and notifies the dispatcher once.
At 10:40 the front desk reports water dripping from the ceiling in room 512. The portal opens WO-1190. AI suggests it may relate to WO-1182: same building, both leaks. The dispatcher sees two locations and possibly two causes, so links rather than merges and sends one crew to check both. At 11:15 the officer corrects WO-1182 from “pipe” to “valve” through the edit screen, which records the change, rather than resubmitting the form under the old ID.
Acceptance cases to pass before launch
Run on a test environment with synthetic data, write expected results first and record per-case evidence: ticket numbers, ticket count in the database and notifications actually sent.
- Retry after timeout: same ID and data sent three times. One ticket, one notification, the same number returned each time.
- Simultaneous submit: two requests with the same ID at the same moment. One ticket; the other gets the same number or a wait-and-retry message.
- Changed payload: same ID, different location. Rejected with a clear message; the existing ticket is untouched.
- Two genuine reports: different IDs, near-identical text. Two tickets; AI flags a possible relation; nothing merges until the dispatcher decides.
- Recovery: the ticket is saved but the server fails before replying, then the user retries. The original ticket is returned; no second one is created.
- The messaging service times out and retries. The dispatcher is notified once.
- Merge and unmerge: a wrong merge is reversed. Both tickets return to their prior state with full history, and both reporters still get updates.
- AI unavailable: tickets are still created and dispatched manually.
Metrics after launch
Track duplicate tickets caused by retries (target zero), requests rejected for changed data under a reused ID, duplicate notifications, merges later reversed, genuine jobs merged in error, and time from report to dispatcher acknowledgement. The share of AI suggestions the dispatcher accepts shows whether suggestions are useful, but it is not a number to push up: rejecting a wrong suggestion is the correct outcome.
Compare with a pre-launch period of equal length and similar volume, and call results inconclusive when samples are small or the period was unusual. These measures guide improvements; they do not guarantee cost savings or customer satisfaction.
If you are planning a custom repair or B2B customer portal and need a specification with acceptance tests, see Websites & Landing Pages →


