Change the Subscription Plan
Move an active AI Plus or AI Pro subscription to another plan. A higher tier or a longer billing period applies now and invoices the prorated difference; paymentUrl is set when that invoice needs the customer to pay before the change applies; paymentClientSecret lets Stripe.js finish that payment in the page instead. Any other change takes effect at the current period end. Sending the current plan cancels a scheduled change. Any change resumes a subscription that was set to end at the period end.
Authentication
Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token
Request
AI Plus or AI Pro plan to move to; the current plan cancels a scheduled change
Unix epoch-second timestamp from an upgrade preview that pins its prorated amount on confirmation; omit it when no upgrade preview applies
Response headers
Requests allowed per client IP in the current rate-limit window.
Requests left before the tightest applicable rate-limit bucket rejects.
Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.
Response
When the plan takes effect: now, or the current period end
PaymentIntent client secret of the same pending invoice, for Stripe.js to complete authentication or payment in the page; set exactly when paymentUrl is.
Hosted invoice to pay when the upgrade’s prorated charge needs the customer; the upgrade applies only after it is paid. Absent when no payment is pending.
Stripe publishable key for Stripe.js; set with paymentClientSecret