---
description: These are verifiable credentials JSON examples.
---

# Schemas (JSON Examples)

<details>

<summary>StudentID (MyAcademicID) (v1)</summary>

{% code lineNumbers="true" %}
```json
{
    "credentialSubject": {
        "identifier": [
            {
                "schemeID": "European Student Identifier",
                "value": "urn:schac:personalUniqueCode:int:esi:gataca.test:XXXYYYZZZ",
                "id": "urn:schac:personalUniqueCode:int:esi:gataca.test:XXXYYYZZZ"
            }
        ],
        "firstName": "John",
        "familyName": "Doe"
    }
}
```
{% endcode %}

</details>

<details>

<summary>MyAcademicID (v2)</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "communityUserIdentifier": "XXXXXXXXXXXXX@erasmus.eduteams.org",
    "displayName": "Jane Doe",
    "givenName": "Jane",
    "familyName": "Doe",
    "emailAddress": "jane.doe@gataca.io",
    "assurance": [
      "https://refeds",
      "https://refeds/ID/unique",
      "https://refeds/ID/eppn-unique-no-reassign",
      "https://refeds/IAP/low",
      "https://refeds$/ATP/ePA-1m",
      "https://refeds/ATP/ePA-1d"
    ]
  }
}
```
{% endcode %}

</details>

<details>

<summary>Verifiable Diploma</summary>

{% code lineNumbers="true" %}
```json
{
    "credentialSubject": {
        "identifier": {
            "schemeID": "Student identification number",
            "value": "XXXYYYZZZ"
        },
        "achieved": [
            {
                "id": "urn:epass:learningAchievement:1",
                "identifier": [
                    {
                        "schemeID": "XXX Certificate ID",
                        "value": "XXXYYYZZZ"
                    }
                ],
                "specifiedBy": [
                    {
                        "id": "urn:epass:qualification:1",
                        "eqflLevel": "http: //data.europa.eu/snb/eqf/6",
                        "title": "Software Engineer"
                    }
                ],
                "title": "Software Engineer",
                "wasAwardedBy": {
                    "awardingBody": [
                        "Gataca University"
                    ],
                    "awardingDate": "2008-10-18T00:00:00Z",
                    "awardingLocation": [
                        "https: //essif.europa.eu/madrid"
                    ],
                    "id": "urn:epass:awardingProcess:1"
                },
                "hasPart": {
                    "learningAchievements": [
                        {
                            "id": "urn:epass:learningAchievement:XXXYYYYZZZ",
                            "specifiedBy": [
                                {
                                    "id": "urn:epass:qualification:2",
                                    "title": "Data Structures",
                                    "volumeOfLearning": "6"
                                }
                            ],
                            "title": "Data Structures",
                            "wasDerivedFrom": [
                                {
                                    "grade": "18",
                                    "id": "urn:epass:assessment:2",
                                    "title": "Data Structures"
                                }
                            ]
                        },
                        {
                            "id": "urn:epass:learningAchievement:XXXXYYYZZZZ",
                            "specifiedBy": [
                                {
                                    "id": "urn:epass:qualification:3",
                                    "title": "Programming II",
                                    "volumeOfLearning": "6"
                                }
                            ],
                            "title": "Programming II",
                            "wasDerivedFrom": [
                                {
                                    "grade": "15",
                                    "id": "urn:epass:assessment:3",
                                    "title": "Programming II"
                                }
                            ]
                        },
                        {
                            "id": "urn:epass:learningAchievement:4",
                            "specifiedBy": [
                                {
                                    "id": "urn:epass:qualification:4",
                                    "title": "Computer Architecture",
                                    "volumeOfLearning": "6"
                                }
                            ],
                            "title": "Computer Architecture",
                            "wasDerivedFrom": [
                                {
                                    "grade": "15",
                                    "id": "urn:epass:assessment:4",
                                    "title": "Computer Architecture"
                                }
                            ]
                        },
                        {
                            "id": "urn:epass:learningAchievement:5",
                            "specifiedBy": [
                                {
                                    "id": "urn:epass:qualification:5",
                                    "title": "Artificial Intelligence",
                                    "volumeOfLearning": "6"
                                }
                            ],
                            "title": "Artificial Intelligence",
                            "wasDerivedFrom": [
                                {
                                    "grade": "15",
                                    "id": "urn:epass:assessment:5",
                                    "title": "Artificial Intelligence"
                                }
                            ]
                        }
                    ]
                }
            }
        ]
    }
}

