plan/update webhook

Plan webhook notifications

Subscribe to the plan/update webhook to get notifications about the plan status change.
You'll receive a webhook notification to your server indicating the current status.

Note:
The body will include the plan object:


NameTypeDescription
planIdstringUnique identifier for the plan
vendorIdstringIdentifier of the vendor associated with the plan
merchantIdstringIdentifier of the merchant associated with the plan
namestringName of the plan
descriptionstringDetailed description of the plan
setupFeenumberOne-time fee for setting up the plan
rampIntervalsRampInterval[]Array of pricing intervals for ramp pricing models
pricingModelstringPricing model used for the plan (fixed or ramp)
autoRenewalbooleanDefines auto-renewal
periodUOMEnum string (optional)Unit of time measurement for the billing cycle (e.g., days, months)
periodnumberBThe length of the plan in 'PeriodUOM' units
currencystringCurrency in which the plan is priced (e.g., USD, EUR)
pricenumberRecurring charge for the plan
statusEnum stringDefines the status of the plan
trialUOMEnum string (optional)Defines trial period cycle type (days, weeks, months, years)
trialPeriodnumber (optional)The length of the trial period in 'PeriodUOM' units
groupstring (optional)Grouping identifier for the plan
createdAtstringTimestamp of when the plan was created
updatedAtstringTimestamp of when the plan was last updated

Webhook notifications examples

Plan created

The following webhook notification demonstrates a plan being created.

{
    "planId": "6830a24aa8eb23a618833f35",
    "vendorId": "6830a24aa8eb23e89b833f36",
    "merchantId": "66d58bd06098898a5de10bdc",
    "name": "Test Plan",
    "description": "Description",
    "setupFee": 10,
    "rampIntervals": [],
    "autoRenewal": false,
    "periodUom": "month",
    "period": 12,
    "currency": "GBP",
    "trialPeriod": 0,
    "price": 99.99,
    "status": "active",
    "pricingModel": "fixed",
    "createdAt": "2025-05-23T16:28:58.554Z",
    "updatedAt": "2025-05-23T16:28:58.554Z"
}

Plan updated

The following webhook notification example demonstrates a plan being updated.

{
    "planId": "6830a2a1a8eb23767e833f39",
    "vendorId": "6830a2a1a8eb234ee1833f3a",
    "merchantId": "66d58bd06098898a5de10bdc",
    "name": "Test Plan",
    "description": "Description",
    "setupFee": 10,
    "rampIntervals": [],
    "autoRenewal": false,
    "periodUom": "month",
    "period": 12,
    "currency": "GBP",
    "trialPeriod": 0,
    "price": 99.99,
    "status": "paused",
    "pricingModel": "fixed",
    "createdAt": "2025-05-23T16:30:25.804Z",
    "updatedAt": "2025-05-23T16:30:25.804Z"
}