Hello,
I want to add many phone numbers on customer account (mobile/fix) in the same field: phoneNumber. With the UI, it's possible, with the Account GET API, I get the data:
"phoneNumberData": [
{
"phoneNumber": "+33 XXXXXXXXX",
"type": "Office",
"primary": true,
"optOut": false,
"invalid": false
},
{
"phoneNumber": "+33 XXXXXXXXX",
"type": "Mobile",
"primary": false,
"optOut": false,
"invalid": false
}
],
But when I want to update with API, it's not possible ... I have only the first phone number.
The code in array for modify :
The call:
Can you help me ?
Regards.
I want to add many phone numbers on customer account (mobile/fix) in the same field: phoneNumber. With the UI, it's possible, with the Account GET API, I get the data:
"phoneNumberData": [
{
"phoneNumber": "+33 XXXXXXXXX",
"type": "Office",
"primary": true,
"optOut": false,
"invalid": false
},
{
"phoneNumber": "+33 XXXXXXXXX",
"type": "Mobile",
"primary": false,
"optOut": false,
"invalid": false
}
],
But when I want to update with API, it's not possible ... I have only the first phone number.
The code in array for modify :
PHP Code:
'phoneNumberData' => [
['phoneNumber' => "XXXXXXXXXXXX", 'type' => 'Bureau', 'primary' => true, 'optOut' => false, 'invalid' => false],
['phoneNumber' => "XXXXXXXXXXXX", 'type' => 'Mobile', 'primary' => false, 'optOut' => false, 'invalid' => false],
],
The call:
PHP Code:
$response = $client->request('PUT', 'Account/'.$idContact, $data);
Can you help me ?
Regards.