MATTR VII PlatformCWT Google Pass templates
Create a 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.
Analytics Events
CREDENTIAL_COMPACT_GOOGLE_PASS_TEMPLATE_CREATE_STARTCREDENTIAL_COMPACT_GOOGLE_PASS_TEMPLATE_CREATE_SUCCESSCREDENTIAL_COMPACT_GOOGLE_PASS_TEMPLATE_CREATE_FAIL
Roles
adminissuermanaged-issuer
POST
/v2/credentials/compact/digital-pass/google/templatesAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
multipart/form-data
template*file
Includes your template files.
Format
binaryname*string
Insert a name to identify this Google Pass template.
Length
1 <= length <= 1024issuerId*string
Google Wallet Pass signer issuer ID.
serviceAccountClientEmail*string
Email address of the Google Cloud Platform service account for accessing the Google Pay Passes API.
serviceAccountPrivateKey*string
Private key PEM of the Google Cloud Platform service account.
Response Body
application/json
application/json
curl -X POST "https://example.vii.au01.mattr.global/v2/credentials/compact/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"
}
}{
"code": "string",
"message": "string",
"details": [
{
"value": "string",
"msg": "Invalid value",
"param": "id",
"location": "body"
}
]
}How would you rate this page?