subscriptions
Preview What Ending a Trial Charges
Report what ending the trial right now would charge, before we charge it.
Ending a trial invoices the whole subscription immediately, so the UI has to be able to show the real number — including add-on proration — before the user confirms. The figure comes from Stripe's own invoice preview rather than our price table so it matches what actually gets charged.
get/api/v1/subscriptions/end-trial-preview
Request
- Base URL: https://api.seoproai.co
- URL: https://api.seoproai.co/api/v1/subscriptions/end-trial-preview
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize, token URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token)
Query parameters
stripe_subscription_idstring required
Headers
X-User-Idstring nullable
X-Organization-Idstring nullable
Authorizationstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.