light-mode-image
Learn
API Reference

Google Pass templates

Create a CWT credential Google Pass template

POST/v2/credentials/compact/digital-pass/google/templates

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Request Body

multipart/form-data

template*file

Includes your template files.

Formatbinary
name*string

Insert a name to identify this Google Pass template.

Length1 <= length <= 1024
issuerId*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"
    }
  ]
}

Retrieve all CWT credential Google Pass templates

GET/v2/credentials/compact/digital-pass/google/templates

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Query Parameters

limit?number

Range size of returned list.

Default100
Range1 <= value <= 1000
cursor?string

Starting point for the list of entries.

Response Body

application/json

application/json

curl -X GET "https://example.vii.au01.mattr.global/v2/credentials/compact/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"
      }
    }
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

Retrieve a CWT credential Google Pass template

GET/v2/credentials/compact/digital-pass/google/templates/{id}

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Google Pass template ID

Formatuuid
id*string

Template ID

Response Body

application/json

application/json

application/json

curl -X GET "https://example.vii.au01.mattr.global/v2/credentials/compact/digital-pass/google/templates/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"
    }
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

Update a CWT credential Google Pass template

PUT/v2/credentials/compact/digital-pass/google/templates/{id}

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Google Pass template ID

id*string

Template ID

Request Body

multipart/form-data

template*file

Includes your template files.

Formatbinary
name*string

Insert a name to identify this Google Pass template.

Length1 <= length <= 1024
issuerId*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

application/json

curl -X PUT "https://example.vii.au01.mattr.global/v2/credentials/compact/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"
  }
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

Delete a CWT credential Google Pass template

DELETE/v2/credentials/compact/digital-pass/google/templates/{id}

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Google Pass template ID

Formatuuid
id*string

Template ID

Response Body

application/json

application/json

curl -X DELETE "https://example.vii.au01.mattr.global/v2/credentials/compact/digital-pass/google/templates/string"
Empty
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

How would you rate this page?

On this page