Method: jwt.validate

Checks that the JWT or JSON string in the request represents a valid pass to be saved.

HTTP request

POST https://walletobjects.googleapis.com/walletobjects/v1/jwt/validate

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "jwtResource": {
    object (JwtResource)
  },
  "jsonResource": {
    object (JsonResource)
  }
}
Fields
jwtResource

object (JwtResource)

Optional. A JWT representation of a pass to be validated. Either this or jsonResource should be set. Requests setting both or neither will be rejected.

jsonResource

object (JsonResource)

Optional. A JSON representation of a pass to be validated. Either this or jwtResource should be set. Requests setting both or neither will be rejected.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/wallet_object.issuer

JsonResource

A JSON representation of a pass.

JSON representation
{
  "json": string
}
Fields
json

string

Required. A JSON string representing the unencoded JWT payload for a pass of the format described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to either the entire JSON representation described at this link or just the contents of the payload field holding the relevant classes and objects.