bulkUpdateOrders( )


Archives multiple orders.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Events - all permissions
Manage Orders
Learn more about app permissions.
Method Declaration
Copy
function bulkUpdateOrders(
  eventId: string,
  options: BulkUpdateOrdersOptions,
): Promise<BulkUpdateOrdersResponse>;
Method Parameters
eventIdstringRequired

Event ID to which the order belongs.


optionsBulkUpdateOrdersOptions

An object representing the available options for confirming an order.

Returns
Return Type:Promise<BulkUpdateOrdersResponse>
JavaScript
import { orders } from "wix-events.v2"; async function bulkUpdateOrders(eventId, options) { try { const result = await orders.bulkUpdateOrders(eventId, options); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

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

Did this help?