## VC Issuance request
### OID4VCI config
Get exsting config
GET: https://profile.godiddy.com/1.0.0/profile/metadata/oid4vci
Add new config
PUT: https://profile.godiddy.com/1.0.0/profile/metadata/oid4vci
Body
```json
{
"credentialConfigurations": {
"EuPid2023_sd_jwt": {
"format": "vc+sd-jwt",
"vct": "urn:eu.europa.ec.eudi:pid:1",
"issuer": {
"kid": "did:key:zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka#zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka",
"id": "did:key:zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka",
"name": "Universal Issuer",
"image": "https://uniissuer.io/images/logo.jpg"
},
"scope": "urn:eu.europa.ec.eudi:pid:1",
"credential_signing_alg_values_supported": [
"ES256",
"EdDSA"
],
"cryptographic_binding_methods_supported": [
"did:key",
"did:jwk",
"jwk"
],
"proof_types_supported": [
"ES256",
"EdDSA"
]
},
"EuPid2023_jwt_vc_json": {
"format": "jwt_vc_json",
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
"EuPid2023"
],
"issuer": {
"id": "did:key:zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka",
"name": "Universal Issuer",
"image": "https://uniissuer.io/images/logo.jpg",
"kid": "did:key:zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka#zDnaeyrgmBM8V4rvG4A2YtytZgyF5yLFuG5gqqvKf4dvtmgka"
},
"scope": "urn:eu.europa.ec.eudi:pid:1",
"credential_signing_alg_values_supported": [
"ES256",
"EdDSA"
],
"cryptographic_binding_methods_supported": [
"did:key",
"did:jwk",
"jwk"
],
"proof_types_supported": [
"ES256",
"EdDSA"
]
}
}
}
```
### Initialize VC issuance
POST: https://api.godiddy.com/1.0.0/universal-issuer-oid4vci/v13/authorize/pre-authorize
body:
```json
{
"claims": {
"issuanceDate": "2023-11-15T10:00:00-07:00",
"expirationDate": "2027-11-15T12:00:00-06:00",
"credentialSubject": {
"family_name": "Abt",
"given_name": "Bernd",
"birth_date": "1962.10.26",
"age_over_12": true,
"age_over_14": true,
"age_over_16": true,
"age_over_18": true,
"age_over_21": true,
"age_in_years": 62,
"age_birth_year": 1992,
"family_name_birth": "Abt",
"given_name_birth": "Bernd",
"birth_place": "Innsbrucl",
"birth_country": "AT",
"birth_state": "Tirol",
"birth_city": "Innsbruck",
"resident_address": "Dorfstrasse 58,3100 St. Poelten",
"resident_country": "AT",
"resident_state": "Niederoesterreich",
"resident_city": "St. Poelten",
"resident_postal_code": "3100",
"resident_street": "Dorfstrasse",
"resident_house_number": "58",
"sex": 0,
"nationality": [
"AT"
],
"issuance_date": "2025-03-13T13:40:05Z",
"expiry_date": "2027-03-13T13:40:05Z",
"issuing_authority": "Miniwahr",
"document_number": "50b84d41-8d9b-48f0-b5b6-e3b4a7e48455",
"administrative_number": "",
"issuing_country": "AT",
"issuing_jurisdiction": "AT-0",
"personal_administrative_number": "6b25b9ce-8da7-40d4-9ef7-550719aa361b",
"email_address": "abt.bernd@example.com",
"mobile_phone_number": "+431234567890"
}
},
"schema": "EuPid2023_sd_jwt",
"credentialStatus": {
"type": "StatusList2021Entry",
"options": {
"issuerDid": "did:key:zDnaeXPwKyi5isPCAfNMj1SG3QDMWYqQFcdCwvvLosQ3zg1mo",
//"listSize": "100000",
//"statusListIndex": "100",
"revocationListId": "latest-revocation-service-test"
}
}
}
```
Response
```
openid-credential-offer://?credential_offer=%7B%22credential_issuer%22%3A%22https%3A%2F%2Foid4vci.dev.godiddy.com%2F1.0%2F2396f46d-c4cf-4d57-bd2c-bac5274fe1ec%2Fv13%22%2C%22credential_configuration_ids%22%3A%5B%22EuPid2023_sd_jwt%22%5D%2C%22grants%22%3A%7B%22urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Apre-authorized_code%22%3A%7B%22pre-authorized_code%22%3A%227b8e5688-971b-4fcf-92bf-cebd2d574bbe%22%7D%7D%7D
```
embedd the response to QR code and initialize the VC issuance
## VP Verification
### Config
Get existing config
GET: https://profile.godiddy.com/1.0.0/profile/metadata/oid4vci
Add new config
PUT: https://profile.godiddy.com/1.0.0/profile/metadata/oid4vci
Body
```
{
"clientConfig": {
"responseMode": "direct_post",
"responseType": "vp_token",
"clientIdScheme": "did",
"clientDid": "did:key:zDnaeaTvw1DePvBCZvdHUGcoDQNvt8RSFPKzH4TTtBy4zWX9L",
"clientKid": "did:key:zDnaeaTvw1DePvBCZvdHUGcoDQNvt8RSFPKzH4TTtBy4zWX9L#zDnaeaTvw1DePvBCZvdHUGcoDQNvt8RSFPKzH4TTtBy4zWX9L",
"clientMetadata": {
"vp_formats": {
"jwt_vp_json": {
"alg": [
"ES256"
]
},
"jwt_vc_json": {
"alg": [
"ES256"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
}
}
},
"presentationDefinitions": {
"EuPid2023_sd_jwt": {
"id": "urn:eu.europa.ec.eudi:pid:1#vc+sd-jwt",
"input_descriptors": [
{
"id": "urn:eu.europa.ec.eudi:pid:1#vc+sd-jwt",
"format": {
"vc+sd-jwt": {
"sd-jwt_alg_values": [
"ES256",
"EdDSA"
],
"kb-jwt_alg_values": [
"ES256",
"EdDSA"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vct"
],
"filter": {
"type": "string",
"pattern": "urn:eu.europa.ec.eudi:pid:1"
}
},
{
"path": [
"$[\"given_name\"]"
],
"optional": true,
"filter": {
"type": "string",
"pattern": "^[a-zA-Z]+$"
}
},
{
"path": [
"$[\"family_name\"]"
],
"optional": true,
"filter": {
"type": "string",
"pattern": "^[a-zA-Z]+$"
}
}
]
}
}
]
},
"EuPid2023_jwt_vc_json": {
"id": "EuPid2023#jwt_vc_json",
"input_descriptors": [
{
"id": "EuPid2023#jwt_vc_json",
"format": {
"jwt_vp_json": {
"alg": [
"ES256",
"EdDSA"
]
},
"jwt_vc_json": {
"alg": [
"ES256",
"EdDSA"
]
},
"jwt_vc": {
"alg": [
"ES256",
"EdDSA"
]
},
"jwt_vp": {
"alg": [
"ES256",
"EdDSA"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vc.type[1]",
"$.type[1]"
],
"filter": {
"type": "string",
"pattern": "EuPid2023"
}
}
]
}
}
]
}
}
}
```
### Initialize Presentation Request
GET: https://api.godiddy.com/1.0.0/universal-verifier-oid4vp/authorization/authorize?presentationDefinitionIds=EuPid2023_sd_jwt
Response:
```json
{
"qrCodeData": "openid://?request_uri=https%3A%2F%2Foid4vp.godiddy.com%2F1.0%2F2396f46d-c4cf-4d57-bd2c-bac5274fe1ec%2Fd3ff3338-f155-4723-9ce5-099da85ac19d%2Fauthorization%2Frequest%2Fd3ff3338-f155-4723-9ce5-099da85ac19d",
"state": "d3ff3338-f155-4723-9ce5-099da85ac19d",
"verificationResult": "https://oid4vp.godiddy.com/1.0/2396f46d-c4cf-4d57-bd2c-bac5274fe1ec/authorization/verification-result/d3ff3338-f155-4723-9ce5-099da85ac19d"
}
```
### Get Verfication result
GET: https://oid4vp.godiddy.com/1.0/2396f46d-c4cf-4d57-bd2c-bac5274fe1ec/authorization/verification-result/d3ff3338-f155-4723-9ce5-099da85ac19d
Response:
```
{
"state": "pending",
"verified": false,
"claims": null
}
```