Subscription Engine
How the platform bills subscriptions for you: offers, subscribers, subscriptions and the three ways a subscription starts.
The platform can bill your subscriptions for you. You describe what to bill in an offer, your customer subscribes once, and the platform charges the stored card on each due date, retries failed payments and sends you a webhook at every status change.
Three objects
| Object | What it holds |
|---|---|
| Offer | What is billed and when: amount, currency, frequency (for example every 1 month), optional billing day, optional first payment and first-rebill delay, optional discount on the first rebills, optional end date or maximum number of billing cycles, whether pausing is allowed, and the retry policy used when a rebill fails. You create and edit offers in the Console, under Subscriptions › Offers. The currency of an offer cannot be changed. |
| Subscriber | The end customer: contact details and a status. subscriber_id is your own reference; norbr_subscriber_id is the identifier the platform gives it. See Manage subscribers. |
| Subscription | One subscriber on one offer, with its card, its status and its next rebill (next_payment_date, next_payment_amount). |
How a subscription starts
| Flow | Call | What happens |
|---|---|---|
| Hosted payment page | POST /payment/checkout with offer_id | Your customer pays the first payment on the hosted payment page. |
| Your own payment page | POST /payment/order with offer_id | You send the first payment from your server. |
| Import of existing subscribers | POST /payment/token with offer_id and merchant_subscription_id | You send the token of the card held by your current provider. No first payment is taken. |
In the first two flows, the first payment is made with your customer present. The card is then stored and used for every rebill.
How the pieces fit together
From the offer and the subscriber to the end of a subscription, every rebill either succeeds or goes through the retry matrix and a retry policy. Dashed arrows lead back to the rebill schedule. The statuses are explained in Subscription lifecycle.
Good to know
- Amounts. Percent discounts and prorated amounts are always rounded down to the precision of the currency: 9.99 less 50% is 4.99.
- Timing. Each rebill and each retry is sent within 5 minutes of its due time.
- Webhooks. Every status change sends a
subscriptionwebhook. See Configure & Customize Webhooks.
Manage subscriptions through the API
| Endpoint | Use it to |
|---|---|
PATCH /subscription/{id} | Pause, resume or cancel a subscription. |
POST /subscription/{id}/change-offer | Move a subscription to another offer. |
PATCH /subscriber/{id} | Update the contact details of a subscriber, or deactivate it. |
These endpoints run on the API host, without the /payment prefix, and accept only your private API key.
Pages in this section
Set up in the Console
Integrate and operate
Related pages
Updated about 17 hours ago