How do I create a Credit Note from Zoho CRM

How do I create a Credit Note from Zoho CRM

Greetings to you all!

Hope somebody can help me with this one....

Here's the issue:

When I create a Deal on Zoho CRM, I create a function to create an Invoice in Zoho Books.

I need to create a Credit Note the same way when I create the Invoice, in case the Deal's stage is "Lost"

Can it be possible?

Thanks and regards,