Sync passes for all clients
POST
https://api-v2.test.eldowallet.fr/clients/sync-all
Rebuilds the loyalty card of every client in the wallet from their stored data, to bring installed cards back in line. Pass clientType to process only the clients of one type. Processing is asynchronous: the response only gives the number of clients to sync (clientsToSync).
Good to know
- Clients are processed in batches of 100, each batch as a bulk update operation; the response returns no operation ID to track. Each client is handled like a
PATCH /clients/{id}with unchanged data: theclient.updatedwebhook fires and an update push notification may be sent, depending on your communication rules.
Request
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Body
application/json requiredclientTypestringOptional client type ID to filter clients to syncexample:507f1f77bcf86cd799439011
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 500
Schema
application/jsonclientsToSyncnumber requiredNumber of clients queued for syncexample:150
VALIDATION_ERROR · INVALID_JSON
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
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
MODEL_NOT_FOUND
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
EMAIL_ALREADY_EXISTS · BARCODE_ALREADY_EXISTS
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