Wix Invoice with input

I need to create an invoice for bulk orders with dataset and invoice backend, But I didn’t understand the invoice backend API reference. Can you please help me to create an invoice generator. My customer will input their details and the invoice should be created with a payment link.

I have contacted Wix corvid Customer care they request to ask help in the forum.

Should I use this API in frontend or backend? https://www.wix.com/corvid/reference/wix-billing-backend.invoices.html#createInvoice
I really appreciate if someone send me the code.

Hi,
You should use this API in a backend file, the required and optional fields for creating an invoice are described here , share your code if you need further assistance.