Search.../

getOrder( )

Developer Preview

Retrieves an order, including ticket data.

The fieldsets in this function are restricted and only run if you elevate permissions using the wix-auth.elevate() function.

Syntax

function getOrder(identifiers: GetOrderIdentifiers, options: GetOrderOptions): Promise<GetOrderResponse>

getOrder Parameters

NAME
TYPE
DESCRIPTION
identifiers
GetOrderIdentifiers

An object containing identifiers for the order to be retrieved.

options
Optional
GetOrderOptions

An object representing the available options for getting an order.

Returns

Return Type:

Promise<
GetOrderResponse
>
NAME
TYPE
DESCRIPTION
calendarLinks
CalendarLinks

"Add to calendar" links.

order
Order

Requested order.

Was this helpful?

getOrder example

Copy Code
1import { orders } from 'wix-events.v2';
2
3 async function getOrder(identifiers, options) {
4 try {
5 const result = await orders.getOrder(identifiers, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13