DevelopersDevelopers

Schemas (JSON Examples)

These are verifiable credentials JSON examples.

Education

European Student Card (ESC) - Schema
json
[  {    "credentialSubject": {      "contactPoint": {        "emailAddress": "jane.doe@gataca.io",        "phone": "+34 666777888"      },      "enrollmentIn": {        "academicLevel": {          "notation": "Bachelor",          "prefLabel": {            "en": "Bachelor level"          },          "type": "Code"        },        "nonISCEDFthematicArea": {          "en": "Mechanical Engineering"        },        "thematicArea": {          "id": "http://example.org/iscedf/0710",          "inScheme": "http://example.org/iscedf/",          "prefLabel": {            "en": "Engineering and engineering trades"          },          "type": "Concept"        },        "type": "Enrollment"      },      "fullName": {        "en": "Jane Doe"      },      "identifier": {        "dcType": "ESI",        "notation": "ESI123456789",        "type": "Identifier"      },      "personAffiliation": "student",      "type": "Person"    },    "type": ["VerifiableCredential", "europeanStudentCard"]  }]
OpenBadge (AchievementCredential) - Schema
json
[  {    "@context": [      "https://www.w3.org/ns/credentials/v2",      "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"    ],    "credentialSubject": {      "achievement": {        "achievementType": "CertificateOfCompletion",        "criteria": {          "id": "https://example.edu/courses/data-science-101/criteria",          "narrative": "Completed all modules and passed the final assessment with a score of at least 85%.",          "type": ["Criteria"]        },        "description": "Completed the introductory Data Science 101 course.",        "id": "https://example.edu/achievements/data-science-101",        "name": "Data Science 101",        "type": ["Achievement"]      },      "type": ["AchievementSubject"]    },    "type": ["VerifiableCredential", "AchievementCredential"]  }]
ELM 3.3 - (Micro-credentials, Diploma, ToS, etc.) Schema
json
[  {    "@context": ["https://www.w3.org/2018/credentials/v1"],    "credentialSubject": {      "credentialProfile": "EDC-generic",      "learningAchievement": {        "id": "urn:uuid:8a3e8b91-7f47-4c2d-8d71-9d5a64a3c1f2",        "title": {          "en": "Microcredential in Digital Identity Foundations"        },        "description": {          "en": "This microcredential certifies the successful completion of a short learning programme on digital identity and trust services."        },        "learningOutcome": [          {            "id": "urn:uuid:lo-1",            "description": {              "en": "Understand the principles of decentralized identity and verifiable credentials."            }          },          {            "id": "urn:uuid:lo-2",            "description": {              "en": "Explain the role of trust frameworks in digital identity ecosystems."            }          }        ],        "creditPoint": {          "framework": "ECTS",          "value": 2        },        "awardingBody": {          "id": "did:web:university.example.eu",          "legalName": {            "en": "Example European University"          }        }      }    },    "type": ["VerifiableCredential", "EuropeanDigitalCredential"]  }]
Alliance ID
json
{  "credentialSubject": {    "identifier": {      "schemeID": "test",      "value": "test"    }  }}
Workshop Ticket
json
{  "credentialSubject": {    "workshopRef": ["urn:schac:workshopID:test:test:test"],    "display": "Jane Doe",    "givenName": "Jane",    "familyName": "Doe",    "email": "jane@doe.io"  }}
StudentID (MyAcademicID) (v1)
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"  }}
MyAcademicID (v2)
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"    ]  }}
Diploma
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"                }              ]            }          ]        }      }    ]  }}
Transcript of Records (ToR) - Schema
json
{  "credentialSubject": {    "achieved": [      {        "id": "urn:uuid:8f6d4f6a-6d9c-4c77-9c62-2f6c1bca8f10",        "title": "Bachelor of Computer Science",        "wasAwardedBy": {          "awardingBody": ["Example University"],          "awardingDate": "2026-02-10T00:00:00Z",          "awardingLocation": ["https://example.edu/campuses/main"],          "id": "urn:uuid:31f3e9a7-0e0d-4f7c-a3a8-4b8d1d7b7f4e"        }      }    ]  },  "type": ["VerifiableCredential", "transcriptOfRecordsCredential"]}
Education ID
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"]  }}
EDC (ELM 3.2)
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"]  }]

Event

