# Create invoice draft via REST API

**URL:** <https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149>\
**Category:** Ask the community\
**Tags:** question, wix-studio, code\
**Created:** [February 9, 2024, 9:01am UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149 "2024-02-09T09:01:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kleh](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kleh](https://forum.wixstudio.com/u/Kleh)\
**Post date:** [February 9, 2024, 9:01am UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149/1 "2024-02-09T09:01:06Z")

</div>

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](https://support.wix.com/en/article/wix-invoices-creating-an-invoice)  
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)](https://forum.wixstudio.com/t/is-there-a-way-to-modify-the-event-invoice/55968), 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!

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [February 12, 2024, 6:52pm UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149/2 "2024-02-12T18:52:01Z")

</div>

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](https://www.wix.com/studio/blog/keep-your-custom-api-secure) to create an authenticated endpoint that exposes this functionality for you with [https://www.wix.com/velo/reference/wix-billing-backend/invoices/createinvoice](https://www.wix.com/velo/reference/wix-billing-backend/invoices/createinvoice)

---

<div class="post-metadata">

**Author:** ![Kleh](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kleh](https://forum.wixstudio.com/u/Kleh)\
**Post date:** [February 13, 2024, 8:14am UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149/3 "2024-02-13T08:14:19Z")

</div>

Thanks, I will try this!

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [February 14, 2024, 3:27pm UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149/4 "2024-02-14T15:27:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kleh](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kleh](https://forum.wixstudio.com/u/Kleh)\
**Post date:** [February 14, 2024, 4:07pm UTC](https://forum.wixstudio.com/t/create-invoice-draft-via-rest-api/56149/5 "2024-02-14T16:07:26Z")

</div>

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](https://de.wix.com/app-market/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. 😉
