Subscriptions & Rebilling
Time: ~10 minutes | Difficulty: IntermediateWhat Are Subscriptions in TagadaPay?
TagadaPay manages the entire recurring billing lifecycle — creation, automatic rebills, retries on failure, pause/resume, cancellation, and processor changes. It’s PSP-agnostic: the same subscription can be billed through Stripe today and NMI tomorrow, without touching your code.Subscriptions are vaulted. The customer’s card is tokenized once. TagadaPay charges it automatically each cycle — through whichever processor your payment flow selects. You never handle raw card data or PSP-specific recurring APIs.
Subscription Lifecycle
Create a Subscription
Create with a Free Trial
active and triggers the first rebill.
Manual Rebill
Trigger an immediate charge on anyactive or past_due subscription — useful for dashboards, support tools, or retry scripts.
What happens under the hood:
- TagadaPay loads the subscription’s price, currency, and payment instrument
- Routes the charge through your payment flow (cascade, weighted, fallback — all automatic)
- On success → updates
nextBillingDate, status staysactive - On decline → enters retry logic (see below)
When to Use Manual Rebill
Batch Retry All Past-Due Subscriptions
Automatic Retry on Failure
When a rebill is declined, TagadaPay doesn’t immediately cancel. It retries automatically:
During retries, the subscription status is
past_due. After max retries, it’s automatically canceled.
Cancel a Subscription
Cancel Immediately
Cancel at Period End
Cancel a trial at its end
By default, cancelling a trial ends it immediately, even withcancelAtPeriodEnd: true.
Opt in per request to keep access until the trial ends, then cancel without a first charge:
cancelAtPeriodEnd: true.
Call tagada.subscriptions.resume({ subscriptionIds: ['sub_trial'] }) before the end
to clear the flag without converting the trial to an active subscription.
At nextBillingDate, Tagada cancels it with reason scheduled_period_end before any charge.
The option is ignored for immediate cancellations and non-trialing subscriptions.
Grouped, PayPal-billed or draft trials, legacy trials with an unknown draft flag,
and trials without nextBillingDate still end immediately because the scheduled
reaper does not cover them. Existing callers keep
their current behavior unless they pass keepTrialUntilEnd: true.
The subscription/cancelScheduled webhook keeps its existing keys and also includes
status and nextBillingDate (ISO timestamp or null). For a trial without
currentPeriodEnd, that field falls back to nextBillingDate, when access ends.
Bulk Cancel
Resume a Subscription
Resume apaused or past_due subscription, or undo a cancellation scheduled at period end. A canceled subscription cannot be resumed (HTTP 409):
cancelAtPeriodEnd: true but hasn’t reached the end yet, resuming clears the cancellation flag.
Pause a Subscription
Pausing stops billing without canceling — the subscription stays on file and can be resumed at any time. Useful for customer-portal self-serve, seasonal accounts, or account-recovery flows where you don’t want to lose the vaulted card.Bulk Pause
{ success: true }.
Pause vs. Cancel at Period End
To undo
cancel({ cancelAtPeriodEnd: true }) before the period ends, call tagada.subscriptions.resume({ subscriptionIds: [...] }). Once a subscription is canceled, resume answers HTTP 409.
Move the Next Billing Date (Skip a Month)
updateBillingCycle moves the next charge to a new date. The subscription stays active, so there is nothing to resume afterwards: to skip a month, move the next billing date one month later.
billingCycleAnchor is Unix milliseconds, as a number or a string of digits. A date string is rejected. By default the subscription keeps its usual time of day and only the date moves, so pass midnight UTC of the target day. To bill at an exact instant, which must be in the future, add timeOfDay: 'exact'. A date before today is refused.
A subscription in its free trial moves whole: its trial end and its first charge go to the new date, earlier or later, and it stays trialing. A grouped trial moves its whole group.
The answer has one result per id:
Change Processor
Move a subscription from one processor to another — for example, migrating from Stripe to Checkout.com, or clearing a stuck processor.Assign a Specific Processor
Let TagadaPay Auto-Select
Use Case: Migrate All Subscriptions from Stripe to NMI
List & Filter Subscriptions
Available Filters
Retrieve a Subscription
Webhook Events
Listen for subscription events via webhooks to keep your system in sync:Full Example: Subscription with Trial, Rebill, and Processor Migration
Next Steps
Multi-PSP Routing & Vault
Connect Stripe, NMI, Checkout.com, Airwallex and route payments intelligently
core-js + REST
Build your own checkout UI with client-side card tokenization and 3DS
Node SDK Quick Start
Get started with stores, products, and funnels
API Reference
Full REST API documentation