```
{% endcode %}

</details>

<details>

<summary>Conference Ticket</summary>

{% code lineNumbers="true" %}
```json
{
    "credentialSubject": {
        "familyName": "Doe",
        "firstName": "Jane",
        "company": "Gataca",
        "role": "Placeholder",
        "eventName": "Mobile World Congress '23",
        "ticketType": "Startup"
    },
    "expirationDate": "2026-03-05T19:23:24Z"
}
```
{% endcode %}

</details>

<details>

<summary>Bank Account</summary>

{% code lineNumbers="true" %}
```json
{
   "credentialSubject":{
         "accountNumber":"ES0000000000000000",
         "averageBalance":"17348",
         "averageBalanceYear":"136704",
         "bankName":"ACME Bank",
         "firstName":"John",
         "lastName":"Doe",
         "swift":"AAAA-BB-CC-123"
   },
   "expirationDate": "2025-03-05T19:23:24Z"
}
```
{% endcode %}

</details>

<details>

<summary>Credit Card</summary>

{% code lineNumbers="true" %}
```json
{
      "credentialSubject": {
            "cardNumber": "1234 5678 9012 3456",
            "holderName": "Name Last Name",
            "expiryMonth": "12",
            "expiryYear": "2024",
            "cvv":"123"
      },
      "type": [
            "VerifiableCredential",
            "creditCardCredential"
      ],
      "expirationDate": "2024-12-01T19:23:24Z"
}
```
{% endcode %}

</details>

<details>

<summary>Workshop Ticket</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
        "workshopRef": ["urn:schac:workshopID:test:test:test"],
        "display": "Jane Doe",
        "givenName": "Jane",
        "familyName": "Doe",
        "email": "jane@doe.io"
    }
}
```
{% endcode %}

</details>

<details>

<summary>Alliance ID</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "identifier": {
      "schemeID": "test",
      "value": "test"
    }
  }
}
```
{% endcode %}

</details>

<details>

<summary>Education ID</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "identifier": "xxxxxxx",
    "schacPersonalUniqueCode": ["yyyyyy"],
    "schacPersonalUniqueID": "urn:schac:personalUniqueID:es:zzzzzz",
    "schacHomeOrganization": "Gataca",
    "familyName": "Doe",
    "firstName": "Jane",
    "displayName": "Jane",
    "dateOfBirth": "1983-03-05",
    "commonName": "Jane Doe",
    "mail": "jane.doe@gataca.io",
    "eduPersonPrincipalName": "xxxxyyyyyzzzzz",
    "eduPersonPrimaryAffiliation": "member",
    "eduPersonAffiliation": ["member", "stuff"],
    "eduPersonScopedAffiliation": ["affiliation1"],
    "eduPersonAssurance": ["assurance1"]
  }
}
```
{% endcode %}

</details>

<details>

<summary>Verifiable Key (keyCredential)</summary>



</details>

<details>

<summary>Boarding Pass (boardingPassCredential)</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "subjectIdentifier": "12345678M",
    "ticketIdentifier": "79K65ES",
    "ticketPrice": "342.12",
    "lastName": "Doe",
    "firstName": "Jane",
    "seatType": "Turist",
    "seatNumber": "56F",
    "departureDate": "2024-03-14T14:00:00Z",
    "arrivalDate": "2024-03-14T17:00:00Z",
    "arrivalPlace": "ROM",
    "vehicleDescription": "4354-LF"
  }
}
```
{% endcode %}

</details>

<details>

<summary>ePrescription (ePrescriptionCredential)</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "identifier": "123456",
    "name": "Dexketoprofeno",
    "sku": "A675GTR-23",
    "quantity": 2
  },
  "expirationDate": "2026-03-14T12:00:00Z"
}
```
{% endcode %}

</details>

<details>

<summary>Verifiable Birth Certificate (birthCertificateCredential)</summary>

{% code lineNumbers="true" %}
```json
{
  "credentialSubject": {
    "reference": "ABC-123-XZ",
    "lastName": "Doe",
    "firstName": "Jane",
    "dateOfBirth": "1983-06-21T02:23:24Z",
    "placeOfBirth": "Madrid",
    "countryOfBirth": "Spain",
    "gender": "Female",
    "nationality": "Spanish"
  }
}
```
{% endcode %}

</details>

<details>

<summary>EDC (ELM 3.2)</summary>

