Sandbox
Help

Introduction to the Subscriptions API

Build subscription billing end-to-end with the Merchant API - server-to-server flows for plans, sign-up, usage reporting, and monitoring.

These guides cover building your own server-to-server integration for Billing & subscriptions: full programmatic control over plan creation, customer sign-up, payment collection, usage reporting, and lifecycle monitoring.

Each scenario guide implements one of the pricing models described in Subscription plans - pick the one that matches your business, or combine mechanisms across guides.

Prerequisites

These guides assume you understand the core subscription concepts - see Subscription plans and Subscription lifecycle. For account setup and API access, see Get started.

How it works

The integration model

The subscription lifecycle - creating plans and subscriptions, reporting usage, managing and monitoring - runs server-to-server between your backend and the Merchant API. The flow has a single customer-facing touchpoint: collecting the first payment, which also saves the customer's payment method for every future charge. Revolut handles the recurring billing automatically from there.

For the customer-facing touchpoint, pick either:

  • Hosted checkout page - redirect the customer to the checkout_url from the retrieved setup order. The lightest client-side work: no payment UI to build.
  • Payment widget - retrieve the setup order's token and integrate the payment method of your choice into your checkout.
Your backend - server-to-server Revolut Customer touchpoint - pick one Create plans, subscriptions,and usage reports Manage and monitorsubscriptions Merchant API Billing engine - saved paymentmethods, automatic charges, retries Redirect to checkout_url -hosted checkout page Initialise a payment widgetwith the order token
AreaWhat Revolut handlesWhat you build
Recurring billingPayment scheduling, automatic charges, retries, payment method storageNothing - the billing engine runs on Revolut's side
Subscription lifecycleState management, billing cycles, state-change webhook eventsRespond to states: provision access, handle failed payments
Plans and pricingPlan storage - the variation and phase modelPlan configuration that matches your pricing, via API calls
First paymentSetup order creation, payment processing, payment method savingThe customer-facing payment step - a redirect or a widget

These guides assume you're familiar with a standard payment method integration, see Introduction to online payments.

API vs no-code

The API path trades dashboard convenience for control. You automate plan management and usage reporting, build your own sign-up experience, and receive webhook events for subscription state change.

For the complete side-by-side comparison of the two approaches, see Choose your approach.

CapabilityNo-codeAPI
Customer sign-upHosted payment page you share via a linkCheckout flow you build and control
Plan managementDashboardProgrammatic - automate and sync with your systems
Usage reportingNot available in the dashboardReport usage via the API
WebhooksNot availableReal-time subscription events
CustomisationHosted page brandingFull control over the customer experience
Same infrastructure

Both approaches operate on the same plans and subscriptions - anything you create in the Revolut Business dashboard is visible via the API, and vice versa. You can start no-code and move to the API without migrating your subscriptions.

Your pricing model

The following scenario guides align with the pricing models described in Subscription plans. The table below shows how the API bills each model and which guide covers it.

Pricing modelHow the API bills itGuide
Fixed / flat-rate recurringOne price per billing cycle, charged automaticallyBuild a fixed-rate subscription
Per-seat with a stable seat countPer-seat price for a fixed seat countBuild a per-seat subscription
Per-seat with seats changing during the cycleYou report the current seat count; billed on the reported valueBuild a per-seat subscription
Usage-based metered, per unit or in volume tiersYou report usage as it happens; priced per unit or in volume tiersBuild a usage-based subscription
Peak usage, e.g. concurrent connectionsBilled on the highest usage reported in the cycleBuild a usage-based subscription
Free trialsFree period before the first charge; set on the plan or per subscriptionBuild a subscription with trials and introductory pricing
Introductory & promotional phasesPrice changes automatically after a set number of billing cyclesBuild a subscription with trials and introductory pricing
Combine pricing models

You can combine mechanisms in a single plan - for example, a fixed base rate plus per-seat pricing, with a free trial for the first 14 days. Each guide notes where its model combines with others.

Guide roadmap

Integrating with the subscriptions API is a three-step process:

1

Get started

Get started
Create your first plan and subscription, and collect the first payment
2

Build your integration

Build a fixed-rate subscription
Charge a fixed recurring amount - the simplest subscription flow
Build a per-seat subscription
Bill per seat, with a stable or changing seat count
Build a usage-based subscription
Meter usage, report it via the API, and settle charges at cycle end
Build a subscription with trials
Offer free trials and promotional pricing phases
3

Track subscriptions with webhooks

Track subscriptions with webhooks
Receive real-time events when subscription states change

What's next

Get started
Create your first subscription with the Merchant API
Subscription plans
Understand plans, variations, phases, and pricing models
Subscription lifecycle
Learn about subscription states and transitions
Rate this page