Need to when it comes to re-entry that focuses on phone number, contact details were updated and a new one created, the associated transaction. It is important that a new contact was not created.
Now the contact and the transaction is created perfectly, but when it comes to update the contact error Bad request error Code: 400
Code below. Will drop some points, if you need to add to see:
'linked_leads_id' => array($lead_id),
$contact = array('id' => $contact ID, 'linked_leads_id' => array($lead_id));
$set['request']['contacts']['update'] = $contact;
Get the contact list by phone number. If contact with the received phone is not present, the variable contact ID is blank and create a new contact. There is no problem. If the contact is, the contact ID contact id is recorded with that number, it runs the update.
But he is not satisfied, the output error 400. The transaction is created, the contact no.
What could be the problem?