Hi @Jer_Fortenberry, I’m not extremely familiar with PHP but I think I may know your issue. The email_addresses
and phone_numbers
properties take an array of objects, each representing a different field or set of fields. I think you need to wrap your objects in one more array()
like this.
$contact = array(
'email_addresses' => array(
array(
'email' => 'test@test.com',
'field' => 'EMAIL1'
)
),
'given_name' => 'John',
'family_name' => 'Doe',
'phone_numbers' => array(
array(
'field' => 'PHONE1',
'number' => '123-123-1234'
)
)
);