Skip to content

Subscriptions

A subscription bills a contact for a subscription plan on a regular schedule. For each billing period amabledata generates a renewal order with its invoice; you then record the payment of that order, by hand or through the API.

Where to find them:

  • E-commerce › Subscriptions in the sidebar (/t/<workspace>/subscriptions): the list.
  • A subscription’s page (/t/<workspace>/subscriptions/<subscription id>): details, billed orders and the actions Pause, Resume, Change plan and Cancel subscription.
  • The Orders card of a contact’s page, which lists the contact’s live subscriptions.

Subscriptions are started from the order wizard (its Subscriptions card), through the API, or by a buyer purchasing a plan on a checkout — in that case the card is saved and renewals are charged automatically.

When a subscription starts it copies, from the plan and product:

  • the unit price per period (the plan price, unless overridden through the API) and the quantity (1 by default); the amount per period is unit price × quantity, before tax;
  • the currency of the plan;
  • the billing period (for example every month or every 3 months);
  • the tax rate of the product (unless overridden through the API).

Later edits of the plan or product do not change running subscriptions.

Status (label) Value Meaning
Trial trialing In the free trial; nothing billed yet
Active active Billed every period
Past due past_due A payment for one of its orders failed; still billed every period
Paused paused No orders are generated
Ended cancelled Finished; no more orders
  • With a trial (the plan’s trial days, or a trial_days override through the API): the status is Trial, the trial ends after that many days, and the first period begins when the trial ends. No order is generated during the trial.
  • Without a trial: the status is Active and the order for the first period is generated immediately.
  • A start date in the past (API start_at, for imports) catches up: every period already elapsed is billed at once, up to 36 periods.

Periods are counted from a fixed anchor (the start, or the end of the trial): the n-th period starts n intervals after the anchor. Months and years use calendar arithmetic in UTC; when the anchor day does not exist in a month (for example the 31st), the period starts on the last day of that month, and later periods go back to the anchor day, so dates do not drift.

At each due date the billing job:

  1. generates the renewal order: source Subscription, one line “Product — Plan” with the subscription’s quantity, unit price and tax rate, order date and due date equal to the start of the period, status Unpaid;
  2. issues the order’s invoice;
  3. moves the subscription to the next period (Current period and Next bill update);
  4. emits subscription.renewed (or, for the first period after a trial, turns Trial into Active).

A subscription is never billed twice for the same period, even if the job runs again.

The billing job is not a periodic cron: your workspace’s database wakes itself up exactly at the earliest Next bill date among Trial, Active and Past due subscriptions, runs the job and schedules the next wake-up. The schedule is recomputed after every subscription change. One run handles up to 200 due subscriptions and up to 36 periods per subscription; if more are due, the next wake-up follows immediately. Through the API, POST /billing/run runs the job on demand.

A plan bought on a checkout starts its subscription automatically:

  • Without a trial, the checkout order is the first period (plus the plan’s setup fee, if any): the subscription starts Active with period 1 already paid.
  • With a trial, nothing is billed now (except the setup fee, if any): the subscription starts in Trial and the first order arrives when the trial ends.
  • The buyer’s card is saved: the subscription page shows Automatic payment — Card on file, charged automatically (otherwise Manual (invoice to pay)), and renewals are charged on their own (next section).
  • A promo code with a Repeating or Forever duration stays on the subscription: the Discount row shows the code, the discount and what is left (“3 renewals left”, or “on every renewal”), and each renewal order is created already discounted until the periods run out.
  • A plan sold as a post-purchase offer starts its subscription the same way (no promo discount on offers).

The unit price snapshot is the checkout price — overrides included — so a discounted checkout price keeps billing at that price.

When a subscription has a card on file, each renewal order is charged automatically shortly after it is generated, through the workspace Stripe account:

  1. The charge runs off-session on the saved card for the order’s open balance; the payment is recorded with the Stripe payment intent id.
  2. A failed charge is recorded as a failed payment — the subscription becomes Past due — and is retried after 3 days, then after 5 more days (three attempts in all). After the last failure the order simply stays Unpaid.
  3. A charge that stays processing at Stripe is checked again a day later and settled by the Stripe webhook as soon as the outcome is known.

There are no dunning emails: to chase failed renewals, use an automation on subscription.past_due, payment.failed or order.paid.

