Search...
updateOrder( )
Updates an order.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function updateOrder(identifiers: UpdateOrderIdentifiers, options: UpdateOrderOptions): Promise<UpdateOrderResponse>
updateOrder Parameters
NAME
TYPE
DESCRIPTION
identifiers
UpdateOrderIdentifiers
An object containing identifiers for the order to be updated.
options
Optional
UpdateOrderOptions
An object representing the available options for updating an order.
Returns
Return Type:
Promise<
UpdateOrderResponse
>NAME
TYPE
DESCRIPTION
order
Order
Updated order.
Was this helpful?
updateOrder example
Copy Code
1import { orders } from 'wix-events.v2';23 async function updateOrder(identifiers, options) {4 try {5 const result = await orders.updateOrder(identifiers, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13