To set up the integration, you need:
In Passquare settings, set the starting wallet card number. This number must be greater than the numbers of cards already created in the CRM.
Open this link: https://klientiks.ru/clientix/admin/eventHandlers
If the link does not open, check that you are signed in to Klientiks CRM in the browser as a user with full rights.
In the window that opens:
https://core.passquare.com/api/v2/klientiks/webhook/PUBLIC_API_KEY?old_phone={{#old_data}}{{phone}}{{/old_data}}&phone={{#new_data}}{{phone}}{{/new_data}}&id={{#new_data}}{{id}}{{/new_data}}&birth_date={{#new_data}}{{birth_date}}{{/new_data}}&loyalty_program_status={{#new_data}}{{loyalty_program_status}}{{/new_data}}&first_name={{#new_data}}{{first_name}}{{/new_data}}&patron_name={{#new_data}}{{patron_name}}{{/new_data}}&second_name={{#new_data}}{{second_name}}{{/new_data}}
where PUBLIC_API_KEY is the Passquare public key.
Open your Passquare account and go to Integration. If a demo period is active, end it.
Click the CRM system field and select Klientiks CRM from the drop-down list. In Server, enter `https://klientiks.ru`; In Login, enter the user ID; In Password, enter the authorization token; In Organization ID, enter the company ID; Click Save, then turn the integration on.
If you already have issued cards in your Passquare account, go to Customers and, in the lower-right corner, click Write to CRM.