List clients
GET
https://api-v2.test.eldowallet.fr/clients
Paginated list of the wallet's clients with the state of their loyalty card (passStatus, deviceTypes, shortLink). Combine full-text search (search), exact-match filters and the status filter to find a client or a segment.
Good to know
firstName,lastName,email,barcodeandphoneNumberare exact-match filters; usesearchfor a partial, case-insensitive match. Thestatus,createdAtStartand sort parameters apply to the client's loyalty card.
Request
query parameters
sortOrderstringSort order: `asc` or `desc`. Default: `desc`.enum:asc,descdefault:"desc"statusstring[]Loyalty card status: `active`, `inactive`, `deleted`, `canceled` or `expired`. Repeat the parameter to combine several statuses.createdAtStartstring <date-time>Only returns clients whose card was created on or after this date (ISO 8601).emailstring <email>Exact client email.barcodestringExact client barcode.phoneNumberstringExact client phone number, as stored.firstNamestringExact first name (case-sensitive). For a partial match, use `search`.lastNamestringExact last name (case-sensitive). For a partial match, use `search`.searchstringCase-insensitive partial match on first name, last name, email, barcode, phone number and client ID.sortBystringLoyalty card sort field: `createdAt` (default), `updatedAt`, `_id`, `status` or `expirationDate`. Any other value falls back to `createdAt`.default:"createdAt"limitnumberClients per page, from `1` to `1000`. Default: `10`.default:10min: 1max: 1000pagenumberPage number, starting at `1`. Default: `1`.default:1min: 1
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Responses
- 200
- 401
- 403
- 500
Schema
application/jsondocsobject[] requiredtotalDocsnumber requiredlimitnumber requiredpagenumbertotalPagesnumber requiredpagingCounternumber requiredhasPrevPageboolean requiredhasNextPageboolean requiredprevPagenumbernextPagenumber
UNAUTHORIZED
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
FORBIDDEN
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNKNOWN_ERROR
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email