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

---

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