Index
OfferClassService
(interface)OfferObjectService
(interface)OfferClass
(message)OfferClass.RedemptionChannel
(enum)OfferClassAddMessageRequest
(message)OfferClassAddMessageResponse
(message)OfferClassGetRequest
(message)OfferClassInsertRequest
(message)OfferClassListRequest
(message)OfferClassListResponse
(message)OfferClassPatchRequest
(message)OfferClassUpdateRequest
(message)OfferObject
(message)OfferObjectAddMessageRequest
(message)OfferObjectAddMessageResponse
(message)OfferObjectGetRequest
(message)OfferObjectInsertRequest
(message)OfferObjectListRequest
(message)OfferObjectListResponse
(message)OfferObjectPatchRequest
(message)OfferObjectUpdateRequest
(message)
OfferClassService
AddMessage |
---|
Adds a message to the offer class referenced by the given class ID.
|
Get |
---|
Returns the offer class with the given class ID.
|
Insert |
---|
Inserts an offer class with the given ID and properties.
|
List |
---|
Returns a list of all offer classes for a given issuer ID.
|
Patch |
---|
Updates the offer class referenced by the given class ID. This method supports patch semantics.
|
Update |
---|
Updates the offer class referenced by the given class ID.
|
OfferObjectService
AddMessage |
---|
Adds a message to the offer object referenced by the given object ID.
|
Get |
---|
Returns the offer object with the given object ID.
|
Insert |
---|
Inserts an offer object with the given ID and properties.
|
List |
---|
Returns a list of all offer objects for a given issuer ID.
|
Patch |
---|
Updates the offer object referenced by the given object ID. This method supports patch semantics.
|
Update |
---|
Updates the offer object referenced by the given object ID.
|
OfferClass
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
title |
Required. The title of the offer, such as "20% off any t-shirt." Recommended maximum length is 60 characters to ensure full string is displayed on smaller screens. |
redemption_channel |
Required. The redemption channels applicable to this offer. |
provider |
Required. The offer provider (either the aggregator name or merchant name). Recommended maximum length is 12 characters to ensure full string is displayed on smaller screens. |
title_image |
The title image of the offer. This image is displayed in both the details and list views of the app. |
details |
The details of the offer. |
fine_print |
The fine print or terms of the offer, such as "20% off any t-shirt at Adam's Apparel." |
help_uri |
The help link for the offer, such as |
localized_title |
Translated strings for the title. Recommended maximum length is 60 characters to ensure full string is displayed on smaller screens. |
localized_provider |
Translated strings for the provider. Recommended maximum length is 12 characters to ensure full string is displayed on smaller screens. |
localized_details |
Translated strings for the details. |
localized_fine_print |
Translated strings for the fine_print. |
short_title |
A shortened version of the title of the offer, such as "20% off," shown to users as a quick reference to the offer contents. Recommended maximum length is 20 characters. |
localized_short_title |
Translated strings for the short title. Recommended maximum length is 20 characters. |
class_template_info |
Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display. |
id |
Required. The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
version |
Deprecated |
issuer_name |
Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. |
messages[] |
An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10. |
allow_multiple_users_per_object |
Deprecated. Use |
homepage_uri |
The URI of your application's home page. Populating the URI in this field results in the exact same behavior as populating an URI in linksModuleData (when an object is rendered, a link to the homepage is shown in what would usually be thought of as the linksModuleData section of the object). |
locations[] |
Note: This field is currently not supported to trigger geo notifications. |
review_status |
Required. The status of the class. This field can be set to You should keep this field to You should set this field to When updating an already |
review |
The review comments set by the platform when a class is marked |
info_module_data |
Deprecated. Use textModulesData instead. |
image_modules_data[] |
Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level. |
text_modules_data[] |
Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. |
links_module_data |
Links module data. If links module data is also defined on the object, both will be displayed. |
redemption_issuers[] |
Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The |
country_code |
Country code used to display the card's country (when the user is not in that country), as well as to display localized content when content is not available in the user's locale. |
hero_image |
Optional banner image displayed on the front of the card. If none is present, nothing will be displayed. The image will display at 100% width. |
word_mark |
Deprecated. |
enable_smart_tap |
Identifies whether this class supports Smart Tap. The |
hex_background_color |
The background color for the card. If not set the dominant color of the hero image is used, and if no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex RGB triplet, such as |
localized_issuer_name |
Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. |
multiple_devices_and_holders_allowed_status |
Identifies whether multiple users and devices will save the same object referencing this class. |
callback_options |
Callback options to be used to call the issuer back for every save/delete of an object for this class by the end-user. All objects of this class are eligible for the callback. |
security_animation |
Optional information about the security animation. If this is set a security animation will be rendered on pass details. |
view_unlock_requirement |
View Unlock Requirement options for the offer. |
wide_title_image |
The wide title image of the offer. When provided, this will be used in place of the title image in the top left of the card view. |
RedemptionChannel
Enums | |
---|---|
REDEMPTION_CHANNEL_UNSPECIFIED |
|
INSTORE |
|
instore |
Legacy alias for |
ONLINE |
|
online |
Legacy alias for |
BOTH |
|
both |
Legacy alias for |
TEMPORARY_PRICE_REDUCTION |
|
temporaryPriceReduction |
Legacy alias for |
OfferClassAddMessageRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
add_message_request |
Body of the request. |
OfferClassAddMessageResponse
Fields | |
---|---|
resource |
The updated OfferClass resource. |
OfferClassGetRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
OfferClassInsertRequest
Fields | |
---|---|
resource |
Body of the request. |
OfferClassListRequest
Fields | |
---|---|
issuer_id |
The ID of the issuer authorized to list classes. |
token |
Used to get the next set of results if |
max_results |
Identifies the max number of results returned by a list. All results are returned if |
OfferClassListResponse
Fields | |
---|---|
resources[] |
Resources corresponding to the list request. |
pagination |
Pagination of the response. |
OfferClassPatchRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
OfferClassUpdateRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
OfferObject
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
class_reference |
A copy of the inherited fields of the parent class. These fields are retrieved during a GET. |
id |
Required. The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
class_id |
Required. The class associated with this object. The class must be of the same type as this object, must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. |
version |
Deprecated |
state |
Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an |
barcode |
The barcode type and value. |
messages[] |
An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10. |
valid_time_interval |
The time period this object will be |
locations[] |
Note: This field is currently not supported to trigger geo notifications. |
has_users |
Indicates if the object has users. This field is set by the platform. |
smart_tap_redemption_value |
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The class level fields |
has_linked_device |
Whether this object is currently linked to a single device. This field is set by the platform when a user saves the object, linking it to their device. Intended for use by select partners. Contact support for additional information. |
disable_expiration_notification |
Indicates if notifications should explicitly be suppressed. If this field is set to true, regardless of the Currently, this can only be set for offers. |
info_module_data |
Deprecated. Use textModulesData instead. |
image_modules_data[] |
Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level. |
text_modules_data[] |
Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. |
links_module_data |
Links module data. If links module data is also defined on the class, both will be displayed. |
app_link_data |
Optional information about the partner app link. |
rotating_barcode |
The rotating barcode type and value. |
hero_image |
Optional banner image displayed on the front of the card. If none is present, hero image of the class, if present, will be displayed. If hero image of the class is also not present, nothing will be displayed. |
grouping_info |
Information that controls how passes are grouped together. |
pass_constraints |
Pass constraints for the object. Includes limiting NFC and screenshot behaviors. |
OfferObjectAddMessageRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
add_message_request |
Body of the request. |
OfferObjectAddMessageResponse
Fields | |
---|---|
resource |
The updated OfferObject resource. |
OfferObjectGetRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
OfferObjectInsertRequest
Fields | |
---|---|
resource |
Body of the request. |
OfferObjectListRequest
Fields | |
---|---|
class_id |
The ID of the class whose objects will be listed. |
token |
Used to get the next set of results if |
max_results |
Identifies the max number of results returned by a list. All results are returned if |
OfferObjectListResponse
Fields | |
---|---|
resources[] |
Resources corresponding to the list request. |
pagination |
Pagination of the response. |
OfferObjectPatchRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
OfferObjectUpdateRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |