Method: jwt.insert

Inserts the resources in the JWT.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of JwtResource.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "saveUri": string,
  "resources": {
    object (Resources)
  }
}
Fields
saveUri

string

A URI that, when opened, will allow the end user to save the object(s) identified in the JWT to their Google account.

resources

object (Resources)

Data that corresponds to the ids of the provided classes and objects in the JWT. resources will only include the non-empty arrays (i.e. if the JWT only includes eventTicketObjects, then that is the only field that will be present in resources).

Authorization scopes

Requires the following OAuth scope:

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

Resources

JSON representation
{
  "eventTicketClasses": [
    {
      object (EventTicketClass)
    }
  ],
  "eventTicketObjects": [
    {
      object (EventTicketObject)
    }
  ],
  "flightClasses": [
    {
      object (FlightClass)
    }
  ],
  "flightObjects": [
    {
      object (FlightObject)
    }
  ],
  "giftCardClasses": [
    {
      object (GiftCardClass)
    }
  ],
  "giftCardObjects": [
    {
      object (GiftCardObject)
    }
  ],
  "loyaltyClasses": [
    {
      object (LoyaltyClass)
    }
  ],
  "loyaltyObjects": [
    {
      object (LoyaltyObject)
    }
  ],
  "offerClasses": [
    {
      object (OfferClass)
    }
  ],
  "offerObjects": [
    {
      object (OfferObject)
    }
  ],
  "transitClasses": [
    {
      object (TransitClass)
    }
  ],
  "transitObjects": [
    {
      object (TransitObject)
    }
  ]
}
Fields
eventTicketClasses[]

object (EventTicketClass)

eventTicketObjects[]

object (EventTicketObject)

flightClasses[]

object (FlightClass)

flightObjects[]

object (FlightObject)

giftCardClasses[]

object (GiftCardClass)

giftCardObjects[]

object (GiftCardObject)

loyaltyClasses[]

object (LoyaltyClass)

loyaltyObjects[]

object (LoyaltyObject)

offerClasses[]

object (OfferClass)

offerObjects[]

object (OfferObject)

transitClasses[]

object (TransitClass)

transitObjects[]

object (TransitObject)