/admin/billing/plansCreate 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).
Schema: dto.CreatePlanRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
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 |
| Status | Description | Schema |
|---|---|---|
| 201 | Plan created successfully | dto.PlanPricingDetailResponse |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 403 | No permission | object |
| 409 | plan already exists | object |
| 500 | Internal server error | object |
Type: object