It is possible to convert a lead into a deal using APIs? 

Thanks.