# Integration requirements pack — template From part 2 of API Integration for Analysts — cybernotes.it/trainings/api-integration/2-requirements-and-design/ Nine sections. Copy it once per integration. Lines marked *like this* are guidance; delete them as you fill the section in. It is a completeness check, not a page count. "Not applicable, confirmed by (name)" is a valid entry. A two-page pack that addresses all nine sections is worth more than a long one with the failure cases missing. # (Integration name) — requirements | | | |---|---| | Status | draft / in review / approved | | Analyst | | | Architect | | | Specification versions referred to | *pin the exact versions* | | Discovery notes | *link* | | Decision record | *link — the option chosen, the reason, the date* | ## 1 · Overview and context diagram *Two or three sentences on the business purpose. Then every system and every flow, one box and one arrow each. Boxes and arrows anyone can redraw are enough.* ``` [System A] --flow (kind)--> [System B] --flow (kind)--> [System C] ``` ## 2 · Parties and environments | Item | Value | |------|-------| | Consuming system, and its owner | | | Providing system, and its owner | | | Kind of integration | *synchronous call / events / file — per flow if mixed* | | Environments | *test and production; who provides test data* | | Access | *which permissions are needed; where the request for them is tracked* | ## 3 · Functional requirements *One entry per flow. Five parts every time. Name the operation as the specification names it, not "the API".* ``` FR-n (short name) Trigger: what starts it — a user action, an event, a schedule Operation: which operation of which interface Rule: the validations and business rules that apply Outcome: what happens on success, including what the user sees Unhappy: what happens when it fails — timeout, rejection, retry, duplicate ``` | ID | Requirement | Source or reason | Priority | |----|-------------|------------------|----------| | FR-1 | | | must | ## 4 · Data mapping *Link the filled data mapping sheet. State here its status and the number of open gaps.* ## 5 · Non-functional requirements *Numbers with a unit and a condition, not adjectives. Work through the NFR checklist and note the categories judged not applicable.* | ID | Category | Requirement | |----|----------|-------------| | NFR-1 | Volume | | | NFR-2 | Response time | | | NFR-3 | Availability | | | NFR-4 | Monitoring and alerting | *which condition alerts whom, how fast* | | NFR-5 | Audit | | ## 6 · Error handling and reconciliation *One row per way of failing: a timeout, a retry that duplicates, a partial file, a dependency that does not answer.* | What fails | Expected behaviour | Who is told | Manual procedure | |------------|--------------------|-------------|------------------| | | | | | *Reconciliation: how is it known that nothing was lost? Which side is right when they disagree? How is a gap caught up after downtime?* ## 7 · Security and data protection *Classification of the data; the personal data fields and their legal basis; retention; how credentials are issued, rotated and withdrawn; confirmation that no personal data goes into logs or web addresses (URLs). Part 3 of the series, which is in preparation, covers this section.* ## 8 · Acceptance criteria and test scenarios *Per flow: the success case, every documented rejection, the technical failures, the edge cases. State where test data comes from; no real personal data. Part 4 of the series, which is in preparation, covers this section.* | # | Scenario | Kind | Expected result | |---|----------|------|-----------------| | 1 | | success | | ## 9 · Open items | # | Item | Owner | Needed by | Status | |---|------|-------|-----------|--------| | 1 | | | | open | --- ## Two worked requirements from the training case Repair shops report claims through a portal; the core claims system registers them and looks the vehicle up in an external registry. The case is synthetic. ``` FR-2 Duplicate protection Trigger: a repair shop submits a first notice of loss in the portal Operation: POST /claims with an Idempotency-Key — one key per notice, reused on retry Rule: the same key again returns the original claim; no second claim is created. The same policy and incident under a different key is rejected with 409 DUPLICATE_CLAIM Outcome: the portal shows the returned claim id Unhappy: on timeout the portal retries with the same key; the duplicate is detected and suppressed ``` ``` FR-5 Registry fallback Trigger: the claims system asks the vehicle registry for vehicle details Operation: GET /vehicles/{reg_number} of the registry Rule: an answer is awaited for 3 seconds Outcome: the vehicle details are stored with the claim Unhappy: no answer within 3 seconds, or an error: the claim is registered without the details and flagged ENRICHMENT_PENDING; the lookup is retried for up to 24 hours; after that the claim appears on a worklist for a person ``` Every number in FR-5 is a business decision: how long a repair shop may wait, how stale the vehicle details may be, and what giving up means. CyberNotes · cybernotes.it · CC BY-SA 4.0