Как привязать свою партнерскую ссылку при создании сайта в Tilda, LPgenerator, Flexbe, Wix и Creatium.io
For any builder, you first need to generate a link to set up integration with our affiliate network.

The link looks like this: http://api.onecrypt.link/api/lead/constructor/tilda?key=qwerty&offer_id=1234

where:
qwerty = OneCrypt API key.
1234 = Offer ID in OneCrypt.
Tilda
1.Go to the builder and select the site you want to link. You need to go to its settings, navigate to forms, and open Webhook.
2.Insert the link created for integration into the field below, enter the API key (from your profile at our affiliate program site) and press "Add" button:
3.Next, go to the landing page to the order form, click the "Content" button, and in the "Data reception from forms" section, select your Webhook

4.Next, go to the "Input fields" section, also in the form settings.

For the fields:
  • Name (variable name - name).
  • Phone (variable name - phone). Make the "Phone" field mandatory by checking the corresponding box in the settings.
  • Next, create a new field for entering the country with the "Dropdown list" type (variable name - country). Countries are configured depending on the offer. If a lead arrives with an empty country, it will not be processed, so make this field mandatory in the Tilda form settings. Data in the "Country" field must be passed in the [CODE] text* format (for example, for Argentina it would be: [AR] Argentina).
Be sure to check that name and phone are in lowercase.
This completes the integration with Tilda. If necessary, you can specify other input fields; variable names can be found here in the "Lead Receiver" section.
LPgenerator
To integrate with LPgenerator, you need to:
  • In the form settings on the landing page, go to the "Actions" tab.
  • In the tab, find the "Send data" item.
In the link field, enter the generated integration link.
http://api.onecrypt.link/api/lead/constructor/lpgenerator?key=qwerty&offer_id=1234
Flexbe
To integrate with Flexbe, you need to:
  • Go to the Site Settings.
  • In the settings, go to the API section.
  • Enter the Webhook link.
The link is generated according to the template:
http://api.onecrypt.link/api/lead/constructor/flexbe?key=ApiKey&offer_id=Offer_ID&country=country

Where:
ApiKey - your API key available in your TL profile
Offer_ID - the ID of the offer you plan to run traffic to
country - the field for transmitting the GEO; it can be made hidden, data must be passed in the format [AR] Argentina  (this is an example for Argentina, for other GEOs it will be similar). Name this field whatever you want, but ensure it is the name you specified, not a generated default one. It is exactly this field that needs to be passed; logically, it will pass the value instead of the name, for example:
http://api.onecrypt.link/api/lead/constructor/flexbe?key=eLnr6OqSzWnIRqTsu59JnedDchxhutfsUaEz0UZhc4&offer_id=2277&country=country

The Name and Phone fields should be the standard ones provided in the builder; they are initially configured correctly and named name and phone, so there is no need to specify them in the parameters.

Wix
To integrate with Wix, you need to:
  • In the main menu, select "Automations".
  • Next, add a "New automation".
  • Automation setup: In the "Trigger" section, select "Wix Forms".
  • Next, in the "Action" section, connect Webhook.
In the "Target URL" field, enter the link according to the template:
http://api.onecrypt.link/api/lead/constructor/wix?key=KEY&offer_id=OFFER_ID&API_FIELD=FIELD_NAME

  • Parameter description:
  1. KEY - Your API key, which can be taken from your profile on the affiliate network website.
  2. OFFER_ID - Offer ID in our system.
  3. API_FIELD - The field into which the parameter is passed; see the names of all fields here in the "Lead Receiver" section.
  4. FIELD_NAME - The name of the field (see the next step on where to find it).
  5. If the name and phone are entered into standard "phone" and "name" fields on the form, you do not need to pass them in the parameters.

  • To find the field name, you need to:
  1. On the page with the form, right-click on the field.
  2. In the menu that appears, find the "Inspect" item.
  3. The page code editor will open, where you can find the field name passed into the parameters (The name is located in the id parameter of the element block).
  • In the parameters, fields are specified according to the principle Field_in_api = field on the page, i.e., for example, if you have a dropdown list "country" whose value you want to pass, you need to check the field name in the page code and pass it in the link in the country parameter. You will get a link like: http://api.onecrypt.link/api/lead/constructor/wix?key=UpPEfylTRXpbFhGZPAWE1ms&offer_id=94&country=comp-khotz2dk
  • In the example form, standard fields are used for the name and phone, so they do not need to be passed. 
  • In the country field, data must be passed in the [CODE] text format (e.g., [RU] Russia, [AR] Argentina).
Creatium.io
To integrate with Creatium, you need to:
  1. Go to your dashboard, to the "Integrations and notifications" section, and click "Connect new integration"; in the form that appears, select Webhook.
2.After selecting Webhook, fields for filling in the URL and Webhook header will expand.
In the URL, specify the link generated according to the template: http://api.onecrypt.link/api/lead/constructor/creatium?key=ApiKey&offer_id=Offer_ID
Select the transmission method (POST), after which it will be possible to configure the header and body of the Webhook.
Specify the sending type, select raw and content-type:application/json.

Next, proceed to configure the fields to be passed.
On the left, the transmitted fields are specified: see the list of fields in the API help; on the right are the values, some of which can be obtained from standard form fields, some from custom fields.

To pass the GEO, you must add a hidden field to the form.
In the "Field" tab, you must enter "Field identifier (for integrations)" - country.
In the field value, you must pass the GEO data in the [CODE] text* format (for example, for Argentina it would be: [AR] Argentina). And also do not forget to check the box "Enable prefilling the field".
The configured Webhooks will be visible in the corresponding section: