Preview a plan change
Quote moving a subscription to another plan. Read-only: nothing is charged or scheduled. The target must be a different subscription product in the same currency and billing interval, and the subscription must be active or trialing. An upgrade (higher price) is charged now, prorated; a downgrade switches at the current period end with nothing due today. Pass the returned prorationDate to the apply call so the charge matches this quote.
prorationDate from this response. The target must be a different subscription product in the same currency and billing interval; the subscription must be active or trialing. Anything else returns 400.Authorizations
Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.
Path Parameters
Subscription id.
Query Parameters
The target product's payment-link id.
Response
The quote. Money fields are integer minor units.
Read-only quote for moving a subscription to another plan. Money is integer minor units.
upgrade when the new plan costs more per cycle; downgrade otherwise; revert when the target is the current plan while a downgrade is pending (cancels it, nothing due).
upgrade, downgrade, revert Charged now. Always 0 for a downgrade.
Upgrade: now. Downgrade: the current period end.
The next regular cycle invoice on the new plan.
Unix seconds. Echo it in the apply request so the charge matches this quote.