Autional Autional
API Reference GitHub autional.com →

POST /admin/billing/plans

Create a new plan pricing scheme (free/basic/pro/enterprise/platform), defining name, description, monthly/yearly price, currency and features (max users, storage, bandwidth, API calls, MFA/SSO, audit log retention days, support level).

Billing Service `bearerAuth` application/json

Request Body

Schema: dto.CreatePlanRequest

FieldTypeRequiredExampleConstraintsDescription
monthly_price number Yes 499
name string Yes Professional
plan string Yes pro
yearly_price number Yes 4999
audit_log_days integer No 90
currency string No CNY
description string No For large teams
max_api_requests integer No 100000
max_bandwidth_gb integer No 1024
max_storage_gb integer No 100
max_users integer No 100
mfa_enabled boolean No True
sso_enabled boolean No True
support_level string No priority

Responses

StatusDescriptionSchema
201Plan created successfullydto.PlanPricingDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
403No permissionobject
409plan already existsobject
500Internal server errorobject

Referenced Schemas

dto.PlanPricingDetailResponse

Type: object