Canonical URL

TicketCertificate Credential

The credential issued for ticket ownership

Canonical URL
Property Description
familyName schema.org
The family name of the ticket owner.
givenName schema.org
The given name of the ticket owner.
issuedBy
The organization issuing the verifiable credential.
ticketPrice
The price of the ticket
performance
The performance details of the ticket
ticketSeat
The seat details of the ticket
Example

The following JSON object is an example of how data can be expressed in the credentialSubject section of a TicketCertificate verifiable credential.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
    "id": "<vc_id>",
    "performance": {
        "location": "Odeon of Herodes Atticus",
        "name": "La Traviata by National Opera",
        "startDate": "2022-06-15",
        "doorTime": "17:00:00Z"
    },
    "familyName": "Doe",
    "givenName": "Jane",
    "issuedBy": {
        "logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Logo_acme.svg/1200px-Logo_acme.svg.png",
        "name": "Acme Coorporation",
        "address": "L.A.",
        "vatID": "123456",
        "telephone": "888999777123"
    },
    "ticketPrice": {
        "currency": "EUR",
        "value": "50"
    },
    "ticketSeat": {
        "seatNumber": "6",
        "seatRow": "9",
        "seatSection": "C"
    },
    "type": "TicketCertificate"
}

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
{
	"credentialPreview": {
		"@context": [
			"https://www.w3.org/2018/credentials/v1",
			"https://w3id.org/vc-revocation-list-2020/v1",
			{
				"description": "https://schema.org/description",
				"name": "https://schema.org/name",
				"TicketCertificate": {
					"@id": "https://vocabulary.vc.compell.io/credentials/TicketCertificate",
					"@context": {
						"@version": 1.1,
						"@protected": true,
						"schema": "https://schema.org/",
						"id": "@id",
						"type": "@type",
						"performance": {
							"@context": {
								"@protected": true,
								"@version": 1.1,
								"type": "schema:Event",
								"location": "schema:location",
								"name": "schema:name",
								"startDate": "schema:startDate",
								"doorTime": "schema:doorTime"
							},
							"@id": "https://vocabulary.vc.compell.io/properties/performance"
						},
						"familyName": "schema:familyName",
						"givenName": "schema:givenName",
						"issuedBy": {
							"@context": {
								"@protected": true,
								"@version": 1.1,
								"logo": {
									"@id": "schema:logo",
									"@type": "@id"
								},
								"name": "schema:name",
								"address": "schema:address",
								"telephone": "schema:telephone",
								"vatID": "schema:vatID",
								"type": "schema:Organization",
								"schema": "https://schema.org/"
							},
							"@id": "https://vocabulary.vc.compell.io/properties/issuedBy"
						},
						"ticketPrice": {
							"@context": {
								"@protected": true,
								"@version": 1.1,
								"schema": "https://schema.org/",
								"type": "schema:MonetaryAmount",
								"currency": "schema:currency",
								"value": "schema:value"
							},
							"@id": "https://vocabulary.vc.compell.io/properties/ticketPrice"
						},
						"ticketSeat": {
							"@context": {
								"@protected": true,
								"@version": 1.1,
								"schema": "https://schema.org/",
								"type": "schema:Seat",
								"seatNumber": "schema:seatNumber",
								"seatRow": "schema:seatRow",
								"seatSection": "schema:seatSection"
							},
							"@id": "https://vocabulary.vc.compell.io/properties/ticketSeat"
						}
					}
				}
			}
		],
		"id": "",
		"type": [
			"VerifiableCredential",
			"TicketCertificate"
		],
		"credentialSubject": {
			"id": "",
			"performance": {
				"location": "",
				"name": "",
				"startDate": "",
				"doorTime": ""
			},
			"familyName": "",
			"givenName": "",
			"issuedBy": {
				"logo": "",
				"name": "",
				"address": "",
				"vatID": "",
				"telephone": ""
			},
			"ticketPrice": {
				"currency": "EUR",
				"value": ""
			},
			"ticketSeat": {
				"seatNumber": "",
				"seatRow": "",
				"seatSection": ""
			},
			"type": "TicketCertificate"
		},
		"issuer": "",
		"issuanceDate": "2020-12-01T07:47:01Z",
		"description": [
			{
				"@language": "en",
				"@value": "A certificate that the holder is a ticket owner."
			}
		],
		"name": [
			{
				"@language": "en",
				"@value": "Ticket Certificate"
			}
		]
	},
	"expires": "2023-12-01T07:47:01Z",
	"type": "CredentialOffer",
	"credential_manifest": {
		"id": "TICKET_MANIFEST",
		"issuer": {
			"id": "$.issuer",
			"name": "$.issuedBy.name",
			"styles": {
				"thumbnail": {
					"uri": "$.issuedBy.logo",
					"alt": "$.issuedBy.name"
				},
				"background": {
					"color": "#000000"
				},
				"text": {
					"color": "#d4d400"
				}
			}
		},
		"output_descriptors": [
			{
				"id": "TICKET_OUTPUT_01",
				"schema": "TicketCertificate",
				"display": {
					"title": {
						"path": [
							"$.name"
						],
						"schema": {
							"type": "string"
						},
						"fallback": "Ticket Certificate"
					},
					"subtitle": {
						"path": [
							"$.description"
						],
						"schema": {
							"type": "string"
						},
						"fallback": "Certifies ticket ownership"
					},
					"description": {
						"text": "This certifies the ownership of a ticket."
					},
					"properties": [
						{
							"path": [
								"$.credentialSubject.performance.location"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown location",
							"label": "Location"
						},
						{
							"path": [
								"$.credentialSubject.performance.name"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown performance",
							"label": "Performance"
						},
						{
							"path": [
								"$.credentialSubject.performance.startDate"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown date",
							"label": "Date"
						},
						{
							"path": [
								"$.credentialSubject.performance.doorTime"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown door opening time",
							"label": "Doors open at"
						},
						{
							"path": [
								"$.credentialSubject.familyName",
								"$.credentialSubject.givenName"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown name",
							"label": "Name"
						},
						{
							"path": [
								"$.credentialSubject.issuedBy.name"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown issuer name",
							"label": "Issuer Name"
						},
						{
							"path": [
								"$.credentialSubject.issuedBy.address"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown address",
							"label": "Issuer Address"
						},
						{
							"path": [
								"$.credentialSubject.issuedBy.telephone"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown telephone",
							"label": "Issuer Telephone"
						},
						{
							"path": [
								"$.credentialSubject.issuedBy.vatID"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown vatID",
							"label": "Issuer VAT ID"
						},
						{
							"path": [
								"$.credentialSubject.ticketPrice.value",
								"$.credentialSubject.ticketPrice.currency"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown price",
							"label": "Price"
						},
						{
							"path": [
								"$.credentialSubject.ticketSeat.seatNumber"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown seat number",
							"label": "Seat Number"
						},
						{
							"path": [
								"$.credentialSubject.ticketSeat.seatRow"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown seat row",
							"label": "Seat Row"
						},
						{
							"path": [
								"$.credentialSubject.ticketSeat.seatSection"
							],
							"schema": {
								"type": "string"
							},
							"fallback": "Unknown seat section",
							"label": "Seat Section"
						}
					]
				},
				"styles": {
					"thumbnail": {
						"uri": "$.issuedBy.logo",
						"alt": "$.issuedBy.name"
					},
					"hero": {
						"uri": "$.issuedBy.logo",
						"alt": "$.issuedBy.name"
					},
					"background": {
						"color": "#efdff8"
					},
					"text": {
						"color": "#4f3f58"
					}
				}
			}
		],
		"presentation_definition": {}
	}
}
Copyright © 2022 Compellio S.A. All rights reserved.
Last modified on Nov 26, 2022 14:32