# Sanctions Credential Issuance
## Sequence Diagrams
### SSI Service Webhooks
```mermaid
sequenceDiagram
autonumber
participant A as Applicant
participant SSI as SSI Service
participant B as Custom System
participant V as Vendor API
participant N as Notary
A->>SSI: Request Credential Manifest
SSI->>A: Credential Manifest
A->>SSI: Submit Credential Application
SSI->>A: ACK
SSI->>SSI: Integrity check
SSI->>B: Trigger Webhook
B->>V: Sanctions Check
V->>B: Result
B->>B: Take Vendor Result and make decision. Issue/Reject/Hold
alt Hold
N->>N: OFAC analyst submits decision
N->>B: Issue/Reject
else Reject
B->>SSI: Update Application Status
B->>A: Deliver Rejection Notice?
else Issue
B->>N: enqueue application to be reviewed by OFAC analyst
B->>SSI: Update Application Status
SSI->>SSI: Create Credential
B->>A: Deliver Credential?
end
```
### Custom System in front
```mermaid
sequenceDiagram
autonumber
participant A as Applicant
participant B as Custom System
participant V as Vendor API
participant N as Notary
participant SSI as SSI Service
A->>B: Request Credential Manifest
B->>A: Credential Manifest
A->>B: Submit Credential Application
B->>A: ACK
B->>V: Sanctions Check
V->>B: Result
B->>B: Take Vendor Result and make decision. Issue/Reject/Hold
alt Hold
B->>N: enqueue application to be reviewed by OFAC analyst
N->>N: OFAC analyst submits decision
N->>B: Issue/Reject
else Reject
B->>A: Deliver Rejection Notice
else Issue
B->>SSI: Create Credential
SSI->>B: Credential
B->>A: Deliver Credential
end
```
### SSI Service Setup
Using the SSI Console we need to:
* Create a Credential Manifest for Sanctions Credential
* Create Credential Schema for Sanctions Credential