Trying to create a paid invoice

Trying to create a paid invoice

Hi all,

I'm trying to use Zapier to connect Woocommerce to Books to create a paid invoice.

I can get a draft invoice created, but am stuck trying to update the draft invoice. I've tried a number of custom functions from other threads but can't seem to get this working

I need to get the draft invoice flipped to sent or paid automatically. Any suggestions?