---
title: "Preview What Ending a Trial Charges"
method: GET
path: "/api/v1/subscriptions/end-trial-preview"
tags: ["subscriptions"]
---

# Preview What Ending a Trial Charges

`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`)

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.

## Query parameters

- `stripe_subscription_id` string, required

## Headers

- `X-User-Id` string, nullable
- `X-Organization-Id` string, nullable
- `Authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/seoproai/apis/seopro-ai.md) · [All operations](https://skmtc.dev/seoproai/apis/seopro-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/seoproai/apis/seopro-ai/revisions/5b4b6391ddc9?raw)
