updateOrder( )


Updates an order.

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 updateOrder(
  identifiers: UpdateOrderIdentifiers,
  options: UpdateOrderOptions,
): Promise<UpdateOrderResponse>;
Method Parameters
identifiersUpdateOrderIdentifiersRequired

An object containing identifiers for the order to be updated.


optionsUpdateOrderOptions

An object representing the available options for updating an order.

Returns
Return Type:Promise<UpdateOrderResponse>
JavaScript
import { orders } from "wix-events.v2"; async function updateOrder(identifiers, options) { try { const result = await orders.updateOrder(identifiers, 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?