Skip to main content
The Subscriptions API lists the plans available on the platform and the subscriptions your project holds. A subscription ties your project to a plan on a billing cycle.

Lifecycle

Subscriptions are read-only here: they are created by paying, through the Payments API:
  • Subscribe: create a deposit account for the plan and pay it. Settlement creates the subscription ACTIVE for one billing period and grants the plan’s product access. Free ($0) plans activate immediately, no payment needed.
  • Renew: pay for the same planId again; the existing subscription’s period is extended. Subscriptions past endDate become EXPIRED (after a short grace window).
  • Upgrade: pay for a different plan of the same product while this one is active. The charge is prorated for your unused time, the new subscription starts fresh, and the old one moves to CANCELLED. See Fund and subscribe.

The plan object

The plan quota object

The subscription object