Search.../

onOrderUpdated( )

Developer Preview

Triggered when an order is updated.

Description

This is a general webhook that is triggered when any update is made to an order. More specific webhooks are also triggered for the same originating events.

Order eventAlso triggered
Order is paid for.Order Purchased Webhook
Free or offline order is created.Order Purchased Webhook
Order reaches its startDate.Order Started Webhook
Order reaches its endDate.Order Ended Webhook
New payment cycle of an order starts.Order Cycle Started Webhook
Offline order is marked as paid.Order Marked As Paid Webhook
endDate of the order is postponed.Order End Date Postponed Webhook
Order is paused.Order Paused Webhook
Paused order is resumed.Order Resumed Webhook
Order is canceled.Order Canceled Webhook
Order is canceled and effectiveAt is set to NEXT_PAYMENT_DATE.Order Auto Renew Canceled Webhook

Syntax

function wixPricingPlans_onOrderUpdated(event: OrderUpdated): void

onOrderUpdated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
OrderUpdated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onOrderUpdated example

Copy Code
1
2 export function wixPricingPlans_onOrderUpdated(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7