More internal server errors…
I’m patching a company with something very similar to this (names and emails changed):
{
"address":{
"line1":"A Street",
"line2":"",
"region":"",
"country_code":"BEL",
"zip_code":"1030"
},
"company_name":"The Company NV",
"email_address":
"someone@somewhere.be; someoneelse@somewhere.be;yetanotherone@somewhere.be",
"opt_in_reason":"Is a Partner",
"custom_fields":[ ]
}
The response i get is {“message”:“General error”} (and http response-code 500).
Maybe it’s the blank region. Or the multiple emails. Or something else. I’ll figure it out by trial and error, but if anyone at Infusionsoft is reading this, would you please look into improving your validation end errorhandling, and provide more meaningful errormessages?
And maybe be more liberal in what you accept - for instance the restrictions on ‘region’ are very
- awkward to work around when implementing integrations with other systems which does not impose identical restrictions.
- even more so when the restrictions are not well defined in the api documentation.