Skip to content

Pause a subscription

POST
/v1/subscriptions/{id}/pause
curl --request POST \
--url https://pay.example.com/v1/subscriptions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pause \
--header 'Authorization: Bearer <token>'

No charges while paused; paused periods are not charged later (subscription.paused with previous_status). Any trialing, active, past_due or unpaid subscription can be paused. No request body. Requires subscriptions:write.

id
required
string format: uuid

A UUID (400 invalid_request, params.field: id, otherwise).

The subscription (paused)

Media typeapplication/json

A subscription. API answers add checkout_url (and the change_plan answer plan_change); subscription events (data of subscription.*) add the fields their type describes (see the properties marked “Events:”).

object
id
required
string format: uuid
livemode
required

false for a test subscription (created with a test key).

boolean
plan_id
required
string format: uuid
plan_name
required
string
customer_ref
required
string | null
status
required

incomplete (link sent, nothing on chain) → trialing | active once the on-chain subscription is confirmed → past_due after a failed charge (retried) → unpaid or canceled when the grace period runs out; paused; canceled; completed after the last period.

string
Allowed values: incomplete trialing active past_due unpaid paused canceled completed
checkout_url

API answers only: the subscription link (<public_url>/pay/sub/{id}).

string format: uri
chain_id
required

The network paid on (null while incomplete).

integer | null
chain
required
One of:

The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.

object
id
required
integer
caip2
required

eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.

string
family
required

Chain family: decides the address and transaction id forms, and the wallets that can pay.

string
Allowed values: evm tron solana
token
required

Token symbol.

string | null
payer
required
One of:
Any of:

An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34 characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.

string
/^0x[0-9a-fA-F]{40}$/
sub_id
required
One of:

32-byte hash of this system’s own (order hash, on-chain subscription id), lowercase hex.

string
/^0x[0-9a-f]{64}$/
amount_per_period
required

Token base units.

string | null
/^\d+$/
period_seconds
required
integer
max_periods
required
integer
trial_seconds
required
integer
start_at
required

Start of period 0 (after the trial).

string | null format: date-time
trial_end_at
required
string | null format: date-time
next_charge_at
required
string | null format: date-time
charges_made
required
integer
last_charged_index
required

0-based index of the last period charged.

integer | null
past_due_since
required
string | null format: date-time
last_error
required

Of the last failed charge: balance, allowance, or the revert reason.

string | null
cancel_source
required

payer (“my subscriptions”, an on-chain cancel by the payer, or a revoked allowance), merchant (this API or the console), chain (canceled on chain by someone else), unpaid (the grace period ran out on a cancel plan), plan_changed (the old subscription of an applied plan change), expired (the new subscription of a change the payer did not confirm in time).

string | null
Allowed values: payer merchant chain unpaid plan_changed expired
splits
required

Resolved on the paid chain once the payer subscribes (empty while incomplete).

Array<object>
object
position
required
integer
payee_id
required
string format: uuid
payee_ref
required
string
address
required
Any of:

An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34 characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.

string
/^0x[0-9a-fA-F]{40}$/
kind
required
string
Allowed values: ratio fixed
bps
required
integer | null
amount_per_period
required

Token amount in base units (integer string; 1 USDC = “1000000”).

string
/^\d+$/
locale
required
string | null
return_url
required
string | null
metadata
required

As given (null when none).

created_at
required
string format: date-time
canceled_at
required
string | null format: date-time
replaces
required

The subscription this one replaces (a plan change’s new subscription).

string | null format: uuid
replaced_by
required

The subscription an applied plan change moved this one to (event subscription.replaced).

string | null format: uuid
pending_plan_change
required
One of:
object
id
required
string format: uuid
subscription_id
required

The subscription being replaced.

string format: uuid
new_subscription_id
required
string format: uuid
plan_id
required
string format: uuid
plan_name
required
string
status
required
string
Allowed values: pending applied expired canceled
effective_at
required

The new subscription’s first period starts (the old one’s next period boundary).

string format: date-time
expires_at
required

The new subscription’s link stays usable until then.

string | null format: date-time
source
required
string
Allowed values: api console
reason
required

Why it was canceled: a newer change, the new subscription canceled, the old one ended.

string | null
Allowed values: superseded canceled subscription_ended
created_at
required
string format: date-time
ended_at
required
string | null format: date-time
checkout_url

