Export clients to CSV
POST
https://api-v2.test.eldowallet.fr/csv-operations/export-csv
Runs in the background: the response is a CSV operation whose progress you can follow with GET /csv-operations.
Good to know
- Exports every client of the wallet. When the operation reaches
SUCCESS,fileLinkholds the URL of the CSV file (UTF-8 with BOM) and the user who requested the export receives an email with the link; on error the status becomesFAILURE. Columns:_id,firstName,lastName,email,renewalDate,source,phoneNumber,wallet,barcode,admissionDate,createdAt,birthDate,status,devices,type,shortlink,gain,communicationPreferences.
Request
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Responses
- 201
- 401
- 403
- 500
Schema
application/jsonwalletoneOf required- Wallet
namestring requiredlogostring requirediconstring requiredandroidLogostringdisplayIdentifiantboolean requiredpassBuilderPassTemplateIdstringpassBuilderBusinessIdstringpassBuilderTokenstringidentifierstring requiredidentifierQrstring requiredaddressstringwebsitestring requiredservicePhonestring requiredbusinessPhonestring requiredsocialMediaobject requiredlinkedinstringfacebookstringinstagramstringtiktokstringtwitterstringyoutubestringsnapchatstringpintereststringredditstringwhatsappstringtelegramstring
additionalContactsobject[] requiredtitlestring requiredvaluestring requiredkindstring requiredenum:URL,PHONE,EMAIL
termsAndConditionsobject requiredtypestring requiredenum:PDF,URL,NONEcustomUrlstringpdfUrlstring
webHookUrlstring requiredrootDomainstring requiredtimezonestringallowedPassesstring[] requiredenum:ALL,EVENT_TICKET,TRANSIT,CINEMA,BOARDING_PASS,COUPON,GENERIC,STORE_CARD,OFFER,HOTELexpiredCleanupEnabledboolean required_idstring requiredcreatedAtstring <date-time> requiredupdatedAtstring <date-time> required
- option 2
- Wallet
operationTypestring requiredenum:IMPORT,EXPORTstartTimestring <date-time> requiredendTimestring <date-time>numRecordsnumbernumDuplicatesnumber requirednumInvalidnumber requirednumValidnumber requirednumSuccessfulnumber requiredfileNamestringfileLinkstringinvalidCsvFileLinkstringcustomerCsvFileLinkstringvalidCustomersCsvstringsendNotificationsToCustomersboolean requiredstatusstring requiredenum:SUCCESS,FAILURE,PENDING,CLOSE,INCOMPLETED,DOWNLOADED_idstring requiredcreatedAtstring <date-time> requiredupdatedAtstring <date-time> required
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