I can't seem to find the right API methods to allow me to set a customer's billing company and billing phone number. When I used the CustomerAddressType and called setPhoneNumber(), I received an error about it not being a valid child of that namespace.
When subscriptions are created via the API, I see the "phone" and "company" are blank - how can I set them into an ARB subscription via the API?
The email field is also blank and I would like to populate that progamatically with the newly created subscription.
07-26-2019 05:52 AM - edited 07-26-2019 05:55 AM
This is the exact error
The element 'billTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'phoneNumber' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
From this code;
...
$customerAddress->setCountry($countryCode);
$customerAddress->setPhoneNumber($phoneNumber);
$subscription->setBillTo($customerAddress);
07-26-2019 06:08 AM
07-27-2019 11:52 AM
07-27-2019 11:54 AM