Create paid invoice and send to client

Create paid invoice and send to client

Hi,
  I am trying to create a paid invoice through API. I set the balance to 0 and tried setting the invoice status to paid as well. Is there a way to do this without calling payment API as an additional step.

Also I am not able to send the invoice email to the contact even though the email id is set in the contact in zoho books. I tried adding the contact_id in contact_persons and it complains of invalid id.

 I have marked send = true in query params when calling the API. I also get this error message in the repsonse:
message: 'The invoice has been created. We face an error while sending the invoice. Reason: The email address for this customer was not found in the invoice details.',
I am able to click the email icon in the invoice in Zoho website and it has the email address populated.

Any help will be appreciated.

Thanks
Avinash