Show a subscription change and the limits the customer would be past, without applying it
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/customers/{cid}/subscription/previewShow a subscription change and the limits the customer would be past, without applying it
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
cid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
plan_idstring optionallatest_revisionboolean optionalstatestring optionalAllowed values:"""active""suspended"expires_atstring (date-time) | null optionalclear_expiryboolean optionalmax_sitesinteger required0 means no limit
max_databasesinteger requiredmax_appsinteger requiredmax_mailboxesinteger optional0 means no limit
max_database_usersinteger optionalExtra database users (ADR 0067); 0 means no limit
pitr_daysinteger optionalDays point-in-time recovery reaches back for the account's databases (ADR 0183); 0 is not offered, at most 35
max_protected_dirsinteger optionalPassword-protected folders over all sites (ADR 0109); 0 means no limit
disk_mbinteger (int64) requiredDisk limit, MB; held as disk_policy says (ADR 0070)
bandwidth_gbinteger (int64) requiredThis month's traffic limit, GB; judged as bandwidth_policy says
disk_policystring optionalPast disk_mb: block (FSRM hard quota), notify (emails at 80/95/100%), suspend after grace_days. Empty is notify
Allowed values:"block""notify""suspend"bandwidth_policystring optionalPast bandwidth_gb this month. Empty is notify
Allowed values:"notify""suspend"grace_daysinteger optionalDays past a suspend-policy limit before suspension
- minimum 0
- maximum 90
malware_scanstring optionalHow often sites are scanned for malware (ADR 0084). Empty follows the provider default
Allowed values:"off""daily""weekly"runtimesarray<string> requiredAllowed values:"php""aspnet""asp""node""dotnet""python""java""go""wordpress""container"php_memory_mbinteger optionalHighest memory_limit a site may set, MB; 0 no cap (ADR 0062)
php_upload_mbinteger optionalHighest upload_max_filesize and post_max_size, MB; 0 no cap
mail_out_per_hourinteger optionalMessages a mailbox may send per hour; 0 no cap (ADR 0073)
mail_out_per_hour_domaininteger optionalMessages a whole mail domain may send per hour; 0 no cap (ADR 0073)
site_cpu_percentinteger optionalEach site's pool CPU cap, % of the machine, 5-100; 0 no cap (ADR 0091). Not with site_cpu_cores
site_cpu_coresnumber optionalEach site's pool CPU cap in cores, 0.5-256 (ADR 0126): turned into the share of each server when applied (cores / server's logical processors, rounded up, at least one core's worth, at most 100%). Not with site_cpu_percent. A new plan that leaves out every CPU, memory and auto_heal key gets 2 cores, 2048 MB and both; a change that leaves them out keeps them
app_cpu_coresnumber optionalEach application's CPU cap in cores, 0.5-256 (ADR 0126); not with app_cpu_percent
site_memory_mbinteger optionalEach site's pool private memory, 128-65536 MB; 0 no cap
app_cpu_percentinteger optionalEach Node.js/Python/.NET application's hard CPU cap (Windows job), 5-100; 0 no cap
app_memory_mbinteger optionalEach application's job memory, 128-65536 MB, ended and restarted past it; 0 no cap
auto_healstring optionalWhat the panel does by itself with an overloaded site; empty follows the provider's policy
Allowed values:"off""throttle""recycle""both"wafstring optionalon: the account may turn on a site's web application firewall (ADR 0106)
Allowed values:"""on""off"waf_static_bypassstring optionaloff: the account's sites may not let static files skip the firewall (ADR 0106, D16); empty or on allows it, each site still starts with it off
Allowed values:"""on""off"perf_autostring optionalWhat the automatic tuner does for the account's sites (ADR 0116); empty is auto
Allowed values:"""auto""suggest""off"perf_warmstring optionalon: the tuner may keep pools always running (ADR 0116)
Allowed values:"""on""off"php_open_basedirstring optionalon: the account's new PHP sites get open_basedir; empty or off leaves it out (ADR 0120). Existing sites keep theirs
Allowed values:"""on""off"restore_testsstring optionalon: the seller's periodic restore tests include the account when its policy covers plans that opt in, and the account sees its results (ADR 0154)
Allowed values:"""on""off"wp_cachestring optionaloff keeps the account's WordPress sites from the page and object cache; empty or on allows them (ADR 0119)
Allowed values:"""on""off"wp_cache_mbinteger optionalMemory of each WordPress site's object cache, 16-1024 MB; 0 is 64 (ADR 0119)
- minimum 0
- maximum 1024
max_previewsinteger optionalGit previews the account may have at once (ADR 0160); 0 is none
- minimum 0
- maximum 1000
preview_disk_mbinteger optionalDisk each preview may use, MB; 0 no cap of its own
- minimum 0
max_containersinteger optionalSites run by a Windows container, when runtimes has container (ADR 0162); 0 means no limit
- minimum 0
container_image_mbinteger optionalLargest container image, 256-65536 MB; 0 is 12288 (ADR 0162, 0194)
- minimum 0
- maximum 65536
container_isolationstring optionalhyperv: every container of the account runs with Hyper-V isolation, and a server without Hyper-V runs none (no fallback, ADR 0004); empty or process lets the owner choose
Allowed values:"""process""hyperv"container_truststring optionalTrust profile of the account's containers (ADR 0190): trusted (the provider's own code; only a root tenant's plan), standard (process isolation and every network isolation layer, or none), hostile (Hyper-V isolation, or none; never a shared kernel). Empty: hostile when container_isolation is hyperv, else standard. PLAN_TRUST_INVALID, PLAN_TRUST_PROVIDER_ONLY
Allowed values:"""trusted""standard""hostile"
Example
{
"plan_id": "string",
"latest_revision": true,
"state": "",
"expires_at": "2026-01-01T00:00:00Z",
"clear_expiry": true,
"overrides": {
"max_sites": 0,
"max_databases": 0,
"max_apps": 0,
"max_mailboxes": 0,
"max_database_users": 0,
"pitr_days": 0,
"max_protected_dirs": 0,
"disk_mb": 0,
"bandwidth_gb": 0,
"disk_policy": "block",
"bandwidth_policy": "notify",
"grace_days": 0,
"malware_scan": "off",
"runtimes": [
"php"
],
"php_memory_mb": 0,
"php_upload_mb": 0,
"mail_out_per_hour": 0,
"mail_out_per_hour_domain": 0,
"site_cpu_percent": 0,
"site_cpu_cores": 0,
"app_cpu_cores": 0,
"site_memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"auto_heal": "off",
"waf": "",
"waf_static_bypass": "",
"perf_auto": "",
"perf_warm": "",
"php_open_basedir": "",
"restore_tests": "",
"wp_cache": "",
"wp_cache_mb": 0,
"max_previews": 0,
"preview_disk_mb": 0,
"max_containers": 0,
"container_image_mb": 0,
"container_isolation": "",
"container_trust": ""
}
}Responses
200 Preview
Content type: application/json
tenant_idstring requirednamestring requiredidstring requiredowner_tenant_idstring requiredtenant_idstring requiredplan_idstring requiredplan_revisioninteger requiredserver_idstring requiredstatestring requiredAllowed values:"active""suspended"expires_atstring (date-time) | null requiredFields of Limits are shown above.
suspend_reasonstring optionalWhy it is suspended, shown to the owner (ADR 0055)
suspend_causestring optionalprovider: the provider suspended a reseller's customer; only the provider can resume it. overuse: past a suspend-policy limit (ADR 0070); lifted once back under
Allowed values:"""manual""expired""reseller""provider""overuse"created_atstring (date-time) requiredupdated_atstring (date-time) required
plan_namestring requiredFields of Limits are shown above.
sitesinteger requireddatabasesinteger requiredappsinteger requiredcontainersinteger optionalSites run by a container (ADR 0162)
mailboxesinteger optionaldatabase_usersinteger optionaldisk_bytesinteger (int64) requiredtraffic_bytesinteger (int64) requiredSent this month
measured_atstring (date-time) | null required
statestring requiredAllowed values:"running""done""stopped"doneinteger requiredtotalinteger requiredwaitinginteger requiredfailedinteger required
How far an account's end got (ADR 0131). The end runs in the background: a failed step is tried again at next_try_at (1, 2, 4, 8 then every 15 minutes), or at once when the end is asked again.
statestring requiredAllowed values:"ending""ended""not_ending"tenant_idstring requiredrefstring optionalresellerboolean requiredstarted_atstring (date-time) optionalended_atstring (date-time) optionalnamestring requiredAllowed values:"customers""sites""databases""mail""caches""dns""backups"statestring requiredAllowed values:"waiting""running""done""failed"totalinteger requireddoneinteger requiredcodestring requiredmessagestring requiredretryableboolean required
attemptsinteger requiredPasses that stopped on an error
Fields of StepError are shown above.
next_try_atstring (date-time) optionalWith keep_backups_days 0: off-machine copies given up because their target did not answer; the end completes without them
backup_idstring requiredtargetstring requiredsftp, s3, or the cloud provider
wherestring optionalFolder or bucket the copy is in, as the backup settings named it (no secret)
created_atstring (date-time) requiredcodestring requiredWhy its deletion failed, e.g. BACKUP_DELETE_FAILED, SERVER_TIMEOUT
atstring (date-time) required
exceededarray<object> requiredlimitstring requiredusedinteger requiredmaxinteger required
appliedboolean required
Example
{
"customer": {
"tenant_id": "string",
"name": "string",
"subscription": {
"id": "string",
"owner_tenant_id": "string",
"tenant_id": "string",
"plan_id": "string",
"plan_revision": 0,
"server_id": "string",
"state": "active",
"expires_at": "2026-01-01T00:00:00Z",
"overrides": {
"max_sites": 0,
"max_databases": 0,
"max_apps": 0,
"max_mailboxes": 0,
"max_database_users": 0,
"pitr_days": 0,
"max_protected_dirs": 0,
"disk_mb": 0,
"bandwidth_gb": 0,
"disk_policy": "block",
"bandwidth_policy": "notify",
"grace_days": 0,
"malware_scan": "off",
"runtimes": [
"php"
],
"php_memory_mb": 0,
"php_upload_mb": 0,
"mail_out_per_hour": 0,
"mail_out_per_hour_domain": 0,
"site_cpu_percent": 0,
"site_cpu_cores": 0,
"app_cpu_cores": 0,
"site_memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"auto_heal": "off",
"waf": "",
"waf_static_bypass": "",
"perf_auto": "",
"perf_warm": "",
"php_open_basedir": "",
"restore_tests": "",
"wp_cache": "",
"wp_cache_mb": 0,
"max_previews": 0,
"preview_disk_mb": 0,
"max_containers": 0,
"container_image_mb": 0,
"container_isolation": "",
"container_trust": ""
},
"suspend_reason": "string",
"suspend_cause": "",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
},
"plan_name": "string",
"limits": {
"max_sites": 0,
"max_databases": 0,
"max_apps": 0,
"max_mailboxes": 0,
"max_database_users": 0,
"pitr_days": 0,
"max_protected_dirs": 0,
"disk_mb": 0,
"bandwidth_gb": 0,
"disk_policy": "block",
"bandwidth_policy": "notify",
"grace_days": 0,
"malware_scan": "off",
"runtimes": [
"php"
],
"php_memory_mb": 0,
"php_upload_mb": 0,
"mail_out_per_hour": 0,
"mail_out_per_hour_domain": 0,
"site_cpu_percent": 0,
"site_cpu_cores": 0,
"app_cpu_cores": 0,
"site_memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"auto_heal": "off",
"waf": "",
"waf_static_bypass": "",
"perf_auto": "",
"perf_warm": "",
"php_open_basedir": "",
"restore_tests": "",
"wp_cache": "",
"wp_cache_mb": 0,
"max_previews": 0,
"preview_disk_mb": 0,
"max_containers": 0,
"container_image_mb": 0,
"container_isolation": "",
"container_trust": ""
},
"usage": {
"sites": 0,
"databases": 0,
"apps": 0,
"containers": 0,
"mailboxes": 0,
"database_users": 0,
"disk_bytes": 0,
"traffic_bytes": 0,
"measured_at": "2026-01-01T00:00:00Z"
},
"kit": {
"state": "running",
"done": 0,
"total": 0,
"waiting": 0,
"failed": 0
},
"ending": {
"state": "ending",
"tenant_id": "string",
"ref": "string",
"reseller": true,
"started_at": "2026-01-01T00:00:00Z",
"ended_at": "2026-01-01T00:00:00Z",
"steps": [
{
"name": "customers",
"state": "waiting",
"total": 0,
"done": 0,
"error": {
"code": "string",
"message": "string",
"retryable": true
}
}
],
"attempts": 0,
"last_error": {
"code": "string",
"message": "string",
"retryable": true
},
"next_try_at": "2026-01-01T00:00:00Z",
"remote_backups_left": [
{
"backup_id": "string",
"target": "string",
"where": "string",
"created_at": "2026-01-01T00:00:00Z",
"code": "string",
"at": "2026-01-01T00:00:00Z"
}
]
}
},
"exceeded": [
{
"limit": "string",
"used": 0,
"max": 0
}
],
"applied": true
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required