List communications
GET
https://api-v2.test.eldowallet.fr/communications
Paginated list of the wallet's communications, filterable by status, by start-date range and by a text search on the description.
Good to know
- Statuses:
PENDING(waiting forstartDate),ACTIVE(live on the loyalty card),INACTIF(deactivated),EXPIRED(endDatepassed). Activation atstartDateand expiry atendDateare handled automatically.
Request
query parameters
sortOrderstringSort direction: `ASC` or `DESC`. Default: `DESC`.enum:asc,descdefault:"desc"statusstringFilter by status: `PENDING`, `ACTIVE`, `INACTIF` or `EXPIRED`.enum:PENDING,ACTIVE,INACTIF,EXPIREDstartDateStartstringOnly return communications whose `startDate` is on or after this date (ISO 8601).startDateEndstringOnly return communications whose `startDate` is on or before this date (ISO 8601).searchstringCase-insensitive search in the communication's `description` or ID.sortBystringSort field. Default: `createdAt`.default:"createdAt"limitnumberItems per page, from 1 to 1,000. 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