Search.../

onOrderEnded( )

Developer Preview

Triggered when an order ends.

Description

This webhook is triggered:

  • When an order expires at the end of the current payment cycle.
  • When an order is canceled and effectiveAt is set to IMMEDIATELY..

Syntax

function wixPricingPlans_onOrderEnded(event: OrderEndedEvent): void

onOrderEnded Parameters

NAME
TYPE
DESCRIPTION
event
Optional
OrderEndedEvent

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onOrderEnded example

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