{% code lineNumbers="true" %}
```json
[
    {
        "@context": ["https://www.w3.org/ns/credentials/v2"],
        "credentialSubject": {
            "type": "Person",
            "identifier": [
                {
                    "id": "urn:epass:identifier:2",
                    "type": "Identifier",
                    "notation": "5412254",
                    "schemeName": "Student Identifier"
                }
            ],
            "givenName": {
                "en": [
                    "David"
                ]
            },
            "familyName": {
                "en": [
                    "Smith"
                ]
            },
            "fullName": {
                "en": [
                    "David Smith"
                ]
            },
            "hasClaim": [
                {
                    "id": "urn:epass:learningAchievement:1",
                    "type": "LearningAchievement",
                    "awardedBy": {
                        "id": "urn:epass:awardingProcess:1",
                        "type": "AwardingProcess",
                        "awardingBody": [
                            {
                                "id": "urn:epass:org:1",
                                "type": "Organisation",
                                "location": [
                                    {
                                        "id": "urn:epass:location:1",
                                        "type": "Location",
                                        "address": [
                                            {
                                                "id": "urn:epass:address:1",
                                                "type": "Address",
                                                "countryCode": {
                                                    "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                                    "type": "Concept",
                                                    "inScheme": {
                                                        "id": "http://publications.europa.eu/resource/authority/country",
                                                        "type": "ConceptScheme"
                                                    },
                                                    "prefLabel": {
                                                        "en": [
                                                            "Belgium"
                                                        ]
                                                    },
                                                    "notation": "country"
                                                },
                                                "fullAddress": {
                                                    "id": "urn:epass:note:1",
                                                    "type": "Note",
                                                    "noteLiteral": {
                                                        "en": [
                                                            "Here"
                                                        ]
                                                    }
                                                }
                                            }
                                        ],
                                        "description": {
                                            "en": [
                                                "The Address"
                                            ]
                                        }
                                    }
                                ],
                                "legalName": {
                                    "en": [
                                        "University of Life"
                                    ]
                                },
                                "registration": {
                                    "id": "urn:epass:legalIdentifier:2",
                                    "type": "LegalIdentifier",
                                    "notation": "987654321",
                                    "spatial": {
                                        "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                        "type": "Concept",
                                        "inScheme": {
                                            "id": "http://publications.europa.eu/resource/authority/country",
                                            "type": "ConceptScheme"
                                        },
                                        "prefLabel": {
                                            "en": [
                                                "Belgium"
                                            ]
                                        },
                                        "notation": "country"
                                    }
                                }
                            }
                        ]
                    },
                    "description": {
                        "en": [
                            "has attended the Europass Digital Credentials Live Webinar"
                        ]
                    },
                    "title": {
                        "en": [
                            "Certificate of Completion"
                        ]
                    },
                    "specifiedBy": {
                        "id": "urn:epass:learningAchievementSpec:1",
                        "type": "LearningAchievementSpecification",
                        "title": {
                            "en": [
                                "Certificate of Completion"
                            ]
                        }
                    }
                },
                {
                    "id": "urn:epass:activity:1",
                    "type": "LearningActivity",
                    "awardedBy": {
                        "id": "urn:epass:awardingProcess:1",
                        "type": "AwardingProcess",
                        "awardingBody": [
                            {
                                "id": "urn:epass:org:1",
                                "type": "Organisation",
                                "location": [
                                    {
                                        "id": "urn:epass:location:1",
                                        "type": "Location",
                                        "address": [
                                            {
                                                "id": "urn:epass:address:1",
                                                "type": "Address",
                                                "countryCode": {
                                                    "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                                    "type": "Concept",
                                                    "inScheme": {
                                                        "id": "http://publications.europa.eu/resource/authority/country",
                                                        "type": "ConceptScheme"
                                                    },
                                                    "prefLabel": {
                                                        "en": [
                                                            "Belgium"
                                                        ]
                                                    },
                                                    "notation": "country"
                                                },
                                                "fullAddress": {
                                                    "id": "urn:epass:note:1",
                                                    "type": "Note",
                                                    "noteLiteral": {
                                                        "en": [
                                                            "Here"
                                                        ]
                                                    }
                                                }
                                            }
                                        ],
                                        "description": {
                                            "en": [
                                                "The Address"
                                            ]
                                        }
                                    }
                                ],
                                "legalName": {
                                    "en": [
                                        "University of Life"
                                    ]
                                },
                                "registration": {
                                    "id": "urn:epass:legalIdentifier:2",
                                    "type": "LegalIdentifier",
                                    "notation": "987654321",
                                    "spatial": {
                                        "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                        "type": "Concept",
                                        "inScheme": {
                                            "id": "http://publications.europa.eu/resource/authority/country",
                                            "type": "ConceptScheme"
                                        },
                                        "prefLabel": {
                                            "en": [
                                                "Belgium"
                                            ]
                                        },
                                        "notation": "country"
                                    }
                                }
                            }
                        ]
                    },
                    "title": {
                        "en": [
                            "Watching presentations and EDC demo during the webinar"
                        ]
                    },
                    "directedBy": [
                        {
                            "id": "urn:epass:org:1",
                            "type": "Organisation",
                            "location": [
                                {
                                    "id": "urn:epass:location:1",
                                    "type": "Location",
                                    "address": [
                                        {
                                            "id": "urn:epass:address:1",
                                            "type": "Address",
                                            "countryCode": {
                                                "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                                "type": "Concept",
                                                "inScheme": {
                                                    "id": "http://publications.europa.eu/resource/authority/country",
                                                    "type": "ConceptScheme"
                                                },
                                                "prefLabel": {
                                                    "en": [
                                                        "Belgium"
                                                    ]
                                                },
                                                "notation": "country"
                                            },
                                            "fullAddress": {
                                                "id": "urn:epass:note:1",
                                                "type": "Note",
                                                "noteLiteral": {
                                                    "en": [
                                                        "Here"
                                                    ]
                                                }
                                            }
                                        }
                                    ],
                                    "description": {
                                        "en": [
                                            "The Address"
                                        ]
                                    }
                                }
                            ],
                            "legalName": {
                                "en": [
                                    "University of Life"
                                ]
                            },
                            "registration": {
                                "id": "urn:epass:legalIdentifier:2",
                                "type": "LegalIdentifier",
                                "notation": "987654321",
                                "spatial": {
                                    "id": "http://publications.europa.eu/resource/authority/country/BEL",
                                    "type": "Concept",
                                    "inScheme": {
                                        "id": "http://publications.europa.eu/resource/authority/country",
                                        "type": "ConceptScheme"
                                    },
                                    "prefLabel": {
                                        "en": [
                                            "Belgium"
                                        ]
                                    },
                                    "notation": "country"
                                }
                            }
                        }
                    ],
                    "specifiedBy": {
                        "id": "urn:epass:learningActivitySpec:1",
                        "type": "LearningActivitySpecification",
                        "title": {
                            "en": [
                                "Watching presentations and EDC demo during the webinar"
                            ]
                        },
                        "dcType": [
                            {
                                "id": "http://data.europa.eu/snb/learning-activity/efff75e10a",
                                "type": "Concept",
                                "inScheme": {
                                    "id": "http://data.europa.eu/snb/learning-activity/25831c2",
                                    "type": "ConceptScheme"
                                },
                                "prefLabel": {
                                    "en": [
                                        "workshop, seminar or conference"
                                    ]
                                }
                            }
                        ],
                        "language": [
                            {
                                "id": "http://publications.europa.eu/resource/authority/language/ENG",
                                "type": "Concept",
                                "inScheme": {
                                    "id": "http://publications.europa.eu/resource/authority/language",
                                    "type": "ConceptScheme"
                                },
                                "prefLabel": {
                                    "en": [
                                        "English"
                                    ]
                                },
                                "notation": "language"
                            }
                        ],
                        "mode": [
                            {
                                "id": "http://data.europa.eu/snb/learning-assessment/920fbb3cbe",
                                "type": "Concept",
                                "inScheme": {
                                    "id": "http://data.europa.eu/snb/learning-assessment/25831c2",
                                    "type": "ConceptScheme"
                                },
                                "prefLabel": {
                                    "en": [
                                        "Online"
                                    ]
                                }
                            }
                        ]
                    },
                    "workload": "PT1H"
                }
            ]
        },
        "type": [
            "VerifiableCredential",
            "edcCredential"
        ]
    }
]
```
{% endcode %}

