Get the communication preference history of a client
GET
https://api-v2.test.eldowallet.fr/clients/:clientId/communication-preferences/history
Returns the paginated history of a client's communication preference changes, newest first. Each entry gives the channel and event concerned, the old and new value, who made the change and when, with translated labels.
Request
path parameters
clientIdstring requiredClient ID (24-character hexadecimal ObjectId).
query parameters
pagestring requiredPage number, starting at `1`. Default: `1`.limitstring requiredEntries per page. Default: `20`.langstring requiredLanguage of the labels (`channelLabel`, `eventLabel`, `oldValueLabel`, `newValueLabel`): `fr` or `en`. Default: `fr`.
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