SalesAccount issue in /api/leads/[id]/convert API

Hello guys and gals!

I have a doubt about the use of leads conversion REST API:

In the support documentation it’s stated the following about the conversion within FS portal:

Account creation:
If the ‘account name’ field is filled during conversion, an account associated with the lead is created.

  • If the company is an existing account in Freshsales, the newly converted contact is associated with that account.
  • If an account doesn’t exist then a new account is created for the same.

When I send a lead conversion request for a contact whose company is already a sales account I get the following error back: “SalesAccount - Name has already been taken”.
The company name field is mandatory and the API documentation doesn’t suggest any other field where I could set an account_id, for instance.

Does anyone know a way to perform the lead conversion assigning the new contact to an existing sales account via the API?

Thanks a lot for your help! :wink: