Search.../

bulkUpdateOrders( )

Developer Preview

Updates multiple orders' archived status.

Note: This function is restricted and only runs if you elevate permissions using the wix-auth.elevate() function.

Syntax

function bulkUpdateOrders(eventId: string, options: BulkUpdateOrdersOptions): Promise<BulkUpdateOrdersResponse>

bulkUpdateOrders Parameters

NAME
TYPE
DESCRIPTION
eventId
string

Event ID.

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';
2
3 async function bulkUpdateOrders(eventId, options) {
4 try {
5 const result = await orders.bulkUpdateOrders(eventId, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13