---
title: "Summarise a plan switch (amount, item, card) for the confirmation modal."
method: GET
path: "/api/v1/billing/change-plan/preview"
tags: ["Billing"]
---

# Summarise a plan switch (amount, item, card) for the confirmation modal.

`GET /api/v1/billing/change-plan/preview`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/billing/change-plan/preview`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Query parameters

- `plan` string, required
- `interval` string

## Response `200`

OK

- ChangePlanPreviewResponse
  - `amount_due_cents` integer, required
  - `balance_applied_cents` integer
  - `change_kind` string, required
  - `credits_granted_now` integer
  - `currency` string, required
  - `discount_cents` integer
  - `discount_label` string, nullable
  - `effective_at` string, nullable
  - `interval` string, required
  - `is_trial_giveup` boolean, required
  - `list_amount_cents` integer
  - `payment_method` PaymentMethodResponse
    - `brand` string, required
    - `exp_month` integer, required
    - `exp_year` integer, required
    - `last4` string, required
  - `plan_name` string, required
  - `plan_slug` string, required

## Other responses

- `400`: Bad Request
- `402`: Payment Required
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
