getInvoice( )


Generates a preview of an invoice, including the given coupon or pricing plan.

Permissions
Manage Events - all permissions
Read Events - all read permissions
Manage Orders
Read Basic Events Order Info
Learn more about app permissions.
Method Declaration
Copy
function getInvoice(
  reservationId: string,
  eventId: string,
  options: GetInvoiceOptions,
): Promise<GetInvoiceResponse>;
Method Parameters
reservationIdstringRequired

Reservation ID.


eventIdstringRequired

Event ID to which the invoice belongs.


optionsGetInvoiceOptions

An object representing the available options for generating a preview of a reservation invoice.

Returns
Return Type:Promise<GetInvoiceResponse>
JavaScript
import { orders } from "@wix/events"; async function getInvoice(reservationId, eventId, options) { const response = await orders.getInvoice(reservationId, eventId, options); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?