Only in pending_plan_change of GET /v1/subscriptions/{id}: where the payer confirms (the new subscription’s link).

string format: uri
plan_change

The change_plan answer, and events subscription.plan_change_pending / _expired / _canceled (on the old subscription): the change.

object
id
required
string format: uuid
subscription_id
required

The subscription being replaced.

string format: uuid
new_subscription_id
required
string format: uuid
plan_id
required
string format: uuid
plan_name
required
string
status
required
string
Allowed values: pending applied expired canceled
effective_at
required

The new subscription’s first period starts (the old one’s next period boundary).

string format: date-time
expires_at
required

The new subscription’s link stays usable until then.

string | null format: date-time
source
required
string
Allowed values: api console
reason
required

Why it was canceled: a newer change, the new subscription canceled, the old one ended.

string | null
Allowed values: superseded canceled subscription_ended
created_at
required
string format: date-time
ended_at
required
string | null format: date-time
checkout_url

Only in pending_plan_change of GET /v1/subscriptions/{id}: where the payer confirms (the new subscription’s link).

string format: uri
charge

Events: subscription.charged and subscription.charged_after_cancel — {id, period_index, amount, tx_hash}; subscription.charge_failed, subscription.unpaid and a subscription.canceled caused by the grace period — {id, period_index, error}.

object
id
required
string format: uuid
period_index
required
integer
amount

Token amount in base units (integer string; 1 USDC = “1000000”).

string
/^\d+$/
tx_hash
Any of:

In the subscription’s chain family’s form (data.chain).

string
/^0x[0-9a-f]{64}$/
error

balance, allowance, or the revert reason.

string
retry_at

Events with a failed charge: the next attempt (null: none).

string | null format: date-time
previous_status

Event subscription.paused: the status before.

string
previous

Events: subscription.plan_changed — the replaced subscription {id, plan_id, plan_name}; subscription.payment_method_changed — the previous method {chain_id, token, payer}.

object
id
string format: uuid
plan_id
string format: uuid
plan_name
string
chain_id
integer | null
token
string | null
payer
One of:
Any of:

An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34 characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.

string
/^0x[0-9a-fA-F]{40}$/
switch

Event subscription.payment_method_changed: the new method (token and chain_id are also the subscription’s own).

object
chain_id
required
integer
payer
required
Any of:

An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34 characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.

string
/^0x[0-9a-fA-F]{40}$/
migration

Event subscription.migration_requested: the merchant replaced its quote signer key and asks the payer to move the subscription to the new payment contract through “my subscriptions” (charges continue on the old contract until then; tell the customer).

object
reason
required
string
Allowed values: signer_rotated signer_compromised
action
required
string
Allowed values: switch_payment_method
effective_at

Events subscription.plan_changed and subscription.replaced: the boundary the new plan starts at.

string format: date-time
reason

Event subscription.canceled: subscription_ended (a plan change’s new subscription whose old one ended first, with before_activation).

string
Allowed values: subscription_ended
before_activation

Event subscription.canceled: the subscription was canceled before its on-chain subscription was confirmed (it never got subscription.activated).

boolean
canceled_by
Any of:

Event subscription.canceled after an on-chain cancel: who sent it.

string
/^0x[0-9a-fA-F]{40}$/
allowance

Event subscription.allowance_low: what the allowance leaves after the pending charge.

string
/^\d+$/
needed

Event subscription.allowance_low: what the remaining periods need.

string
/^\d+$/
Example
{
"status": "incomplete",
"chain": {
"caip2": "eip155:8453",
"family": "evm"
},
"cancel_source": "payer",
"splits": [
{
"kind": "ratio"
}
],
"pending_plan_change": {
"status": "pending",
"source": "api",
"reason": "superseded"
},
"plan_change": {
"status": "pending",
"source": "api",
"reason": "superseded"
},
"migration": {
"reason": "signer_rotated",
"action": "switch_payment_method"
},
"reason": "subscription_ended"
}

invalid_request: a malformed path parameter (params.field) or query string, or an invalid filter value (params.field).

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: invalid_request
Example
{
"error": {
"code": "invalid_request"
}
}

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"
}
}

not_found (params.what: order, subscription, entry): unknown, or another mode’s.

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: not_found
Example
{
"error": {
"code": "not_found"
}
}

not_pausable: the subscription is incomplete, paused, canceled or completed.

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: not_pausable
Example
{
"error": {
"code": "not_pausable"
}
}