Import clients from file
POST
/api/crm/v2/clients_import.importv2 operationId:
clientsImport.importImports network clients from a CSV file: delimiter ;, three columns — name, phone, bonuses. For each row, the phone number is normalized and validated; if the client does not exist, a new one is created. A client profile is created in the first branch of the network and bonuses are credited. Invalid phone numbers and zero bonus amounts are skipped. If the file is not provided, error 106 is returned; if the CSV is invalid, error 108 is returned.
Authorization
api-token + language + role
Query parameters
chain_idintegerrequired
Example: 1
Request body multipart/form-data
object
filestring · binaryrequired
File *.csv
Responses
OK
object
statusstringrequired
Values:successerror
Example: success
One of the options
object
Error description
errorobjectrequired
codeintegerrequired