Create a wallet message

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
šŸ“±

OS limitations

Messages based on location (Latitude/Longitude) can be sent for Apple and Android, but time-based notifications can only be sent for Apple.

Request

Define the relevant fields in the body of your request. In the filters element, you can define which wallet users will receive the message. Skip to the filter fields section to learn more about filtering.

Note that the created_at, updated_at, url, and wallet_message_id fields are system generated. Any values specified in the request will be ignored.

Response

Upon a successful request, a wallet message entity will be returned

Filter Field Options

First class field filter

See the first-class fields guide to get more information on how first-class fields work.

SelectorValueExample
anyString{ "name" : "first_class_field", "field_name": "first_name", "selector" : "any", "value" : ["Your Name"] }`
starts_withString{ "name" : "first_class_field", "field_name": "last_name", "selector" : "starts_with", "value" : "R" }

The loyalty_balance first-class field supports comparison of float values.

SelectorValueExample
=, <, <=, > , >=String{"name" : "first_class_field", "field_name" : "loyalty_balance", "selector" : ">=", "value" : 100.5 }
betweenString{"name" : "first_class_field", "field_name" : "loyalty_balance", "selector" : "between", "value" : [1,10] }

Group code filter

SelectorValueExample
anyString{ "name" : "group_code", "selector" : "any", "value" : "code1" }
starts_withString{ "name" : "group_code", "selector" : "starts_with", "value" : "code1" }

Provider filter

SelectorValueExample
anyArray. Possible values are: "passbook" or "google"{ "name" : "provider", "selector" : "any", "value" : ["passbook", "google"] }

Expiration date filter

Notes for Time:

  • ISO8601 format is required. The filter expects an expiration date with a date, time and offset information. Any offset can be used.
  • "on" selector is equivalent to between: [expiration_date (beginning of day), expiration_date (end of day)].
SelectorValueExample
beforeString. Date in ISO8601 format with offset.{"name": "expiration_date", "selector": "before", "value": "2017-10-25T10:20:30-06:00"}
afterString. Date in ISO8601 format with offset.{"name": "expiration_date", "selector": "after", "value": "2017-10-25T10:20:30-06:00"}
betweenArray. 2 dates in ISO8601 format with offset.{"name": "expiration_date", "selector": "between", "value": ["2017-10-24T10:20:30-06:00", "2017-10-25T10:20:30-06:00"]}
onString. Date in ISO8601 with offset{"name": "expiration_date", "selector": "on", "value": "2017-10-25T10:20:30-06:00"}
Path Params
string
required
string
required
Important: If you are entering a real wallet_id, please note that using the "Try It" feature on the righthand console will send an actual API call to our system. This may result in a wallet message being created and sent.
Body Params
message
object
required

The message content delivered to each targeted pass.

filters
array

Filters that target the message to specific passes in the campaign. Omit to message all passes.

filters
Headers
string
Defaults to 1
Responses

404

The specified wallet_id does not exist.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json