
This sequence Diagram illustrates the end-to-end credential issuance flow. We'll be walking you through all of the steps required in order to issue Alice a new status of employment Verifiable Credential.
[TOC]
# SSI Service Setup
## Clone & Run
## Create Issuer DID
## Create Credential Schema
# ACME Custom Backend Logic
Alright, now we need to set up an API endpoint that:
1. Receives a request from ACME's Employee Portal (http.post(did))
2. Gathers the necessary data to include in the Employement Status Credential
3. Sends that data to ACME's SSI Service to create a credential (vc PUT request is run with Alice's DID, Acme's DID, and Schema ID)
4. Receives the created credential from the SSI Service
5. Returns that Credential in the response to the request received in step 1 (web5.did.deliver(vc))
To speed things up, we've created one for you to embded into your site...
1. clone {{link to Acme’s backend}}
2. run Acme’s backend
Main Flow that will happen after Alice chooses which DID to send...this is what will happen next...
```javascript=
onClick() {
const did = await web5.did.request() // Requests a DID from Alice
const vc = await http.post(did) // backend server replies with the vc to then pass to did.deliver
await web5.did.deliver(vc) // Deliver the credential to alice!
}
```
# Credential Delivery
Ok! the Verifiable Credential has made its way to the Employee Portal, we now just have to deliver it to Alice's Wallet!