Skip to main content

Get the communication preferences of a client

GET

https://api-v2.test.eldowallet.fr/clients/:clientId/communication-preferences

Returns a client's communication preferences: allowed channels (email, sms, notification) per notification type, consent to informative and commercial push notifications, and the link to the public page where the client manages their own preferences (consentLink).

Good to know
  • A notification type or channel that was never set counts as allowed (true), as do pushInformativeEnabled and pushCommercialEnabled. consentLink is absent when the client has no loyalty card.

Request​

path parameters
  • clientId string required
    Client ID (24-character hexadecimal ObjectId).
header parameters
  • x-lang string
    Language for responses
    enum: en, frdefault: "en"

Responses​

Schema application/json
  • communicationPreferences object[] required
    • notificationType string requiredenum: NEW_LOYALTY, UPDATE_LOYALTY, REMINDER_LOYALTY, EARNINGS_UPDATE, NEW_COMMUNICATION, EXPIRED_COMMUNICATION, NEW_EVENT, UPDATE_EVENT, NEW_COUPON, UPDATE_COUPON, WELCOME_INTERNAL_CLIENTS, WELCOME_CRM_CLIENTS, WELCOME_EXTERNAL_CLIENTS, WELCOME_COUPON, EXPIRED_COUPON, TRANSIT_TICKET, UPDATE_TRANSIT, HOTEL_RESERVATION, UPDATE_HOTEL_RESERVATION, CINEMA_TICKET
    • sms boolean required
    • email boolean required
    • notification boolean required
  • pushInformativeEnabled boolean required
  • pushCommercialEnabled boolean required
  • consentLink string
    Public, no-login consent-management page URL ('/consent/:token') the client uses to manage their own preferences. Absent if the client has no storecard pass.

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