agenta subscriptions is a read-and-cancel view onto everyone paying you on a recurring plan (created from a subscription payment link). It’s the fast path for support work: look up a subscriber, check their status, cancel on request.
List subscriptions
number
default:"10"
Results per page, 1 to 100.
boolean
Output a single JSON object instead of a table.
Output
--json
The human table formats the amount for you (
€19.99/month). In JSON, unitAmountMinor is an integer of the smallest currency unit (1999 = €19.99), the one exception to plain decimal amounts elsewhere in the API. Every other money field you’ll see (checkouts, invoices, payment links) is a plain decimal number.Status values
Cancel a subscription
string
required
Subscription ID, e.g.
253dbe6a-6b4d-4c40-a16f-aae31cfea271.boolean
default:"false"
Cancel immediately instead of at the end of the current billing period. Without this flag, the subscriber keeps access until their paid period ends and nothing is refunded.
boolean
Output a single JSON object instead of the human-readable summary.
--json
--json
Change the plan (upgrade or downgrade)
string
required
Subscription ID.
string
required
The target product’s id (
agenta products list). It must be a subscription product in the same currency and billing interval as the current plan, and a different one.boolean
default:"false"
Print the quote and apply nothing.
prorationDate echoed back, so what is charged is what was shown. Always look at the quote first:
--json
--json
- Upgrade (the new plan costs more): the prorated difference is charged on the saved card now;
dueTodayMinorsays how much. - Downgrade (same or lower price): nothing today; the subscriber keeps the current plan until
effectiveAt, the current period end, andagenta subscriptions listshows the scheduled switch aspendingPlanChangeuntil then. - Cancel a scheduled downgrade: run the command again with
--toset to the current plan’s id. The result saysdirection: "revert", nothing is charged, andpendingPlanChangeis null again. - Money fields are integer minor units (
4900= €49.00). The subscription must beactiveortrialing.
Next steps
Customers
Look up who’s behind a subscription.
Invoices
Pull receipts for a paid billing cycle.
Subscriptions (SDK)
Manage subscriptions from your own backend.
Subscriptions (concept)
How subscription payment links and billing cycles work.