Triggered when an order is created and its status is updated to "APPROVED"
.
Learn more about eCommerce webhook payload structure.
function onOrderApproved(handler: function): void;
handler(event: OrderApprovedEnvelope): void | Promise<void>
import { orders } from "@wix/ecom";
orders.onOrderApproved((event) => {
// handle your event here
});