Upgrade packs
Quotas or features bought per unit on top of a base package.
package-upgradesPackagesAuthentication: Admin only5 endpointsList upgrade packs
GET
/api/v2/package-upgradesAuthentication: Admin only
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | — | Page number, starting from 1 |
| page_size | integer | — | Items per page |
| sort | string | — | Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id` |
Create upgrade pack
POST
/api/v2/package-upgradesAuthentication: Admin only
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| amount | integer | — | Amount added per unit; always 1 for feature items (custom_cc_rule/websocket). |
| bind_packages | integer[] | — | Only these base packages may buy it; empty = no restriction. |
| des | string | — | Description |
| enabled | boolean | — | Whether enabled |
| name | string | Required | Name |
| price_cents | integer | Required | Price per unit per month, in cents. |
| type | string | Required | Add-on item: traffic GB, domains, non-standard ports, TCP/UDP forwarding ports, custom CC, bandwidth Mbps, connections, WebSocket, dedicated IPs. |
Get upgrade pack
GET
/api/v2/package-upgrades/{id}Authentication: Admin only
Update upgrade pack
PUT
/api/v2/package-upgrades/{id}Authentication: Admin only
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| amount | integer | — | Amount added per unit; always 1 for feature items (custom_cc_rule/websocket). |
| bind_packages | integer[] | — | Only these base packages may buy it; empty = no restriction. |
| des | string | — | Description |
| enabled | boolean | — | Whether enabled |
| name | string | Required | Name |
| price_cents | integer | Required | Price per unit per month, in cents. |
| type | string | Required | Add-on item: traffic GB, domains, non-standard ports, TCP/UDP forwarding ports, custom CC, bandwidth Mbps, connections, WebSocket, dedicated IPs. |
Delete upgrade pack
DELETE
/api/v2/package-upgrades/{id}Authentication: Admin only
Upgrade packs object
| Field | Type | Required | Description |
|---|---|---|---|
| amount | integer | — | Amount added per unit; always 1 for feature items (custom_cc_rule/websocket). |
| bind_packages | integer[] | — | Only these base packages may buy it; empty = no restriction. |
| created_at | string | — | Created at |
| des | string | — | Description |
| enabled | boolean | — | Whether enabled |
| id | integer | — | Record ID |
| name | string | — | Name |
| price_cents | integer | — | Price per unit per month, in cents. |
| type | string | — | Add-on item: traffic GB, domains, non-standard ports, TCP/UDP forwarding ports, custom CC, bandwidth Mbps, connections, WebSocket, dedicated IPs. |
| updated_at | string | — | Updated at |