Trying to use the highrise api to create people. So far I am half successful in that I can create a person and add a first name,last name, email, and phone number. However when I try and add an address, the data is not saved. Same thing for multiple phone numbers, ie Work, Home, etc. Here is an example of the data that is being send in my post
<person>
<first-name>John</first-name>
<last-name>Doe</last-name>
<title>CEO</title>
<company-name>Doe Inc.</company-name>
<background>A popular guy for random data</background>
<linkedin_url>http://us.linkedin.com/in/john-doe</linkedin_url>
<contact-data>
<email-addresses>
<email-address>
<address>john.doe@example.com</address>
<location>Work</location>
</email-address>
</email-addresses>
<phone-numbers type="array">
<phone-number>
<number>555-555-5555</number>
<location>Work</location>
</phone-number>
<phone-number>
<number>555-666-6666</number>
<location>Home</location>
</phone-number>
</phone-numbers>
</contact-data>
</person>
Am I missing something? For some background, I'm using node, turning the data from json into xml using an npm package. This is how the xml looks as its going out to highrise
Here is a sample of the json I'm using
{
"person": {
"first-name": "John",
"last-name": "Doe",
"title": "CEO",
"company-name": "Doe Inc.",
"background": "A popular guy for random data",
"linkedin_url": "http://us.linkedin.com/in/john-doe",
"contact-data": {
"email-addresses": {
"email-address": {
"address": "john.doe@example.com",
"location": "Work"
}
},
"phone-numbers": {
"-type": "array",
"phone-number": [
{
"number": "555-555-5555",
"location": "Work"
},
{
"number": "555-666-6666",
"location": "Home"
}
]
}
}
}
}
Ive tried using the type="array" and without