</details>

<details>

<summary>Legal age (ageCredential) - <a href="https://s3.eu-west-1.amazonaws.com/gataca.io/schemas/legalAgeCredential_v2.json">Schema</a></summary>

{% code lineNumbers="true" %}
```json
{
    "credentialSubject": {
        "legalAge": "18+"
    },
    "type": [
        "VerifiableCredential",
        "ageCredential"
    ]
}
```
{% endcode %}

</details>

<details>

<summary>Employee (employeeCredential) - <a href="https://s3.eu-west-1.amazonaws.com/gataca.io/schemas/employeeCredential.json">Schema</a></summary>

{% code lineNumbers="true" %}
```json
{
    "credentialSubject": {
        "employee": "xxxxxxxxx"
    },
    "type": [
        "VerifiableCredential",
        "employeeCredential"
    ]
}
```
{% endcode %}

</details>

<details>

<summary>OpenBadge (OpenBadgeCredential)</summary>

```json
[
    {
        "@context": [
            "https://www.w3.org/ns/credentials/v2",
            "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
        ],
        "credentialSubject": {
            "type": [
                "AchievementSubject"
            ],
            "achievement": {
                "type": [
                    "Achievement"
                ],
                "name": "Decentralized Identity in Education",
                "description": "This certificate acknowledges successful completion of the course 'Decentralized Identity in Education', exploring applications of decentralized identity systems in the educational field.",
                "campaign": "campaing_test",
                "criteria": {}
            },
            "activityStartDate": "2024-01-01T00:00:00Z",
            "activityEndDate": "2024-01-31T00:00:00Z",
            "recipient": {
                "givenName": "John",
                "familyName": "Doe"
            }
        },
        "validFrom": "2024-11-21T12:00:00Z",
        "type": [
            "VerifiableCredential",
            "OpenBadgeCredential"
        ]
    }
]
```

</details>
