Updates order and tickets.
Only applicable for orders with INITIATED
, PENDING
, OFFLINE_PENDING
statuses.
function updateCheckout(
orderNumber: string,
eventId: string,
options: UpdateCheckoutOptions,
): Promise<UpdateCheckoutResponse>;
Unique order number.
Event ID to which the checkout belongs.
An object representing the available options for updating an order and tickets.
import { orders } from "wix-events.v2";
async function updateCheckout(orderNumber, eventId, options) {
try {
const result = await orders.updateCheckout(orderNumber, 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.