Google Pass templates
Create a Semantic CWT credential Google Pass template
Creates a Google Pass template based on the provided .zip file. Refer to our Design a Google Pass template guide for more information on how to design the template and how to structure the .zip file.
Roles
Analytics Events
bearerAuthAuthorizationBearer <JWT>multipart/form-data- body
template*fileIncludes your template files.
binaryname*stringInsert a name to identify this Google Pass template.
1 <= length <= 1024issuerId*stringGoogle Wallet Pass signer issuer ID.
serviceAccountClientEmail*stringEmail address of the Google Cloud Platform service account for accessing the Google Pay Passes API.
serviceAccountPrivateKey*stringPrivate key PEM of the Google Cloud Platform service account.
Google Pass template created
application/json- response
id?stringThis is a unique identifier for this Google Pass template. You will use it as the templateId when formatting a CWT credential as a Google Pass.
passType?DigitalPassTypeDigital pass type
"apple""google"name?stringmetadata?curl -X POST 'https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/digital-pass/google/templates' \ -F 'template=string' \ -F 'name=Certificate of participation' \ -F 'issuerId=3388000000012346000' \ -F 'serviceAccountClientEmail=app-user@myproject.iam.gserviceaccount.com' \ -F 'serviceAccountPrivateKey=string'{ "id": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "passType": "apple", "name": "Certificate of participation", "metadata": { "issuerId": "3388000000012346000", "serviceAccountClientEmail": "app-user@myproject.iam.gserviceaccount.com", "payPassId": "3388000000012345678.a0bbe92f-c85e-4081-94c3-f842bcd5e463" }}Retrieve all Semantic CWT credential Google Pass templates
Retrieves a list of all Google Pass templates available on your tenant.
Roles
Analytics Events
bearerAuthAuthorizationBearer <JWT>limit?numberRange size of returned list.
1 <= value <= 1000100cursor?stringStarting point for the list of entries.
Google Pass templates retrieved
application/json- response
nextCursor?stringdata?array<>curl -X GET 'https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/digital-pass/google/templates'{ "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1h", "data": [ { "id": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "passType": "apple", "name": "Certificate of participation", "metadata": { "issuerId": "3388000000012346000", "serviceAccountClientEmail": "app-user@myproject.iam.gserviceaccount.com", "payPassId": "3388000000012345678.a0bbe92f-c85e-4081-94c3-f842bcd5e463" } } ]}Retrieve a Semantic CWT credential Google Pass template
Retrieves an existing Google Pass template by providing its ID.
Roles
Analytics Events
bearerAuthAuthorizationBearer <JWT>id*stringGoogle Pass template ID
uuidGoogle Pass templated retrieved
application/json- response
id?stringThis is a unique identifier for this Google Pass template. You will use it as the templateId when formatting a CWT credential as a Google Pass.
passType?DigitalPassTypeDigital pass type
"apple""google"name?stringmetadata?curl -X GET 'https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/digital-pass/google/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "passType": "apple", "name": "Certificate of participation", "metadata": { "issuerId": "3388000000012346000", "serviceAccountClientEmail": "app-user@myproject.iam.gserviceaccount.com", "payPassId": "3388000000012345678.a0bbe92f-c85e-4081-94c3-f842bcd5e463" }}Update a Semantic CWT credential Google Pass template
Updates a existing Google Pass template by providing its ID and a .zip file. Refer to our Design a Google Pass template guide for more information on how to design the template and how to structure the .zip file.
Roles
Analytics Events
bearerAuthAuthorizationBearer <JWT>id*stringGoogle Pass template ID
multipart/form-data- body
template*fileIncludes your template files.
binaryname*stringInsert a name to identify this Google Pass template.
1 <= length <= 1024issuerId*stringGoogle Wallet Pass signer issuer ID.
serviceAccountClientEmail*stringEmail address of the Google Cloud Platform service account for accessing the Google Pay Passes API.
serviceAccountPrivateKey*stringPrivate key PEM of the Google Cloud Platform service account.
Google Pass template updated
application/json- response
id?stringThis is a unique identifier for this Google Pass template. You will use it as the templateId when formatting a CWT credential as a Google Pass.
passType?DigitalPassTypeDigital pass type
"apple""google"name?stringmetadata?curl -X PUT 'https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/digital-pass/google/templates/string' \ -F 'template=string' \ -F 'name=Certificate of participation' \ -F 'issuerId=3388000000012346000' \ -F 'serviceAccountClientEmail=app-user@myproject.iam.gserviceaccount.com' \ -F 'serviceAccountPrivateKey=string'{ "id": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "passType": "apple", "name": "Certificate of participation", "metadata": { "issuerId": "3388000000012346000", "serviceAccountClientEmail": "app-user@myproject.iam.gserviceaccount.com", "payPassId": "3388000000012345678.a0bbe92f-c85e-4081-94c3-f842bcd5e463" }}Delete a Semantic CWT credential Google Pass template
Delete a Google Pay Pass template by ID
Roles
Analytics Events
bearerAuthAuthorizationBearer <JWT>id*stringGoogle Pass template ID
uuidGoogle Pass template deleted
curl -X DELETE 'https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/digital-pass/google/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08'How would you rate this page?
Last updated on