Hi all,
I’d like to be able to create a new company record via the REST API. Is this possible? I see there’s an existing Zapier integration that allows this, so Zapier must be doing it somehow…
Yup it’s possible. A company record is in fact a contact record with one exception. The AccountId field is set to the same as the Id field…that’s it. So to use REST to create a company record, create it as a contact record, read the id and then update the ‘contact’ record field ‘AccountId’ with the Id number…poof, a company. Note, just because zapier is doing something doesn’t mean they aren’t using the regular api to accomplish some things. If the REST didn’t allow for this that would have still been an option.
From reading other posts, I thought REST API has it way to work around.
I was thinking if API developers have this REST API feature in progress, I could build all InfusionSoft requests in same standard in my system.
The REST api is in development still and some of the fields do not seem to provide access yet. The AccountId field, as reported by the person above, does not appear to be one that is available yet through REST and that is the field that would be necessary to make equal to the Id field to make it a company record.