- 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/offerObject
POST
/walletobjects/v1/offerObject
offerobject
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletobjects.googleapis.com//walletobjects/v1/offerObject' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
Request
Body Params application/json
appLinkData
object (AppLinkData)Â
optional
androidAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
iosAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
webAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
barcode
object (Barcode)Â
optional
alternateText
stringÂ
optional
kind
stringÂ
optional
"walletobjects#barcode"
.renderEncoding
enum<string>Â
optional
Allowed values:
RENDER_ENCODING_UNSPECIFIEDUTF_8
showCodeText
object (LocalizedString)Â
optional
type
enum<string>Â
optional
Allowed values:
BARCODE_TYPE_UNSPECIFIEDAZTECaztecCODE_39code39CODE_128code128CODABARcodabarDATA_MATRIXdataMatrixEAN_8ean8EAN_13ean13EAN13ITF_14itf14PDF_417pdf417PDF417QR_CODEqrCodeqrcodeUPC_AupcATEXT_ONLYtextOnly
value
stringÂ
optional
classId
stringÂ
optional
classReference
object (OfferClass)Â
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
details
stringÂ
optional
enableSmartTap
booleanÂ
optional
finePrint
stringÂ
optional
helpUri
object (Uri)Â
optional
http://myownpersonaldomain.com/help
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
.homepageUri
object (Uri)Â
optional
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
infoModuleData
object (InfoModuleData)Â
optional
issuerName
stringÂ
optional
kind
stringÂ
optional
"walletobjects#offerClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedDetails
object (LocalizedString)Â
optional
localizedFinePrint
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedProvider
object (LocalizedString)Â
optional
localizedShortTitle
object (LocalizedString)Â
optional
localizedTitle
object (LocalizedString)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
messages
array[object (Message) {8}]Â
optional
multipleDevicesAndHoldersAllowedStatus
enum<string>Â
optional
Allowed values:
STATUS_UNSPECIFIEDMULTIPLE_HOLDERSmultipleHoldersONE_USER_ALL_DEVICESoneUserAllDevicesONE_USER_ONE_DEVICEoneUserOneDevice
provider
stringÂ
optional
redemptionChannel
enum<string>Â
optional
Allowed values:
REDEMPTION_CHANNEL_UNSPECIFIEDINSTOREinstoreONLINEonlineBOTHbothTEMPORARY_PRICE_REDUCTIONtemporaryPriceReduction
redemptionIssuers
array[string <int64>]
optional
review
object (Review)Â
optional
approved
or rejected
.reviewStatus
enum<string>Â
optional
draft
or The status of the class. This field can be set to draft
or underReview
using the insert, patch, or update API calls. Once the review state is changed from draft
it may not be changed back to draft
. You should keep this field to draft
when the class is under development. A draft
class cannot be used to create any object. You should set this field to underReview
when you believe the class is ready for use. The platform will automatically set this field to approved
and it can be immediately used to create or migrate objects. When updating an already approved
class you should keep setting this field to underReview
.Allowed values:
REVIEW_STATUS_UNSPECIFIEDUNDER_REVIEWunderReviewAPPROVEDapprovedREJECTEDrejectedDRAFTdraft
shortTitle
stringÂ
optional
textModulesData
array[object (TextModuleData) {5}]Â
optional
title
stringÂ
optional
titleImage
object (Image)Â
optional
version
string <int64>
optional
wordMark
object (Image)Â
optional
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
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
id
stringÂ
optional
mainImage
object (Image)Â
optional
infoModuleData
object (InfoModuleData)Â
optional
kind
stringÂ
optional
"walletobjects#offerObject"
.linksModuleData
object (LinksModuleData)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
kind
stringÂ
optional
"walletobjects#latLongPoint"
.latitude
number <double>
optional
longitude
number <double>
optional
messages
array[object (Message) {8}]Â
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
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
body
stringÂ
optional
header
stringÂ
optional
id
stringÂ
optional
localizedBody
object (LocalizedString)Â
optional
localizedHeader
object (LocalizedString)Â
optional
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
Examples
Responses
🟢200Successful response
application/json
Body
appLinkData
object (AppLinkData)Â
optional
androidAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
iosAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
webAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
barcode
object (Barcode)Â
optional
alternateText
stringÂ
optional
kind
stringÂ
optional
"walletobjects#barcode"
.renderEncoding
enum<string>Â
optional
Allowed values:
RENDER_ENCODING_UNSPECIFIEDUTF_8
showCodeText
object (LocalizedString)Â
optional
type
enum<string>Â
optional
Allowed values:
BARCODE_TYPE_UNSPECIFIEDAZTECaztecCODE_39code39CODE_128code128CODABARcodabarDATA_MATRIXdataMatrixEAN_8ean8EAN_13ean13EAN13ITF_14itf14PDF_417pdf417PDF417QR_CODEqrCodeqrcodeUPC_AupcATEXT_ONLYtextOnly
value
stringÂ
optional
classId
stringÂ
optional
classReference
object (OfferClass)Â
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
details
stringÂ
optional
enableSmartTap
booleanÂ
optional
finePrint
stringÂ
optional
helpUri
object (Uri)Â
optional
http://myownpersonaldomain.com/help
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
.homepageUri
object (Uri)Â
optional
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
infoModuleData
object (InfoModuleData)Â
optional
issuerName
stringÂ
optional
kind
stringÂ
optional
"walletobjects#offerClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedDetails
object (LocalizedString)Â
optional
localizedFinePrint
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedProvider
object (LocalizedString)Â
optional
localizedShortTitle
object (LocalizedString)Â
optional
localizedTitle
object (LocalizedString)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
messages
array[object (Message) {8}]Â
optional
multipleDevicesAndHoldersAllowedStatus
enum<string>Â
optional
Allowed values:
STATUS_UNSPECIFIEDMULTIPLE_HOLDERSmultipleHoldersONE_USER_ALL_DEVICESoneUserAllDevicesONE_USER_ONE_DEVICEoneUserOneDevice
provider
stringÂ
optional
redemptionChannel
enum<string>Â
optional
Allowed values:
REDEMPTION_CHANNEL_UNSPECIFIEDINSTOREinstoreONLINEonlineBOTHbothTEMPORARY_PRICE_REDUCTIONtemporaryPriceReduction
redemptionIssuers
array[string <int64>]
optional
review
object (Review)Â
optional
approved
or rejected
.reviewStatus
enum<string>Â
optional
draft
or The status of the class. This field can be set to draft
or underReview
using the insert, patch, or update API calls. Once the review state is changed from draft
it may not be changed back to draft
. You should keep this field to draft
when the class is under development. A draft
class cannot be used to create any object. You should set this field to underReview
when you believe the class is ready for use. The platform will automatically set this field to approved
and it can be immediately used to create or migrate objects. When updating an already approved
class you should keep setting this field to underReview
.Allowed values:
REVIEW_STATUS_UNSPECIFIEDUNDER_REVIEWunderReviewAPPROVEDapprovedREJECTEDrejectedDRAFTdraft
shortTitle
stringÂ
optional
textModulesData
array[object (TextModuleData) {5}]Â
optional
title
stringÂ
optional
titleImage
object (Image)Â
optional
version
string <int64>
optional
wordMark
object (Image)Â
optional
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
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
id
stringÂ
optional
mainImage
object (Image)Â
optional
infoModuleData
object (InfoModuleData)Â
optional
kind
stringÂ
optional
"walletobjects#offerObject"
.linksModuleData
object (LinksModuleData)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
kind
stringÂ
optional
"walletobjects#latLongPoint"
.latitude
number <double>
optional
longitude
number <double>
optional
messages
array[object (Message) {8}]Â
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
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
body
stringÂ
optional
header
stringÂ
optional
id
stringÂ
optional
localizedBody
object (LocalizedString)Â
optional
localizedHeader
object (LocalizedString)Â
optional
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