Search...
bulkUpdateOrders( )
Archives multiple orders.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function bulkUpdateOrders(eventId: string, options: BulkUpdateOrdersOptions): Promise<BulkUpdateOrdersResponse>
bulkUpdateOrders Parameters
NAME
TYPE
DESCRIPTION
eventId
string
Event ID to which the order belongs.
options
Optional
BulkUpdateOrdersOptions
An object representing the available options for confirming an order.
Returns
Return Type:
Promise<
BulkUpdateOrdersResponse
>NAME
TYPE
DESCRIPTION
orders
Array<
Order
>Updated orders.
Was this helpful?
bulkUpdateOrders example
Copy Code
1import { orders } from 'wix-events.v2';23 async function bulkUpdateOrders(eventId, options) {4 try {5 const result = await orders.bulkUpdateOrders(eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13