- eventticketclass
- eventticketobject
- /walletobjects/v1/eventTicketObjectGET
- /walletobjects/v1/eventTicketObjectPOST
- /walletobjects/v1/eventTicketObject/{resourceId}GET
- /walletobjects/v1/eventTicketObject/{resourceId}PATCH
- /walletobjects/v1/eventTicketObject/{resourceId}PUT
- /walletobjects/v1/eventTicketObject/{resourceId}/addMessagePOST
- /walletobjects/v1/eventTicketObject/{resourceId}/modifyLinkedOfferObjectsPOST
- flightclass
- flightobject
- giftcardclass
- giftcardobject
- issuer
- jwt
- loyaltyclass
- loyaltyobject
- /walletobjects/v1/loyaltyObject
- /walletobjects/v1/loyaltyObject
- /walletobjects/v1/loyaltyObject/{resourceId}
- /walletobjects/v1/loyaltyObject/{resourceId}
- /walletobjects/v1/loyaltyObject/{resourceId}
- /walletobjects/v1/loyaltyObject/{resourceId}/addMessage
- /walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects
- offerclass
- offerobject
- permissions
- smarttap
- transitclass
- transitobject
- valuablesclasses
- walletobjects
/walletobjects/v1/transitObject/{resourceId}/addMessage
POST
/walletobjects/v1/transitObject/{resourceId}/addMessage
transitobject
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletobjects.googleapis.com//walletobjects/v1/transitObject//addMessage' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
Request
Path Params
resourceId
stringÂ
required
Body Params application/json
Resource used when the AddMessage endpoints are called.
message
object (Message)Â
optional
body
stringÂ
optional
displayInterval
object (TimeInterval)Â
optional
startTime
and endTime
for each message. A message is displayed immediately after a Wallet Object is inserted unless a startTime
is set. The message will appear in a list of messages indefinitely if endTime
is not provided.header
stringÂ
optional
id
stringÂ
optional
kind
stringÂ
optional
"walletobjects#walletObjectMessage"
.localizedBody
object (LocalizedString)Â
optional
localizedHeader
object (LocalizedString)Â
optional
messageType
enum<string>Â
optional
Allowed values:
MESSAGE_TYPE_UNSPECIFIEDTEXTtextEXPIRATION_NOTIFICATIONexpirationNotification
Examples
Responses
🟢200Successful response
application/json
Body
resource
object (TransitObject)Â
optional
appLinkData
object (AppLinkData)Â
optional
barcode
object (Barcode)Â
optional
classId
stringÂ
optional
classReference
object (TransitClass)Â
optional
concessionCategory
enum<string>Â
optional
Allowed values:
CONCESSION_CATEGORY_UNSPECIFIEDADULTadultCHILDchildSENIORsenior
customConcessionCategory
object (LocalizedString)Â
optional
concessionCategory
does not provide the right option. Both concessionCategory
and customConcessionCategory
may not be set.customTicketStatus
object (LocalizedString)Â
optional
ticketStatus
does not provide the right option. Both ticketStatus
and customTicketStatus
may not be set.disableExpirationNotification
booleanÂ
optional
messages
field, expiration notifications to the user will be suppressed. By default, this field is set to false. Currently, this can only be set for offers.hasLinkedDevice
booleanÂ
optional
hasUsers
booleanÂ
optional
heroImage
object (Image)Â
optional
hexBackgroundColor
stringÂ
optional
#ffcc00
. You can also use the shorthand version of the RGB triplet which is #rgb, such as #fc0
.id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
infoModuleData
object (InfoModuleData)Â
optional
linksModuleData
object (LinksModuleData)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
messages
array[object (Message) {8}]Â
optional
passengerNames
stringÂ
optional
passengerType
field is meant to give Google context on this field.passengerType
enum<string>Â
optional
Allowed values:
PASSENGER_TYPE_UNSPECIFIEDSINGLE_PASSENGERsinglePassengerMULTIPLE_PASSENGERSmultiplePassengers
purchaseDetails
object (PurchaseDetails)Â
optional
smartTapRedemptionValue
stringÂ
optional
state
enum<string>Â
optional
inactive
object is moved to the "Expired passes" section.Allowed values:
STATE_UNSPECIFIEDACTIVEactiveCOMPLETEDcompletedEXPIREDexpiredINACTIVEinactive
textModulesData
array[object (TextModuleData) {5}]Â
optional
ticketLeg
object (TicketLeg)Â
optional
ticketLegs
field instead. Both ticketLeg
and ticketLegs
may not be set.ticketLegs
array[object (TicketLeg) {14}]Â
optional
ticketLeg
field instead. Both ticketLeg
and ticketLegs
may not be set.ticketNumber
stringÂ
optional
ticketRestrictions
object (TicketRestrictions)Â
optional
ticketStatus
enum<string>Â
optional
state
field instead.Allowed values:
TICKET_STATUS_UNSPECIFIEDUSEDusedREFUNDEDrefundedEXCHANGEDexchanged
tripId
stringÂ
optional
tripType
enum<string>Â
optional
Allowed values:
TRIP_TYPE_UNSPECIFIEDROUND_TRIProundTripONE_WAYoneWay
validTimeInterval
object (TimeInterval)Â
optional
active
and object can be used. An object's state will be changed to expired
when this time period has passed.version
string <int64>
optional
Modified at 2022-09-10 16:56:46