Hello, guys, I’m trying to save the contact but the problem is that if I do not provide the email or if i provide email_addresses like this
emial_addresses: [
[
'email': '',
'field': 'EMAIL1'
]
]
It does not saves the contact.But if I provide the email correctly all works well
I was going through your restapi it was said that the email_addresses option was optional.
Can you please tell what is going wrong.,
Here is the data structure
[
'addresses' => [
[
"line1" => '',
"line2" => '',
"locality" => 'Los Angeles',
"postal_code" => '',
"field" => "SHIPPING", //hard coded
],
[
"line1" => '',
"line2" => '',
"locality" => 'Los Angeles',
"postal_code" => '',
"field" => "BILLING", //hard coded
]
],
'birthday' => '1999-12-12',
// 'email_addresses' => [
// [
// 'email' => "",
// 'field' => 'EMAIL1' //hard coded
// ]
// ],
'fax_numbers' => [
[
'field' => "FAX1", //hard coded
"number" => '',
"type" => ''
]
],
'family_name' => '',
'given_name' => '',
'website' => '',
'source_type' => 'API'
];