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.
Authorization
Request
This endpoint does not take any parameters
Response Object
NAME
TYPE
DESCRIPTION
order
Order
Updated order.
Status/Error Codes
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