Create invoice draft via REST API

I’m desperately looking for a way to create an invoice draft via the REST API as you can do in the dashboard: Wix Invoices: Creating an Invoice | Help Center | Wix.com
Do I miss something or is Wix Invoices not covered by the REST API?

I need to create invoices for sold Wix event tickets that include the company address (see this topic), because it is a legal requirement in my country, So my hope now is that I can send a webhook to Zapier after a ticket is bought and create a Wix invoice draft from there - saving me sh*tloads of time.

Thank you so much for any ideas!

This isn’t supported in the REST API at the moment however there is a workaround if you’re doing this for a specific site which is to use HTTP Functions and HMAC to create an authenticated endpoint that exposes this functionality for you with https://www.wix.com/velo/reference/wix-billing-backend/invoices/createinvoice

1 Like

Thanks, I will try this!

1 Like

Upon re-reading this I’m not sure where Zapier factors in to this workflow. Can you clarify the full workflow desired here?

Thanks for asking, Anthony!

My desired workflow would be that the buyer of a ticket in Wix Events could provide a billing address and a VAT number that are automatically included in the invoices (cf. EU VAT Directive and its VAT invoice requirements).

I just built a workaround using VosFactures and Zapier. VosFactures generates the invoice after receiving a Wix webhook and an automation in Wix triggers Zapier which updates the generated invoices with the appropriate billing address. It works, but is a complicated procedure - even more so because the billing address is tied to the guest and not to the buyer. But it works for the moment. :wink: