agenta subscriptions is a read-and-cancel view onto everyone paying you on a recurring plan (created from a subscription product). Use it for support work: look up a subscriber, check their status, cancel on request.
List subscriptions
number
default:"10"
Results per page, 1 to 100.
string
Only subscribers who typed this discount code.
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, fields whose name ends in Minor are integers in minor units (1999 = €19.99). Plain amount fields are decimals. See the money model.Status values
Cancel a subscription
string
required
Subscription ID, e.g.
253dbe6a-6b4d-4c40-a16f-aae31cfea271.boolean
Output a single JSON object instead of the human-readable summary.
--json
Change the plan (upgrade or downgrade)
string
required
Subscription ID.
string
required
The ID of the target subscription product (
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.
Give a credit
agenta login) as an owner or admin.
string
required
Subscription ID.
number
required
The credit in the plan’s currency, as a decimal (
5.00).string
required
Why you give it. The subscriber never sees it.
Output
--json, the result has amountMinor, currency, reason, creditBalanceMinor, nextInvoiceMinor, nextInvoiceDueAfterCreditMinor, nextInvoiceAt, createdBy, createdAt, and the idempotencyKey the command used. Each run is a new credit: running the command twice gives two credits.
List credits
--json, the result is { items: [{ id, amountMinor, reason, createdBy, createdAt }], balanceMinor }.
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 products and billing cycles work.