Conference Ticket
json
{  "credentialSubject": {    "familyName": "Doe",    "firstName": "Jane",    "company": "Gataca",    "role": "Placeholder",    "eventName": "Mobile World Congress '23",    "ticketType": "Startup"  },  "expirationDate": "2026-03-05T19:23:24Z"}
Participant (ParticipantCredential) - Schema
json
[  {    "credentialSubject": {      "firstName": "John",      "familyName": "Doe",      "participantId": "00004134",      "issuerName": "ACME" // ---> optional    },    "expirationDate": "2027-01-01T00:00:00Z", // ---> optional    "type": ["VerifiableCredential", "ParticipantCredential"]  }]

Banking

Bank Account
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"}
Credit Card
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"}

Identity

Birth Certificate (birthCertificateCredential)
json
{  "credentialSubject": {    "reference": "ABC-123-XZ",    "lastName": "Doe",    "firstName": "Jane",    "dateOfBirth": "1983-06-21T02:23:24Z",    "placeOfBirth": "Madrid",    "countryOfBirth": "Spain",    "gender": "Female",    "nationality": "Spanish"  }}

Travel

Boarding Pass (boardingPassCredential)
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"  }}
Verifiable Key (keyCredential)

Healthcare

ePrescription (ePrescriptionCredential)
json
{  "credentialSubject": {    "identifier": "123456",    "name": "Dexketoprofeno",    "sku": "A675GTR-23",    "quantity": 2  },  "expirationDate": "2026-03-14T12:00:00Z"}

Enterprise

Organization Data Exchange (TrustBridge) - Schema
json
[  {    "credentialSubject": {      "exchange": {        "data": [          {            "content": {              "academicYear": "2025/26",              "hostInstitution": "University of Gataca",              "program": "Erasmus+ Mobility for Studies",              "students": [                {                  "email": "sophie.janssens@gataca.io",                  "familyName": "Janssens",                  "fieldOfStudy": "Engineering",                  "givenName": "Sophie",                  "plannedPeriod": {                    "endDate": "2026-02-15",                    "startDate": "2025-09-15"                  },                  "studentId": "GAT-2025-001"                },                {                  "email": "thomas.peeters@gataca.io",                  "familyName": "Peeters",                  "fieldOfStudy": "Economics",                  "givenName": "Thomas",                  "plannedPeriod": {                    "endDate": "2026-06-30",                    "startDate": "2025-09-15"                  },                  "studentId": "GAT-2025-002"                }              ]            },            "descriptor": {              "mediaType": "application/json",              "schema": "https://schema.org/Person",              "title": "List of Gataca students nominated for Erasmus at Madrid (AY 2025/26)",              "version": "1.0"            },            "id": "student-roster-2025-2026"          }        ],        "exchangeId": "erasmus-2025-2026-gataca",        "legalBasis": "Erasmus+ Inter-Institutional Agreement 2025/IIA/067",        "participants": [          {            "contact": {              "email": "erasmus.office@gataca.io",              "url": "https://www.gataca.io"            },            "id": "did:example:org:gataca",            "name": "Gataca",            "role": "sender"          },          {            "contact": {              "email": "relint@acme.io",              "url": "https://www.acme.io"            },            "id": "did:example:org:acme",            "name": "University of ACMe",            "role": "recipient"          }        ],        "permissions": [          {            "action": "use",            "constraints": ["purpose:student-mobility-administration"],            "grantedTo": "recipient"          },          {            "action": "store",            "constraints": ["ttl:one-academic-year"],            "grantedTo": "recipient"          }        ],        "provenance": [          {            "at": "2025-10-02T12:40:00Z",            "by": "did:example:org:gataca",            "note": "Roster generated by Gataca Erasmus office",            "type": "created"          },          {            "at": "2025-10-02T12:45:00Z",            "by": "did:example:org:gataca",            "note": "Sent securely to Gataca via Exchange Credential",            "type": "forwarded"          }        ],        "purpose": "Exchange of nominated students for Erasmus+ mobility programme",        "retention": "Delete after end of academic year 2025/26",        "termsOfUse": [          {            "type": "link",            "value": "https://www.gataca.io/erasmus-data-sharing-terms"          }        ]      }    },    "type": ["VerifiableCredential", "dataExchange"]  }]
Employee (employeeCredential) - Schema
json
{  "credentialSubject": {    "employee": "xxxxxxxxx"  },  "type": ["VerifiableCredential", "employeeCredential"]}