Answer the question
In order to leave comments, you need to log in
How to link a contact and a deal in amoCRM?
I use the documentation
https://developers.amocrm.ru/rest_api/leads_set.php
https://developers.amocrm.ru/rest_api/contacts_lin... (I don’t understand how to implement it)
Now I have: when sending from the site, a Contact is automatically created , Task and Deal. The Task is associated with a Contact, but the Deal is not associated with a Contact. How to link the latter?
**** 'element_id' => $contact_id - associates a task with a contact; for the transaction, this option does not work.
Answer the question
In order to leave comments, you need to log in
We first create a deal and then we create a contact.
It turns out that we link transactions to a contact, and not vice versa.
linked_leads_id - list with IDs of the contact's deals
https://developers.amocrm.ru/rest_api/contacts_set.php
If you do everything as in the manual, but the linking does not work, try adding (int) to the 'linked_leads_id' parameter before the value, in the file contact_add.php
I needed to create deals and link to an existing company, I took a request from the admin panel:
POST /ajax/leads/multiple/add/
ACTION: ADD_DEAL_FROM_CONTACTS
new_deal[0][name]: Название сделки
new_deal[0][status]: ID статуса сделки
new_deal[0][pipeline_id]: ID воронки
new_deal[0][main_contact]: ID компании
new_deal[0][element_type]: 3
new_deal[0][price]: Сумма сделки
X-Requested-With: XMLHttpRequest
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question