- 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/loyaltyObjectGET
- /walletobjects/v1/loyaltyObjectPOST
- /walletobjects/v1/loyaltyObject/{resourceId}GET
- /walletobjects/v1/loyaltyObject/{resourceId}PATCH
- /walletobjects/v1/loyaltyObject/{resourceId}PUT
- /walletobjects/v1/loyaltyObject/{resourceId}/addMessagePOST
- /walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjectsPOST
- offerclass
- offerobject
- permissions
- smarttap
- transitclass
- transitobject
- valuablesclasses
- walletobjects
/walletobjects/v1/loyaltyObject
POST
/walletobjects/v1/loyaltyObject
loyaltyobject
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletobjects.googleapis.com//walletobjects/v1/loyaltyObject' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
Request
Body Params application/json
accountId
stringÂ
optional
accountName
stringÂ
optional
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 (LoyaltyClass)Â
optional
accountIdLabel
stringÂ
optional
accountNameLabel
stringÂ
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
discoverableProgram
object (DiscoverableProgram)Â
optional
enableSmartTap
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
.homepageUri
object (Uri)Â
optional
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
infoModuleData
object (InfoModuleData)Â
optional
issuerName
stringÂ
optional
kind
stringÂ
optional
"walletobjects#loyaltyClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedAccountIdLabel
object (LocalizedString)Â
optional
localizedAccountNameLabel
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedProgramName
object (LocalizedString)Â
optional
localizedRewardsTier
object (LocalizedString)Â
optional
localizedRewardsTierLabel
object (LocalizedString)Â
optional
localizedSecondaryRewardsTier
object (LocalizedString)Â
optional
localizedSecondaryRewardsTierLabel
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
programLogo
object (Image)Â
optional
programName
stringÂ
optional
redemptionIssuers
array[string <int64>]
optional
review
object (Review)Â
optional
approved
or rejected
.reviewStatus
enum<string>Â
optional
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
rewardsTier
stringÂ
optional
rewardsTierLabel
stringÂ
optional
secondaryRewardsTier
stringÂ
optional
secondaryRewardsTierLabel
stringÂ
optional
textModulesData
array[object (TextModuleData) {5}]Â
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#loyaltyObject"
.linkedOfferIds
array[string]
optional
linksModuleData
object (LinksModuleData)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
kind
stringÂ
optional
"walletobjects#latLongPoint"
.latitude
number <double>
optional
longitude
number <double>
optional
loyaltyPoints
object (LoyaltyPoints)Â
optional
balance
object (LoyaltyPointsBalance)Â
optional
loyaltyPoints
and secondaryLoyaltyPoints
.label
stringÂ
optional
localizedLabel
object (LocalizedString)Â
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
secondaryLoyaltyPoints
object (LoyaltyPoints)Â
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
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
accountId
stringÂ
optional
accountName
stringÂ
optional
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 (LoyaltyClass)Â
optional
accountIdLabel
stringÂ
optional
accountNameLabel
stringÂ
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
discoverableProgram
object (DiscoverableProgram)Â
optional
enableSmartTap
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
.homepageUri
object (Uri)Â
optional
id
stringÂ
optional
imageModulesData
array[object (ImageModuleData) {2}]Â
optional
infoModuleData
object (InfoModuleData)Â
optional
issuerName
stringÂ
optional
kind
stringÂ
optional
"walletobjects#loyaltyClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedAccountIdLabel
object (LocalizedString)Â
optional
localizedAccountNameLabel
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedProgramName
object (LocalizedString)Â
optional
localizedRewardsTier
object (LocalizedString)Â
optional
localizedRewardsTierLabel
object (LocalizedString)Â
optional
localizedSecondaryRewardsTier
object (LocalizedString)Â
optional
localizedSecondaryRewardsTierLabel
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
programLogo
object (Image)Â
optional
programName
stringÂ
optional
redemptionIssuers
array[string <int64>]
optional
review
object (Review)Â
optional
approved
or rejected
.reviewStatus
enum<string>Â
optional
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
rewardsTier
stringÂ
optional
rewardsTierLabel
stringÂ
optional
secondaryRewardsTier
stringÂ
optional
secondaryRewardsTierLabel
stringÂ
optional
textModulesData
array[object (TextModuleData) {5}]Â
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#loyaltyObject"
.linkedOfferIds
array[string]
optional
linksModuleData
object (LinksModuleData)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
kind
stringÂ
optional
"walletobjects#latLongPoint"
.latitude
number <double>
optional
longitude
number <double>
optional
loyaltyPoints
object (LoyaltyPoints)Â
optional
balance
object (LoyaltyPointsBalance)Â
optional
loyaltyPoints
and secondaryLoyaltyPoints
.label
stringÂ
optional
localizedLabel
object (LocalizedString)Â
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
secondaryLoyaltyPoints
object (LoyaltyPoints)Â
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
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