updateOrder( )


Updates an order.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

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"; async function updateOrder(identifiers, options) { const response = await orders.updateOrder(identifiers, options); }
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?