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 
 
) 
 } 
 ] 
 , 
 "genericClasses" 
 : 
 [ 
 { 
 object (  GenericClass 
 
) 
 } 
 ] 
 , 
 "genericObjects" 
 : 
 [ 
 { 
 object (  GenericObject 
 
) 
 } 
 ] 
 } 
Fields
eventTicketClasses[]

object ( EventTicketClass )

A list of event ticket classes.

eventTicketObjects[]

object ( EventTicketObject )

A list of event ticket objects.

flightClasses[]

object ( FlightClass )

A list of flight classes.

flightObjects[]

object ( FlightObject )

A list of flight objects.

giftCardClasses[]

object ( GiftCardClass )

A list of gift card classes.

giftCardObjects[]

object ( GiftCardObject )

A list of gift card objects.

loyaltyClasses[]

object ( LoyaltyClass )

A list of loyalty classes.

loyaltyObjects[]

object ( LoyaltyObject )

A list of loyalty objects.

offerClasses[]

object ( OfferClass )

A list of offer classes.

offerObjects[]

object ( OfferObject )

A list of offer objects.

transitClasses[]

object ( TransitClass )

A list of transit classes.

transitObjects[]

object ( TransitObject )

A list of transit objects.

genericClasses[]

object ( GenericClass )

A list of generic classes.

genericObjects[]

object ( GenericObject )

A list of generic objects.

Create a Mobile Website
View Site in Mobile | Classic
Share by: