getTicket( )
Retrieves a ticket by the unique ticket number.
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function getTicket(identifiers: GetTicketIdentifiers, options: GetTicketOptions): Promise<TicketingTicket>
getTicket Parameters
NAME
TYPE
DESCRIPTION
Details for the ticket to retrieve.
Options for the returned ticket data.
Returns
Ticket.
Return Type:
NAME
TYPE
DESCRIPTION
Whether ticket was anonymized by GDPR delete. Anonymized tickets no longer contain personally identifiable information (PII).
Whether the ticket is visible in an order.
Associated order checkout channel type.
Ticket check-in.
Ticket check-in URL. Shown as QR code image in PDF.
Format: https://www.wixevents.com/check-in/{ticket number},{event id}
Example: https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000
Whether ticket requires payment.
Guest personal details.
Guest full name.
Ticket owner member ID.
Ticket name.
Whether order and ticket are visible in order list.
Buyer full name.
Associated order number.
Associated order status. Possible values:
FREE
: The order is confirmed, no payment is required.PENDING
: The order was paid, but the payment gateway suspended the payment.PAID
: The order is paid.OFFLINE_PENDING
: The order is confirmed but has to be paid in cash and the status is manually updated toPAID
.INITIATED
: The order is awaiting for payment.CANCELED
: The order is canceled.DECLINED
: The order is declined.
Ticket and event policies.
Ticket price.
Ticket definition ID.
A unique ticket number which is assigned automatically when creating a ticket.
URL for ticket PDF download.
An URL to download a ticket in the .pkpass
format for Apple Wallet.
Was this helpful?
getTicket example
1import { tickets } from 'wix-events.v2';23 async function getTicket(identifiers, options) {4 try {5 const result = await tickets.getTicket(identifiers, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13