This call will create a customer in the CRM and will associate the created customer with a lead.
If a lead with the same email already exists in the CRM the customer will be associated with that lead.
If not, a new lead will be created.
The marketing parameters sent with the request will be associated with the lead of the customer along with any dynamic parameters passed as metadata.
( If configured in Settings>Trading Platforms ) The trading account parameter is used to create a platform (MT4 / MT5) account together with the new customer.
To use this API call, a valid API key is required in the headers.
If the API key used for the request is also associated with a user, that user will become the source of that lead.
API Key Generation
Go to Settings>System>User Management>Api Keys
Click on ‘New’
Type the name of the API key i.e. ‘API key’
Add an expiration date for the API key
Save your changes
From the column, ‘API key’ take the value that just generated
API Documentation
Please follow instructions found on this link.
Auto Login:
Auto-login URL
In the example below the user will automatically log in to the members area after he has navigated to the example URL.
Query parameter: token
Example URL: https://member.mydomain.com/auth/login?token=user-token
The user will be redirected to the dashboard page.
Auto-login with Redirect URL
In the example below the user will automatically log in to the members area and be navigated to the deposit page after he has navigated to the example URL.
Query parameter: returnUrl
Example URL: https://member.mydomain.com/auth/login?token=user-token&returnUrl=/wallet/deposit
The user will be redirected to the deposit page.
‘'Valid returnUrl parameters can be found on the admin area of the CRM under Settings > Menus’'
Auto-login with hidden status pop-up
In the example below the user will automatically log in to the members area and be navigated to the deposit page after he has navigated to the example URL but without opening the status pop up.
Query parameter: statusPopup
Example URL: https://member.mydomain.com/auth/login?token=user-token&returnUrl=/wallet/deposit&statusPopup=false
The user will be redirected to the deposit page but without opening the status popup.