How trials work
- Set
trialDayson a plan (or passtrialDays/trialEndsAtwhen creating a subscription). - The subscription starts in a
trialingstate - no invoice is generated during the trial window. - 72 hours before the trial ends, PayBridgeNP sends a
subscription.trial_will_endwebhook and emails the customer a heads-up. - When the trial ends, PayBridgeNP generates the first paid invoice, emails the hosted payment link to the customer, and fires
subscription.trial_ended. - The customer pays the invoice manually - Nepal’s redirect-based payment providers (eSewa, Khalti, Fonepay) don’t support saved-card auto-charging, so we never silently charge after a trial.
Setting a trial on a plan
Per-subscription override
PasstrialDays or trialEndsAt on POST /v1/billing/subscriptions to override the plan default:
trialEndsAt wins. When neither is provided, the plan’s trialDays is used. trialDays: 0 disables the trial.
Ending a trial early
UsePOST /v1/billing/subscriptions/{id}/end-trial to convert the subscription immediately. The first paid invoice is generated synchronously and returned in the response. Guarded - repeating this once the trial is inactive returns 409 trial_not_active.
Extending a trial
POST /v1/billing/subscriptions/{id}/extend-trial with { "trialEndsAt": "…" } pushes the end date forward. Must be strictly after the current trial end, and the trial must still be active. The 72h reminder is re-armed for the new end date.
Webhooks
All three carry the full subscription context plus the relevant trial timestamps. See the webhook verification guide for event payload shapes.
Disabling the trial feature
Want trials switched off for your account? Contact support@paybridgenp.com and we’ll disable them. Existing trialing subscriptions continue until theirtrialEndsAt elapses.