Phase C · Information Systems Architecture
AIB AML Service API
Version: 1.0
Status: Draft
Last Updated: 2026-06-08
Overview
aib-aml owns transaction monitoring, AML alert investigation, STR filing, and FIU feedback tracking.
Primary Tables: aml_alert, aml_typology_rule, str, aml_investigation_case, fiu_feedback_record
Calls: aib-compliance (EDD escalation), aib-audit (audit trail)
Called By: aib-operations (transaction screening)
SLA Targets
| Metric | Target | Notes |
|---|---|---|
| Alert Creation | P95: 100ms | Real-time transaction screening |
| STR Filing | Within 5 days | SPG Art. 17 regulatory deadline |
| Investigation Case Lookup | P95: 200ms | Compliance officer queries |
| Throughput (screening) | 50,000 req/sec | High-volume transaction processing |
| Availability | 99.99% | AML block = regulatory violation |
OpenAPI 3.0 Specification
openapi: 3.0.3
info:
title: AIB AML Service API
version: 1.0.0
description: Transaction monitoring, AML alerts, STR filing, investigation management
contact:
name: AIB Architecture
servers:
- url: https://api.aib.internal/aml/v1
description: Production
paths:
/alerts:
post:
summary: Create AML alert from transaction screening
operationId: createAlert
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertCreateRequest'
responses:
'201':
description: Alert created
content:
application/json:
schema:
$ref: '#/components/schemas/AlertResponse'
'400':
description: Invalid rule_id or client data
tags:
- Alerts
x-sla:
p95_latency_ms: 100
timeout_ms: 500
get:
summary: List open alerts (with filtering)
operationId: listAlerts
parameters:
- name: status
in: query
schema:
type: string
enum: [pending, under_review, escalated_to_str, dismissed, filed]
- name: client_id
in: query
schema:
type: string
format: uuid
- name: severity
in: query
schema:
type: string
enum: [low, medium, high, critical]
- name: limit
in: query
schema:
type: integer
default: 100
- name: offset
in: query
schema:
type: integer
default: 0
responses:
'200':
description: List of alerts
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AlertResponse'
tags:
- Alerts
x-sla:
p95_latency_ms: 200
/alerts/{alert_id}:
get:
summary: Retrieve alert details with investigation case link
operationId: getAlert
parameters:
- name: alert_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Alert details
content:
application/json:
schema:
$ref: '#/components/schemas/AlertResponse'
'404':
description: Alert not found
tags:
- Alerts
x-sla:
p95_latency_ms: 100
/alerts/{alert_id}/investigate:
post:
summary: Open investigation case for an alert
operationId: openInvestigation
parameters:
- name: alert_id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- assigned_to
properties:
assigned_to:
type: string
description: Compliance officer ID
initial_notes:
type: string
responses:
'201':
description: Investigation case created
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationCaseResponse'
'409':
description: Investigation already open for this alert
tags:
- Investigation
x-sla:
p95_latency_ms: 150
/investigation-cases/{case_id}:
get:
summary: Retrieve investigation case details
operationId: getInvestigationCase
parameters:
- name: case_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Investigation case details
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationCaseResponse'
tags:
- Investigation
x-sla:
p95_latency_ms: 100
patch:
summary: Update investigation case (add notes, change status)
operationId: updateInvestigationCase
parameters:
- name: case_id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum: [open, under_review, suspicious, false_positive, escalated_to_str]
notes:
type: string
assigned_to:
type: string
responses:
'200':
description: Investigation case updated
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationCaseResponse'
tags:
- Investigation
x-sla:
p95_latency_ms: 150
/str-reports:
post:
summary: File Suspicious Transaction Report (STR) to FIU-LI
operationId: fileStr
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StrFileRequest'
responses:
'201':
description: STR created and filed
content:
application/json:
schema:
$ref: '#/components/schemas/StrResponse'
'400':
description: Invalid case data or tipped_off=1 attempted (violation)
tags:
- STR
x-sla:
p95_latency_ms: 500
get:
summary: List filed STRs
operationId: listStrs
parameters:
- name: client_id
in: query
schema:
type: string
format: uuid
- name: status
in: query
schema:
type: string
enum: [filed, fiu_received, fiu_feedback_received]
- name: filed_after
in: query
schema:
type: string
format: date
responses:
'200':
description: List of STRs
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/StrResponse'
tags:
- STR
x-sla:
p95_latency_ms: 200
/str-reports/{str_id}:
get:
summary: Retrieve STR details
operationId: getStr
parameters:
- name: str_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: STR details
content:
application/json:
schema:
$ref: '#/components/schemas/StrResponse'
tags:
- STR
x-sla:
p95_latency_ms: 100
/fiu-feedback:
post:
summary: Record FIU feedback on filed STR
operationId: recordFiuFeedback
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FiuFeedbackRequest'
responses:
'201':
description: FIU feedback recorded
content:
application/json:
schema:
$ref: '#/components/schemas/FiuFeedbackResponse'
tags:
- FIU Feedback
x-sla:
p95_latency_ms: 200
/typology-rules:
get:
summary: List all active AML typology rules
operationId: listTypologyRules
parameters:
- name: category
in: query
schema:
type: string
enum: [large_transaction, velocity, high_risk_jurisdiction, structuring, sanctions_hit]
responses:
'200':
description: List of rules
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TypologyRuleResponse'
tags:
- Rules
x-sla:
p95_latency_ms: 100
post:
summary: Create new AML typology rule (admin only)
operationId: createTypologyRule
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TypologyRuleCreateRequest'
responses:
'201':
description: Rule created
content:
application/json:
schema:
$ref: '#/components/schemas/TypologyRuleResponse'
tags:
- Rules
x-sla:
p95_latency_ms: 300
/typology-rules/{rule_id}:
get:
summary: Retrieve rule definition
operationId: getTypologyRule
parameters:
- name: rule_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Rule details
content:
application/json:
schema:
$ref: '#/components/schemas/TypologyRuleResponse'
tags:
- Rules
x-sla:
p95_latency_ms: 50
components:
schemas:
AlertCreateRequest:
type: object
required:
- client_id
- rule_id
- transaction_id
properties:
client_id:
type: string
format: uuid
rule_id:
type: string
format: uuid
description: Which typology rule triggered alert
transaction_id:
type: string
format: uuid
amount_chf:
type: number
alert_score:
type: number
description: 0–100 risk score (auto-calculated from rule)
AlertResponse:
type: object
properties:
alert_id:
type: string
format: uuid
client_id:
type: string
format: uuid
rule_id:
type: string
format: uuid
status:
type: string
enum: [pending, under_review, escalated_to_str, dismissed, filed]
severity:
type: string
enum: [low, medium, high, critical]
alert_score:
type: number
investigation_case_id:
type: string
format: uuid
nullable: true
created_at:
type: string
format: date-time
InvestigationCaseResponse:
type: object
properties:
case_id:
type: string
format: uuid
alert_id:
type: string
format: uuid
status:
type: string
enum: [open, under_review, suspicious, false_positive, escalated_to_str]
assigned_to:
type: string
description: Compliance officer
notes:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
StrFileRequest:
type: object
required:
- case_id
- filed_by
properties:
case_id:
type: string
format: uuid
filed_by:
type: string
description: Compliance officer filing STR
narrative:
type: string
description: Detailed suspicion description (SPG Art. 17)
StrResponse:
type: object
properties:
str_id:
type: string
format: uuid
client_id:
type: string
format: uuid
status:
type: string
enum: [filed, fiu_received, fiu_feedback_received]
filing_deadline:
type: string
format: date
filed_at:
type: string
format: date-time
filed_by:
type: string
tipped_off:
type: integer
enum: [0]
description: Always 0; tip-off prohibition enforced at DB layer (SPG Art. 16)
FiuFeedbackRequest:
type: object
required:
- str_id
- feedback_type
properties:
str_id:
type: string
format: uuid
feedback_type:
type: string
enum: [confirmation_received, further_action_taken, no_action, closed]
fiu_notes:
type: string
FiuFeedbackResponse:
type: object
properties:
feedback_id:
type: string
format: uuid
str_id:
type: string
format: uuid
feedback_type:
type: string
received_at:
type: string
format: date-time
TypologyRuleResponse:
type: object
properties:
rule_id:
type: string
format: uuid
rule_code:
type: string
example: 'RULE-001'
category:
type: string
enum: [large_transaction, velocity, high_risk_jurisdiction, structuring, sanctions_hit, other]
description:
type: string
parameters:
type: object
description: Rule-specific threshold (e.g., amount_threshold_chf, velocity_count)
enabled:
type: boolean
created_at:
type: string
format: date-time
TypologyRuleCreateRequest:
type: object
required:
- rule_code
- category
- parameters
properties:
rule_code:
type: string
category:
type: string
description:
type: string
parameters:
type: objectIntegration Points
Calls to Other Services
aib-compliance(POST/clients/{client_id}/edd): Escalate high-risk alert to Enhanced Due Diligence
Called By
aib-operations(bank_transaction.created event): Real-time alert screening
Event Publishing
aml_alert.created— alert dashboard updatedinvestigation_case.escalated_to_str→str.filed— FIU notificationfiu_feedback.received— case closure tracking
Regulatory Compliance
| Regulation | Requirement | Implementation |
|---|---|---|
| SPG Art. 9 | AML monitoring at transaction | POST /alerts auto-triggered by screening rules |
| SPG Art. 10 | Investigation and reporting | POST /investigation-cases/{id} for case management |
| SPG Art. 16 | Tip-off prohibition | str.tipped_off INT DEFAULT 0 CHECK(tipped_off=0) — immutable at DB |
| SPG Art. 17 | STR filing deadline (5 days) | filing_deadline stored; batch job enforces |
| FATF R.8 | Transaction screening | Typology rules mapped to FATF typologies |
References
Referenced by
- refAPI-to-Process Cross-Reference
- refPhase 1–3 Verification Checklist
- refRegulatory Framework × Artifact Mapping
- ServiceAIB Compliance Service API
- ServiceAIB Operations Service API
- ProcessPROC-002: AML Investigation & STR Filing
- ProcessPROC-013: MiCA Crypto-Asset Custody & DLT Settlement
- ScreenSCR-AML — AML & Sanctions Screens
- ScreenSCR-PAY — Payments & Reconciliation Screens
- DocAIB Application Build PRD
- DocAIB Cloud Infrastructure Research — Best-in-Class Secure Cloud for a Liechtenstein/EEA Private Bank
- DocAIB Data Ownership Matrix (RACI)
- DocAIB Human-in-the-Loop Approval Inbox
- DocAIB Non-Functional Requirements & SLO Register
- DocAIB Solution Building Block (SBB) Catalog
- GovernanceAIB Agent Security & Threat Model
- GovernanceAIB AMLA 2027 Transition Plan
- GovernanceAIB Security Threat Model (STRIDE)
- GovernanceAIB TIBER-EU Threat-Led Penetration Testing Program