---
title: "Upgrade Billing Plan"
method: POST
path: "/api/billing/upgrade"
tags: ["Billing"]
---

# Upgrade Billing Plan

`POST /api/billing/upgrade`

Upgrade billing plan.

## Request body

- BillingUpgradeSchema — Billing update schema.
  - `user_id` string, uuid, nullable — Optional user identifier for billing upgrade.
  - `billing_type` integer, nullable — Optional new billing type for upgrade.

## Response `200`

Successful Response

- BillingCreateSchema — Billing Create schema.
  - `is_active` boolean, nullable — Flag indicating whether billing is active.
  - `billing_type` integer — Type of billing (must be between 1 and 5).
  - `expires_at` string, date-time, nullable — Optional expiration date for billing.

## Other responses

- `422` — Validation Error

## Changes

> 3 revisions in range; 1 not diffed.

- **2023-11-13** `ac1f1ab68fcb` — 1 info
  - endpoint added
- **2023-11-08** `dbd91277da05` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/changes/api/billing/upgrade/post.md)

---

[API](https://skmtc.dev/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
