Mark Invoice from Zoho Books as Void

Mark Invoice from Zoho Books as Void

I need to use Zoho Flow to mark an invoice from Zoho Books as void when our deals get cancelled before payment. Currently there is no action to mark invoice as void. Can you help me figure out how to do that? Is there a custom function I can use to mark the invoice as void? Any help would be appreciated.