Skip to content

List active subscription plans

GET
/v1/plans
curl --request GET \
--url https://pay.example.com/v1/plans \
--header 'Authorization: Bearer <token>'

Plans are managed in the admin console and shared by both modes; pass one’s id as plan_id. Retired plans are left out. Requires subscriptions:read.

Active plans

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
description
required
string | null
pricing_mode
required
string
Allowed values: unified per_token
amount
required

Per-period price in currency (unified pricing; pegged stablecoins pay it 1:1).

string | null
/^\d+(\.\d+)?$/
currency
required
string | null
prices
required

Per-token prices (per_token pricing); chain_id null applies to every chain.

Array<object>
object
token_symbol
required
string
chain_id
required
integer | null
amount
required

Decimal amount as a string (no floats).

string
/^\d+(\.\d+)?$/
accepted_tokens
required

Null: every token that settles the price.

Array<string> | null
period_seconds
required
integer
max_periods
required
integer
start_mode
required

immediate: the first period is charged when the payer subscribes.

string
Allowed values: immediate trial
trial_seconds
required
integer
require_balance_on_trial
required

Trials check that the payer holds one period’s amount.

boolean
grace_seconds
required

How long a failed charge is retried before on_unpaid applies.

integer
retry_schedule
required

Seconds after each failed charge.

Array<integer>
on_unpaid
required

What the grace period’s end does: unpaid (kept, no more charges) or canceled.

string
Allowed values: unpaid cancel
default_split_rule_id
required
string | null format: uuid
payer_can_pause
required

Payers may pause from “my subscriptions”.

boolean
active
required
boolean
created_at
required
string format: date-time
Example
{
"data": [
{
"pricing_mode": "unified",
"start_mode": "immediate",
"on_unpaid": "unpaid"
}
]
}

unauthorized: no Authorization: Bearer header, or an unknown or revoked key.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: unauthorized
Example
{
"error": {
"code": "unauthorized"
}
}

insufficient_scope: the key lacks the operation’s scope.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: insufficient_scope
Example
{
"error": {
"code": "insufficient_scope"
}
}