---
title: "Preview Upgrade"
method: GET
path: "/payments/upgrade-preview"
tags: ["payments"]
---

# Preview Upgrade

`GET /payments/upgrade-preview`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/payments/upgrade-preview`
- Auth: HTTP bearer

Preview the prorated charge for upgrading to a new plan.

Uses Stripe's upcoming invoice API to calculate exactly what the user
will be charged today for the plan change. This shows the NET proration
amount (new plan remaining days - old plan credit), NOT the full plan price.

Example: Pro ($14.90) → Premium ($49.90) halfway through the cycle:
  - Credit for unused Pro: -$7.45
  - Charge for Premium remaining: +$24.95
  - Net proration charge: $17.50

## Query parameters

- `target_plan` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
