- 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/giftCardObject
POST
/walletobjects/v1/giftCardObject
giftcardobject
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletobjects.googleapis.com//walletobjects/v1/giftCardObject' \
--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
balance
object (Money)Â
optional
currencyCode
stringÂ
optional
kind
stringÂ
optional
"walletobjects#money"
.micros
string <int64>
optional
balanceUpdateTime
object (DateTime)Â
optional
date
stringÂ
optional
1985-04-12T23:20:50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the date/time is intended for a physical location in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. Providing an offset makes this an absolute instant in time around the world. The date/time will be adjusted based on the user's time zone. For example, a time of 2018-06-19T18:30:00-04:00
will be 18:30:00 for a user in New York and 15:30:00 for a user in Los Angeles. Omitting the offset makes this a local date/time, representing several instants in time around the world. The date/time will always be in the user's current time zone. For example, a time of 2018-06-19T18:30:00
will be 18:30:00 for a user in New York and also 18:30:00 for a user in Los Angeles. This is useful when the same local date/time should apply to many physical locations across several time zones.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
cardNumber
stringÂ
optional
classId
stringÂ
optional
classReference
object (GiftCardClass)Â
optional
allowBarcodeRedemption
booleanÂ
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
cardNumberLabel
stringÂ
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
enableSmartTap
booleanÂ
optional
eventNumberLabel
stringÂ
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#giftCardClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedCardNumberLabel
object (LocalizedString)Â
optional
localizedEventNumberLabel
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedMerchantName
object (LocalizedString)Â
optional
localizedPinLabel
object (LocalizedString)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
merchantName
stringÂ
optional
messages
array[object (Message) {8}]Â
optional
multipleDevicesAndHoldersAllowedStatus
enum<string>Â
optional
Allowed values:
STATUS_UNSPECIFIEDMULTIPLE_HOLDERSmultipleHoldersONE_USER_ALL_DEVICESoneUserAllDevicesONE_USER_ONE_DEVICEoneUserOneDevice
pinLabel
stringÂ
optional
programLogo
object (Image)Â
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
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.eventNumber
stringÂ
optional
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#giftCardObject"
.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
pin
stringÂ
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
appLinkData
object (AppLinkData)Â
optional
androidAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
iosAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
webAppLinkInfo
object (AppLinkDataAppLinkInfo)Â
optional
balance
object (Money)Â
optional
currencyCode
stringÂ
optional
kind
stringÂ
optional
"walletobjects#money"
.micros
string <int64>
optional
balanceUpdateTime
object (DateTime)Â
optional
date
stringÂ
optional
1985-04-12T23:20:50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the date/time is intended for a physical location in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. Providing an offset makes this an absolute instant in time around the world. The date/time will be adjusted based on the user's time zone. For example, a time of 2018-06-19T18:30:00-04:00
will be 18:30:00 for a user in New York and 15:30:00 for a user in Los Angeles. Omitting the offset makes this a local date/time, representing several instants in time around the world. The date/time will always be in the user's current time zone. For example, a time of 2018-06-19T18:30:00
will be 18:30:00 for a user in New York and also 18:30:00 for a user in Los Angeles. This is useful when the same local date/time should apply to many physical locations across several time zones.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
cardNumber
stringÂ
optional
classId
stringÂ
optional
classReference
object (GiftCardClass)Â
optional
allowBarcodeRedemption
booleanÂ
optional
allowMultipleUsersPerObject
booleanÂ
optional
multipleDevicesAndHoldersAllowedStatus
instead.callbackOptions
object (CallbackOptions)Â
optional
cardNumberLabel
stringÂ
optional
classTemplateInfo
object (ClassTemplateInfo)Â
optional
countryCode
stringÂ
optional
enableSmartTap
booleanÂ
optional
eventNumberLabel
stringÂ
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#giftCardClass"
.linksModuleData
object (LinksModuleData)Â
optional
localizedCardNumberLabel
object (LocalizedString)Â
optional
localizedEventNumberLabel
object (LocalizedString)Â
optional
localizedIssuerName
object (LocalizedString)Â
optional
localizedMerchantName
object (LocalizedString)Â
optional
localizedPinLabel
object (LocalizedString)Â
optional
locations
array[object (LatLongPoint) {3}]Â
optional
merchantName
stringÂ
optional
messages
array[object (Message) {8}]Â
optional
multipleDevicesAndHoldersAllowedStatus
enum<string>Â
optional
Allowed values:
STATUS_UNSPECIFIEDMULTIPLE_HOLDERSmultipleHoldersONE_USER_ALL_DEVICESoneUserAllDevicesONE_USER_ONE_DEVICEoneUserOneDevice
pinLabel
stringÂ
optional
programLogo
object (Image)Â
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
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.eventNumber
stringÂ
optional
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#giftCardObject"
.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
pin
stringÂ
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