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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v2/credentials/compact/digital-pass/google/templates" \  -F template="string" \  -F name="string" \  -F issuerId="string" \  -F serviceAccountClientEmail="string" \  -F serviceAccountPrivateKey="string"
{  "id": "string",  "passType": "apple",  "name": "string",  "metadata": {    "issuerId": "string",    "serviceAccountClientEmail": "string",    "payPassId": "string"  }}

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.

Range1 <= value <= 1000
Default100
cursor?string

Starting point for the list of entries.

Response Body

application/json

application/json

curl -X GET "https://example.com/v2/credentials/compact/digital-pass/google/templates"
{  "nextCursor": "string",  "data": [    {      "id": "string",      "passType": "apple",      "name": "string",      "metadata": {        "issuerId": "string",        "serviceAccountClientEmail": "string",        "payPassId": "string"      }    }  ]}

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.com/v2/credentials/compact/digital-pass/google/templates/string"
{  "id": "string",  "passType": "apple",  "name": "string",  "metadata": {    "issuerId": "string",    "serviceAccountClientEmail": "string",    "payPassId": "string"  }}

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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v2/credentials/compact/digital-pass/google/templates/string" \  -F template="string" \  -F name="string" \  -F issuerId="string" \  -F serviceAccountClientEmail="string" \  -F serviceAccountPrivateKey="string"
{  "id": "string",  "passType": "apple",  "name": "string",  "metadata": {    "issuerId": "string",    "serviceAccountClientEmail": "string",    "payPassId": "string"  }}

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.com/v2/credentials/compact/digital-pass/google/templates/string"
Empty

How would you rate this page?

Last updated on

On this page