What stops the automatic charges:

  • Cancelling immediately and pausing also stop the charges already scheduled on the subscription’s unpaid renewal orders: the saved card is not touched again.
  • Cancelling at the end of the period keeps collecting the period already billed (it is being used), retries included. If that order must not be collected, cancel the order too.
  • Disconnecting Stripe puts due charges on hold: they are rechecked daily without consuming attempts and resume if you reconnect the same account. Connecting a different account or mode instead drops the saved cards and stops their automatic charges for good (see Commerce settings).

Renewal orders without a card on file stay Unpaid until a payment is recorded by hand or through the API.

  • Recording a failed payment on an order of an Active or Trial subscription moves it to Past due and emits subscription.past_due.
  • When an order of a Past due subscription becomes fully paid and no other order of that subscription is overdue and unpaid, the subscription returns to Active.
  • When the first order after a trial is fully paid, subscription.trial_converted is emitted.

An unpaid renewal order does not by itself change the subscription status. To chase unpaid renewals, use an automation on the subscription and order events, or the orders list filtered on Unpaid.

  • Pause (only Active or Past due): no orders are generated, Next bill is cleared, and a scheduled cancellation is withdrawn. Trials cannot be paused.
  • Resume a paused subscription: it becomes Active and billing restarts at the end of the period already billed, or now if that date has passed, in which case a new period is billed immediately. The anchor moves to the restart date.
  • Resume also withdraws a scheduled cancellation.

The new plan (and quantity) applies from the next billing period, without proration. The new plan must be active and in the same currency. The unit price becomes the new plan’s price (or an override through the API) and the tax rate the new product’s. If the billing interval changes, periods are counted from the next bill date. amabledata compares the price per day of the old and new terms and emits subscription.upgraded or subscription.downgraded (nothing when equal).

  • At the end of the paid period (default): the subscription is marked to end; at its next bill date it becomes Ended instead of renewing, and subscription.ended is emitted with reason period_end. For a subscription in trial this is the end of the trial, so nothing is billed.
  • Immediately: the subscription becomes Ended now (reason cancelled). Already generated orders are not cancelled or refunded; handle them on the orders.

A paused subscription is always cancelled immediately.

The subscription screens show each subscription’s amount per period. Monthly recurring revenue, annual recurring revenue and churn are available in Reports.

  1. Click New order on E-commerce › Orders (or on a contact’s Orders card).
  2. Choose the contact and click Continue.
  3. In the Subscriptions card, use Add a subscription plan… and set the quantity. Each entry shows the plan price, period and trial.
  4. Optionally add one-off products in the Products card (they become a separate order).
  5. Click Continue, then Create order. Each plan starts a subscription. With only plans, you land on the first subscription’s page.

Starting subscriptions requires subscriptions:write (Owner, Admin, Sales) in addition to orders:write.

On an Active or Past due subscription, click Pause. You see Subscription paused.

On a Paused subscription, or one scheduled to end, click Resume. You see Subscription resumed.

  1. Click Change plan. “The new plan applies from the next billing period, without proration.”
  2. Pick a plan in Choose a plan… (only active plans in the same currency, excluding the current one) and adjust Qty if needed.
  3. Click Save. You see Plan changed.
  1. Click Cancel subscription.
  2. Choose At the end of the paid period (…) or Immediately. The first option is not offered when the subscription is already scheduled to end, and Immediately is preselected for paused subscriptions.
  3. Optionally enter a Reason (shown later on the subscription).
  4. Click Cancel subscription. You see Subscription cancelled.
Column Content Notes
Contact Contact name Sortable
Plan “Product — Plan” Sortable; hidden on small screens
Status Status badge Sortable
Next bill Next bill date, or “Ends …” when scheduled to end Sortable; hidden below large screens
Amount Amount per period and the period, for example “€49.00 / month” Sortable

Filters: status (All statuses, Trial, Active, Past due, Paused, Ended) and product (All products or a product that has plans). Newest subscriptions first, 50 at a time (Load more). With no results: “No subscriptions match these filters.”

The title is “Product — Plan” with the status. The Subscription card lists:

Row Content
Contact Link to the contact
Plan Link to the product
Amount Amount per period
Qty Quantity × unit price
Tax rate Tax rate of the renewal orders
Started Start date
Trial ends When there is a trial
Current period Start – end of the period billed last (during a trial: the trial)
Next bill Next bill date, or “Ends …”
Discount Promo code kept from the checkout, the discount and “… renewals left” or “on every renewal”
Automatic payment Card on file, charged automatically or Manual (invoice to pay)
Paused on When paused
Ended on When ended
Reason Cancellation reason, when given

