I need help : A problem with the invoices

Hello,

Due to the fact that invoices generated by Wix do not fully comply with EU legislation for B2B transactions, I need to make some modifications to them.

However, I’m unable to create invoices with this specific information.

Question:
How can I ensure that invoices with customized legal information are linked to specific orders and visible in the member account area?

Product:
Velo by Wix, specifically wix-billing-backend and the member account page.

What are you trying to achieve:
I want to add legal clauses to invoices associated with each order, accessible to customers in their account area. I’ve explored two approaches, each with its own challenges:

  1. updateInvoice() allows me to add legal details, but it only works with manually created invoices, not those generated automatically by Wix. Each time I try, I receive an error message stating that the invoice is locked for modification.
  2. Manually creating invoices with legal clauses based on the information from an order (retrieved via an event) works, but there is no field to link these invoices directly to specific orders, so they don’t appear in the account area. I don’t see any way to specify the order associated with the invoice.

Additional information:
I’m open to either approach (or other)—updating Wix-generated invoices or creating them manually, provided they can be linked to orders and displayed in the account area.

Any guidance or workarounds would be greatly appreciated.

Thank you!

When I say “manually”, it’s by the mean of createInvoice of wix-billing-backend api.

regards,