Skip to main content

Locations and proximity alerts

The customer walks past your store and their card pops up on the lock screen with a message: "10% off today, just round the corner". You send nothing. The phone triggers it, based on the locations stored in the pass.

How it works​

  1. You declare locations: latitude, longitude, and a relevant text (the message shown).
  2. eldo wallet writes them into the passes.
  3. When the customer enters the area, Apple Wallet or Google Wallet suggests the pass on the lock screen with that text.

Endpoints​

NeedEndpoint
List the loyalty card locationsGET/wallet-locations
Add a locationPOST/wallet-locations
Edit, deletePATCH/wallet-locations/{id}, DELETE/wallet-locations/{id}
Locations for an event, transit or hotellocations (or location) field on the template: POST/events, POST/transits, POST/hotels
POST/wallet-locationsTry it
curl -L 'https://api-v2.test.eldowallet.fr/wallet-locations' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-lang: en' \
-H 'Authorization: Bearer <token>' \
-d '{
"latitude": 43.2965,
"longitude": 5.3698,
"relevantText": "Our Old Port store is just steps away."
}'

Messages by time of day​

A location can carry several texts, each with its own time slot: relevantTextList, with relevantText, startTime and endTime. Example: "Free coffee before 10 am" in the morning, "Happy hour until 7 pm" in the afternoon, same spot.

Limits​

  • A maximum number of locations per wallet. Beyond it, the API returns MAX_WALLET_LOCATIONS_REACHED. Apple Wallet itself only uses 10 locations per pass.
  • It is not a push. The system decides whether to show the pass based on distance, phone usage and the customer’s settings. Do not rely on it for critical information.
  • The customer stays in control. They can turn off pass suggestions on the lock screen.
More than 10 stores

Pick the 10 places that matter most: flagship stores, stations, shopping centres. The rest will not show on iPhone.

Go further​

API news, once a month

New endpoints, upcoming changes, guides and use cases. No spam, one-click unsubscribe.

Report a technical problem

An API error, a pass that does not update, an email that does not arrive? Describe the problem: our technical team will answer.

For a fast answer, include:

  • The method and endpoint (e.g. POST /clients)
  • The error code returned (errorCode) and the body sent
  • The date and time of the call
  • The identifiers involved (customer, template, pass)

Never include an API token or a password.

AI assistant

Beta

Loading…

AI-generated answers (Claude): double-check important details.

Sign in to use the assistant