API v8: Convert Lead to Account

Hi everyone,

Im no expert on the Suite CRM API, so I might be missing something, does anyone know or have any example about this? doesn’t look like the v8 API has this functionality. If this was the case, can anyone put me on the right track about extending the API to add this?.

Thanks in advance!

Hi,
I assume there is no method available that converts leads to contacts like a user would do it using a browser. The approach here:

wasn’t doing that either, it was just updating the leads status to “converted” and creating some relationships.

Options:

  1. do the conversation yourself using the already existing API methods (first updating the lead status, then creating a contact/account + the relationships)
  2. create a custom API method that does the trick with less requests
1 Like

Hello team!

Awesome, I’ll look into the first option and make some tests.

thank you very much for your quick response!!

Note that a lot of stuff happens during Lead conversion:

Those 178+ lines handle a bunch of different cases, you don’t need to emulate all of that through the API, but make sure your code covers everything that might be needed…

Hi @pgr

I will have it in mind,
thanks!