The Generic Pass is available for when your use case doesn't fit into any of the other predefined pass types. Unlike other passes that include fields and features that are specific to a use case, such as tickets, loyalty cards, and offers, the Generic Pass is intended to be flexible enough to support a variety of purposes by providing fields where you can define custom labels and values.
Example use cases
The following are just a few examples of what you can do with the Generic pass type:
- Parking passes
- Library cards
- Membership cards
- Insurance cards
- Reservation confirmations
- Customer pre-screen confirmation codes
Passes that include sensitive information
There are cases where your pass or use case may involve sensitive information, such as personally identifiable information (PII) and health data. For these scenarios, the Generic Private pass type is available for pre-approved use cases. For more information, see the Generic Private Pass documentation and the Acceptable Use Policy (AUP).
With the Google Wallet API, you can issue passes for your users to save in their Google Wallet across multiple platforms, including Android apps, and anywhere hyperlinks are supported, such as websites, email, and SMS messages.
APIs & SDKs
The Google Wallet API offers a REST API and an Android SDK to help you issue and manage your passes quickly and easily.
- Google Wallet REST API
To issue passes on platforms such as the Web, email, or SMS, we recommend you use the Google Wallet REST API. The API provides a set of endpoints that let you create, retrieve, and update the various components of passes.
- Google Wallet Android SDK
To issue passes in an Android app, we recommend you use the Google Wallet Android SDK. The SDK provides a variety of convenience methods that make it easy to integrate the Google Wallet API into your mobile apps using native code.
Note: Using the Google Wallet REST API or Google Wallet Android SDK is not required to issue passes with the Google Wallet API, but are strongly recommended. For more information on issuing passes without using the REST API or Android SDK, see Creating Passes Objects and Passes Classes in the JWT.
RequirementsTo issue passes with the Google Wallet API, you will first need to do the following:
- Create a Google Wallet API Issuer account.
- Non-Android developers: Create a Google Cloud account.
- Android developers: Set up Google Play services.
Getting started with the Google Wallet APIBefore you start working with the Google Wallet API, take a look at these useful articles that will familiarize you with the basic features and terminology.
- Key concepts and terminology: This article will familiarize you with all the important terms and features you will need to work with the Google Wallet API.
- Passes Classes and Objects overview: Passes that you issue to your users are created by combining a Passes Class with a Passes Objects. This article will familiarize you with both of these concepts, and how they are used to create passes.
- Google Wallet pass development flow: This article provides an end-to-end overview of all of the steps needed to create a pass with the Google Wallet API from start to finish.
Tools & resources
Self-guided codelabs walk you through the necessary steps to add a pass to Google Wallet. To get started, choose "Android" if your implementation will be on Android devices only and choose "Web" if your implementation supports Android, Web, Email or SMS.
- Pass builder
Build your first pass visually with the pass builder tool, and automatically generate the JSON you need to create the pass with the Google Wallet API.
- Google Wallet Github
Get helpful tools, libraries and sample code for a variety of programming languages in the Google Wallet Github org.