Group multiple passes

Stay organized with collections Save and categorize content based on your preferences.

Saving multiple passes in a single click does not group passes in the user's account, unless the passes being added have the same grouping ID. Passes can be grouped during a single add or they can be added over multiple adds by using a common grouping ID. Passes that are grouped together will be shown as a group within the Google Wallet application. When the user clicks on the group, each pass will be shown on a carousel.

To add a pass to a given group, the groupingId should be set in the groupingInfo field of the object. All objects who contain the same groupingId will be grouped together. Passes with the same grouping ID will always be grouped together, even if the passes were added separately.

{
  "aud": "google",
  "iat": "YOUR_ISSUER_ID",
  "iss": "YOUR_GSERVICE_ACCOUNT",
  "typ": "savetogooglepay",
  "payload": {
    "eventTicketObjects": [
      {
        "barcode": {
          "alternateText": "some_barcode_value_event",
          "type": "qrCode",
          "value": "some_barcode_value_event"
        },
        "classId": "YOUR_ISSUER_ID.eventClassId",
        "groupingInfo": {
          "groupingId": "grpId1",
          "sortIndex": 1
        },
        "id": "YOUR_ISSUER_ID.eventId"      }
    ],
    "offerObjects": [
      {
        "barcode": {
          "alternateText": "some_barcode_value_event",
          "type": "qrCode",
          "value": "some_barcode_value_event"
        },
        "classId": "YOUR_ISSUER_ID.offerClassId",
        "groupingInfo": {
          "groupingId": "grpId1",
          "sortIndex": 2
        },
        "id": "YOUR_ISSUER_ID.offerId"
      }
    ]
  },
  "origins": []
}