---
title: "Change the billing plan of a subaccount"
method: GET
path: "/api/v1/agency/billing/subaccount/change_billing_plan"
tags: ["Agency Billing"]
---

# Change the billing plan of a subaccount

`GET /api/v1/agency/billing/subaccount/change_billing_plan`

## Request

- Base URL: `https://api.insighto.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.insighto.ai/api/v1/agency/billing/subaccount/change_billing_plan`
- Auth: one of:
  - API key in query parameter `api_key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/insighto/apis/ragify/docs/api/v1/agency/billing/subaccount/change_billing_plan/get.ts> (a function with typed inputs; its response is checked against the schema)

To be used by Agency admins only. Changes the billing plan of subaccount.
- **agency_id**: the agency ID under which the subaccount is created
- **subaccount_user_id**: the user ID for which the billing refresh has to be performed
- **new_billing_plan_id**: billing_plan_id for the new plan

## Query parameters

- `agency_id` string, uuid, required
- `subaccount_user_id` string, uuid, required
- `new_billing_plan_id` string, uuid, nullable, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/insighto/apis/ragify.md) - [All operations](https://skmtc.dev/insighto/apis/ragify/llms.txt) - [OpenAPI document](https://skmtc.dev/insighto/apis/ragify/revisions/cdca56191be9?raw)
