Search.../

onOrderStarted( )

Developer Preview

Triggered when an order reaches its startDate. Applies to both purchased and free orders.

Syntax

function wixPricingPlans_onOrderStarted(event: OrderStartedEvent): void

onOrderStarted Parameters

NAME
TYPE
DESCRIPTION
event
Optional
OrderStartedEvent

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onOrderStarted example

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