The Billed orders card lists up to 50 orders of the subscription with number, period start, status and total; click one to open it. “No orders billed yet.” during a trial.

Toolbar actions (only with subscriptions:write and not Ended):

Button Shown when
Resume Paused, or scheduled to end
Pause Active or Past due
Change plan Always
Cancel subscription Always
Field Rules
contact_id Required
plan_id Required, an active plan
quantity 1–10,000, default 1
unit_price_minor Overrides the plan price (per unit, per period)
trial_days 0–730; overrides the plan trial (0 starts billing now)
tax_rate_bps 0–10,000; overrides the product tax rate
start_at ISO date-time for back-dating; defaults to now
analytics_visitor_id Up to 128 characters; copied to every renewal order

Relative to /api/v2/t/<workspace>:

Method and path Permission Purpose
GET /subscriptions subscriptions:read List, newest first (status, contact_id, plan_id, product_id)
POST /subscriptions subscriptions:write Start a subscription
GET /subscriptions/{id} subscriptions:read Get a subscription
POST /subscriptions/{id}/cancel subscriptions:write at_period_end (default true), reason (up to 500 characters)
POST /subscriptions/{id}/pause subscriptions:write Pause
POST /subscriptions/{id}/resume subscriptions:write Resume, or withdraw a scheduled cancellation
POST /subscriptions/{id}/changePlan subscriptions:write plan_id, optional quantity, unit_price_minor
POST /billing/run subscriptions:write Run the billing job now; returns processed, renewals, ended, trials_ended, next_due_at
GET /orders?subscription_id=… orders:read Orders of a subscription

Each event is available to automations and webhooks. When the contact is linked to a visitor of one of your sites, it is also recorded as a goal of that visitor in web analytics.

Event Analytics goal When
subscription.started subscription_started A subscription starts
subscription.trial_started trial_started It starts with a trial
subscription.trial_converted trial_converted The first order after the trial is paid
subscription.renewed subscription_renewed A renewal order is generated
subscription.upgraded subscription_upgraded Plan change to a higher price per day
subscription.downgraded subscription_downgraded Plan change to a lower price per day
subscription.cancel_scheduled subscription_cancel_scheduled Cancellation at period end requested
subscription.reactivated subscription_reactivated Resumed from pause or from a scheduled cancellation
subscription.paused subscription_paused Paused
subscription.past_due subscription_past_due A failed payment was recorded
subscription.ended subscription_ended Ended (immediately or at period end)
Action Permission Roles
View subscriptions subscriptions:read Owner, Admin, Marketer, Sales, Analyst, Viewer
Start, pause, resume, change plan, cancel, run billing subscriptions:write Owner, Admin, Sales
  • Billing period: 1–36 days, weeks, months or years. Trial: 0–730 days. Quantity: 1–10,000.
  • Up to 200 subscriptions and 36 periods per subscription per billing run.
Symptom Cause Fix
“a trialing subscription cannot be paused” Trials cannot be paused Cancel it, or wait for the trial to end
“a paused subscription cannot be paused” / “a cancelled subscription cannot be paused” Only Active and Past due can be paused Resume it first, or start a new subscription
“subscription is neither paused nor scheduled for cancellation” Nothing to resume No action needed
“subscription is already cancelled” It has ended Start a new subscription
“plan_id: plan … is not active” The plan was deactivated Activate it on the product
“plan_id: plan is priced in USD, the subscription in EUR” Plan changes keep the currency Choose a plan in the same currency, or cancel and start a new subscription
The plan is missing from Choose a plan… It is inactive, the current plan, or in another currency Activate it, or pick a plan in the subscription currency
Renewal orders stay Unpaid The subscription has no card on file (started from the wizard or the API) Record the payment by hand or through the API; only checkout subscriptions are charged automatically
A renewal charge keeps failing The saved card is expired or declined; after 3 attempts amabledata stops retrying Collect the payment another way; the customer can buy the plan again on a checkout to save a new card
No renewal order was generated The subscription is Paused or Ended, or the billing job failed Check the status, then wait for the next run or call POST /billing/run. Required order custom fields never block subscription orders: they are created with those fields empty
“Your role does not allow this action.” Your role lacks subscriptions:write Ask an Owner or Admin for the Owner, Admin or Sales role