Archives multiple orders.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function bulkUpdateOrders(
eventId: string,
options: BulkUpdateOrdersOptions,
): Promise<BulkUpdateOrdersResponse>;
Event ID to which the order belongs.
An object representing the available options for confirming an order.
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
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.