Error when creating an Account

When I create an account through the API and the is an error (f.i. duplicate name) it is quite clear there is nothing created.
However. When you create an account and one of the (custom) fields has an invalid entry the account IS created, but you won’t get the account ID back.
Instead you get an error (which is OK) about what went wrong, but at the same time you might think the account is not created, which is not true.

It is also quite clumzy you cannot search accounts by name (through the API). If that was true it would be possible to act on the error and see if the account has been created.

1 Like

Hey there! Sorry we missed this when it was originally published, but in the spirit of providing insight on this question, I’ll be happy to take a look!

When it comes to API, we’ll need to take a closer look at what you are getting from your end to determine what could be causing these errors. Feel free to contact us so we can review it together. In the meantime, I’ll attach our API overview article for reference. To check it out, please click HERE.

That said, it is also very important to highlight that, since our team doesn’t provide coding support, in case you are looking for technical assistance, it might be best to double-check directly with your developer, or you can also check our Certified Consultants directory in case you are interested in hiring an expert!

Keep us posted if anything comes up along the way!