Wallet Campaign API

A wallet campaign refers to a campaign that involves the customer downloading a wallet item directly into their Apple or Android mobile wallet. These items can be used to distribute one-time offers or be utilized for loyalty cards and rewards programs.

Our Wallet Campaign API allows you to update campaigns and retrieve metadata on wallet items via API calls. However, please note that you can’t create wallet campaigns using an API call; all wallet campaigns must be initially created in the platform. For help on creating wallet campaigns, please see our resource center.

Available API Methods

Available Callbacks

Elements & Attributes

Wallet Campaign Entity

Data ElementTypeDescription
wallet_idStringUnique identifier for the wallet campaign, as automatically generated by Wallet Manager system.
nameStringDescriptive name of the mobile wallet campaign.
typeStringValid values are “Offer” or “Loyalty”.
smartlink_urlStringURL used to distribute the initial offer or loyalty card to customers.
urlStringREST API reference to the mobile wallet campaign entity.
created_atTimestampTimestamp for when the mobile wallet campaign was first created. It should be in the ISO 8601 format - for example: 2017-01-15T14:30Z.
updated_atTimestampTimestamp for when the mobile wallet campaign was last updated. It should be in the ISO 8601 format - for example: 2017-02-18T19:30Z.

Wallet Item Entity

Data ElementTypeDescription
wallet_item_idStringUnique identifier for the wallet item specified at creation. This can be system generated or customer supplied in the creation URL.

Note: The wallet_item_id is the UUID, which is a campaign-specific identifier that is used to identify wallet objects. This is generally customer defined, as it can be included in links and used before a wallet object is created.
group_codeStringOptional string value to indicate groups of related wallet items. Can be used for targeted messaging.
campaign_refObjectContains data related to the mobile wallet campaign this item is associated with.
campaign_ref.idStringThe wallet_id for the wallet campaign this item is associated with.
campaign_ref.typeStringCampaign type (“Offer” or “Loyalty”).
campaign_ref.urlStringReference to internal URL of mobile wallet campaign entity.
activeBooleanA Boolean that indicates if an item is currently installed on a person’s device.

True: Wallet item is currently installed.
False: Wallet item is no longer installed.
tokensObjectList of key/value pairs of item specific data that can be used to personalize the item.
locationsArrayArray of up to 10 latitude and longitude value pairs used by mobile wallet applications to determine when to present information to a person within proximity to a specified location.
relevant_textStringText displayed on person’s iPhone lock screen when the device is within 100 meters of an associated latitude-longitude value.

Note: This feature is only available for Apple. Android does not support custom text.
providersArrayIndicates the currently installed wallet content providers for the specific Item instance.

Note: “Passbook” and “Google Wallet” are the only supported values. “Passbook” is now referred to as Apple Wallet, and “Google Wallet” is Google Pay.
created_atTimestampTimestamp for when the mobile wallet campaign was created. It should be in the ISO 8601 format - for example: 2017-01-15T14:30Z.
updated_atTimestampTimestamp for when mobile wallet campaign was last updated. It should be in the ISO 8601 format - for example: 2017-02-18T19:30Z.

Entity Examples

Below is an example of a wallet campaign entity.

{
   "wallet_id":"abcde12345",
   "name":"Gold Status",
   "type":"Loyalty",
   "smartlink_url":"http://mp.vibescm.com/c/a1b2c3",
   "url":"/companies/:company_id/campaigns/wallet/abcde12345",
   "created_at":"2017-01-15T14:30Z",
   "updated_at":"2017-02-18T19:30Z"
}

Below is an example of a wallet item entity.

{
  "wallet_item_id": "abcdef23SDF2",
  "group_code": "DEALS",
  "campaign_ref": {
    "id": "abCDefGHij",
    "type": "Loyalty",
    "url": "/companies/:company_id/campaigns/wallet/abCDefGHij"
  },
  "active": true,
  "tokens": {
    "first_name": "John",
    "last_name": "Doe",
    "loyalty_balance": "552"
  },
  "locations": [
    {
      "latitude": 43.6867,
      "longitude": -85.0102,
      "relevant_text": "Visit our State St store"
    },
    {
      "latitude": 37.789898,
      "longitude": -122.400751,
      "relevant_text": "Visit our Market St store"
    }
  ],
  "providers": [
    "Passbook",
    "Google Wallet"
  ],
  "url": "/companies/:company_id/campaigns/wallet/abCDefGHij/items/abcdef23SDF2",
  "created_at": "2017-01-15T14:30Z",
  "updated_at": "2017-02-18T19:30Z"
}