Autional Autional
API Reference GitHub autional.com →

POST /admin/billing/subscription/{tenant_id}/change-plan

Switch the current subscription of a specified tenant to another plan (upgrade or downgrade), automatically calculating prorated charges. If the difference is positive, an invoice is generated; if negative, it is credited to the balance.

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes Tenant ID

Request Body

Schema: dto.PlanChangeRequest

FieldTypeRequiredExampleConstraintsDescription
new_plan string Yes enterprise
billing_cycle string No monthly

Responses

StatusDescriptionSchema
200Plan change successful, including prorated chargesobject
400Invalid request parametersobject
401Unauthorizedobject
403No permissionobject
500Internal server errorobject