Connecting a billing panel
A billing panel (WHMCS, Blesta, HostBill or your own) runs the server lifecycle through the API: create when an order is paid, suspend when an invoice is overdue, unsuspend when it’s paid, terminate when it’s canceled, and upgrades and add-ons in between. /admin/api in the panel lists these calls.
1. Create a key
- Your own billing: under Admin → API & webhooks, create a panel API key with the Billing module preset (
servers:read,servers:create,servers:resize,servers:suspend,servers:terminate,servers:power,servers:reinstall,servers:settings,customers:read,customers:write,customers:sign_in). It belongs to the panel and keeps working when the staff member who made it leaves. Making one needs the Panel API keys permission, and a key can only have permissions its maker has. Set Expires to No expiry: when a key expires, billing can no longer create servers. The key starts withpnl_and is shown once. - A reseller’s billing: the reseller creates a token with their Billing module preset (
reseller:read,reseller:customers,reseller:servers,servers:read,servers:power,servers:reinstall,servers:settings).
Limit it to your billing server’s address under Allowed IP addresses. See Authentication and tokens.
2. Map your products
Put each package’s ID into the matching billing product. GET /admin/packages (staff) or GET /reseller/account (resellers) lists the packages and locations with their IDs. Packages, backup plans and GPU offers take a billingProductId over the API (such as whmcs:12), for your own records.
3. The lifecycle
| When | Call |
|---|---|
| A new client | POST /admin/customers { name, email, organization, billingClientId }, or POST /reseller/customers with your client ID as externalId |
| An SSH key with the order | POST /admin/customers/{id}/ssh-keys { name, publicKey }, then create the server with access: { mode: "ssh_keys", sshKeyIds: [id] }. The same key again answers the one already there; the customer is told a key was added. |
| A client’s details change | PATCH /admin/customers/{id} { name, email, organization } (accounts made with a billingClientId). A new email needs a panel API key, or a person whose role has Sign in as customer; the old address is told about the change. |
| An order is paid | POST /admin/servers or POST /reseller/servers |
| An invoice is overdue | POST /servers/{id}/actions/suspend { "reason": "Invoice #1042 overdue" } |
| It’s paid | POST /servers/{id}/actions/unsuspend |
| The service is canceled | DELETE /servers/{id} |
| A client is deleted | DELETE /admin/customers/{id}, once their servers are gone (scope customers:delete, not in the Billing module preset) |
| An upgrade or downgrade | POST /servers/{id}/actions/change-package { "packageId": "…" } |
| An extra IPv4 address | With the order: extraIpv4 when creating the server. Later: POST /servers/{id}/ips (adds one from the IP pools attached to the server’s node) |
| A traffic top-up (staff only) | POST /servers/{id}/bandwidth { "action": "add", "gb": 500 } |
Taking back this month’s top-up (staff only; leave out gb for all of it) |
POST /servers/{id}/bandwidth { "action": "remove", "gb": 500 } |
The server’s own monthly allowance (staff only; null for its package’s) |
POST /servers/{id}/bandwidth { "action": "set", "gb": 2000 } |
| A faster port or CPU add-on | PATCH /servers/{id}/speed |
| A backup add-on | PUT /servers/{id}/backups/plan { "planId": "…" }; null removes backups, "package" goes back to the package’s default. GET /admin/backup-plans lists the plans with their IDs. A reseller can only choose plans its terms allow (403 plan_not_allowed). |
| A resource pack (self-service) | PUT /customers/{id}/allowance |
Send your client’s ID as billingClientId (a whole number, such as WHMCS’s client ID), and the account is linked to it: the panel shows it on the customer’s page, GET /admin/customers?q=%23<ID> finds it again (# and the ID), and a second account with the same ID is refused with 409 external_id_taken. billingSystem (WHMCS, the default, or Blesta) names the billing panel the account is shown with, such as “WHMCS #1042”. With more than one billing install on one panel, also send billingInstallId (8 to 64 letters, digits and dashes, the same on every call from that install): the same client ID from another install is then another account. An account never changes install once it has one. A reseller’s customers carry the client ID they were signed up with as externalId.
Send an Idempotency-Key, such as the order or invoice number, on every call that changes something: a retry after a timeout with the same key doesn’t create a second server. Suspend and unsuspend don’t use the key: they answer 409 invalid_state when the server is already suspended (or isn’t), and POST /admin/customers answers 409 email_taken when the account already exists; treat both as done. A suspend also answers 409 invalid_state while the server is still being built: retry that one later. A traffic top-up has no such check: look at the server’s traffic (GET /servers/{id}/traffic) before retrying one that timed out.
A reseller can only unsuspend servers it suspended itself: one suspended by you, or automatically because its traffic ran out, answers 403 suspended_by_provider. While one of those is suspended, the reseller also can’t change its package, add an address or change its speed limits (409 suspended_by_provider).
A server that’s moving between nodes can’t be suspended or terminated: those answer 409 server_moving until the move ends. Try again later.
Creating a server
POST /api/v1/admin/servers
Authorization: Bearer pnl_…
Content-Type: application/json
Idempotency-Key: order-10482
{
"ownerId": "usr_…",
"packageId": "pkg_vps2",
"nodeGroupId": "grp_fra",
"nodeId": null,
"imageId": "debian-12",
"hostname": "web-01.example.com",
"access": { "mode": "password" }
}
| Field | Notes |
|---|---|
ownerId |
The customer account |
packageId |
A package that isn’t archived |
nodeGroupId |
The location |
nodeId |
null lets the group’s placement rule pick the node. Staff only; resellers leave it out. |
imageId |
A published image. Leave it out (with hostname and access) to create the server waiting for setup. |
hostname |
Letters, numbers and hyphens: a short name like web01, or a full one like web01.example.com |
name |
Optional. What the panel shows for the server, such as Client website, up to 64 characters. Left out, it shows the hostname. Change it later with PATCH /servers/{id}/name. |
access |
{ "mode": "password" }, or { "mode": "ssh_keys", "sshKeyIds": [ … ] } with keys belonging to the owner. Needed with an image. |
extraIpv4 |
Optional. IPv4 addresses on top of the package’s, such as an add-on bought with the order. They come with the server, and the customer isn’t told about each one separately. A server has at most 16. |
POST /reseller/servers takes the same fields without nodeId; the owner must be the reseller or one of its customers. A reseller lists every server it sells, its own and all of its customers’, with GET /servers?scope=reseller (add owner_id for one customer); each customer’s server carries its owner.
The answer comes at once:
{
"jobId": "job_…",
"serverId": "srv_8f2k1x7qm3dz",
"nodeName": "node-2",
"ipv4": "203.0.113.10",
"ipv4Addresses": ["203.0.113.10", "203.0.113.11"],
"rootPassword": "…"
}
nodeName is the node it was placed on; a reseller’s answer leaves it out. ipv4 is the primary address; ipv4Addresses lists every IPv4 address the server got, the primary first: the package’s and any extraIpv4.
rootPassword is only there for password access, and only this once: a retry with the same Idempotency-Key gets the same answer without it. The panel’s own “server ready” email to the customer carries it too, unless that email is switched off. Follow GET /jobs/{jobId} until state is succeeded, or wait for the server.provisioned webhook.
Waiting for setup
Without an imageId the server is created with the status pending_setup: its node, disk space and addresses are held, but nothing is installed and jobId is null. Until it has a hostname of its own it’s called server<number>. The customer is notified and sees a setup page in place of the server’s tabs; you can do the same from the admin side.
To build it, call POST /servers/{id}/actions/setup with { imageId, hostname, name?, access, scriptId? } (permission servers:reinstall). Custom images and saved startup scripts work as they do for a reinstall, and SSH keys can be the owner’s or those of whoever sets it up. The answer is { jobId, rootPassword? }, followed by server.provisioned as usual.
Until then power, console, reinstall, backups, disk and hardware changes are refused with not_set_up. Moving it to another node (POST /admin/servers/{id}/actions/move) happens at once and answers with jobId: null, since nothing is copied. It can be suspended (unsuspending brings it back to waiting), and terminating it only frees what it held: there’s nothing on the node to destroy.
Why an order can be refused
| Status | Code | Meaning |
|---|---|---|
| 422 | validation_failed |
A bad owner, package, location, image, hostname or SSH key, or a location the package isn’t sold in |
| 422 | disk_too_small |
The image needs a bigger disk than the package has |
| 422 | image_not_allowed |
The package only allows some operating systems, and that image isn’t one of them |
| 409 | package_unavailable |
The package is hidden: only your own key can create servers from it, not a reseller’s |
| 409 | account_locked |
The customer’s account is locked |
| 409 | location_closed |
The location isn’t taking new servers right now. Every API order is refused this way; only staff creating a server in the panel can still place it there. |
| 409 | hostname_taken |
The customer already has a server with that hostname |
| 409 | no_capacity |
No node in the location has room: treat it as out of stock |
| 409 | no_addresses |
No free IPv4 address in the pools attached to the chosen node |
| 409 | reseller_suspended |
The reseller is suspended |
| 409 | package_not_allowed |
The reseller isn’t allowed to sell that package |
| 409 | location_not_allowed |
The reseller can’t place servers in that location |
| 409 | location_unavailable |
The location is a private node group: only your own key can place servers there, not a reseller’s |
| 409 | quota_exceeded |
The server would take the reseller over a quota; the message says which |
| 409 | license_limit |
The node given as nodeId already has as many servers as the panel’s license allows on it |
| 503 | new_servers_unavailable |
The panel’s license has lapsed past its grace period, so no new servers can be created. Existing servers keep running. See License. |
GPU instances
GPU containers are sold the same way, with a GPU offer in place of a package. Put each offer’s ID (from GET /admin/gpu-offers) into the matching billing product. The same staff token works: the GPU calls use the server scopes.
| When | Call | Scope |
|---|---|---|
| An order is paid | POST /admin/gpu-instances { ownerId, offerId, nodeGroupId, imageId? or ownImage?, name?, sshKeyIds? } |
servers:create |
| An invoice is overdue | POST /admin/gpu-instances/{id}/suspend { "reason": "Invoice #1042 overdue" } |
servers:suspend |
| It’s paid | POST /admin/gpu-instances/{id}/unsuspend |
servers:suspend |
| The service is canceled | DELETE /admin/gpu-instances/{id} (its /workspace goes too) |
servers:terminate |
| Show it in the client area | GET /gpu-instances/{id}: its status, address and SSH command; its JupyterLab link (a root terminal in the container) only with servers:settings or servers:console too |
servers:read |
| Rename it from the client area | PATCH /gpu-instances/{id} { "name": "train-2" } |
servers:settings |
| Charge by the hour, or check a month | GET /gpu-instances/{id}/usage?from=&to= |
servers:read |
| A billing run for every instance | GET /admin/gpu-usage?from=&to=&owner_id= |
servers:read |
Without an imageId, the instance is created with the status pending_setup, and image is null: its host, cards, ports and address are held, but nothing is on the host yet. The customer is told and sees a setup screen on its page, where they pick the image, its name and the SSH keys root takes; the same is POST /gpu-instances/{id}/actions/setup { imageId, name?, sshKeyIds? } (scope servers:reinstall, with an Idempotency-Key), for the owner, staff or the owner’s reseller. gpu_instance.ready fires once it runs. An image the instance’s host can’t run is refused with 409 image_unusable; GET /gpu-instances/{id}/images gives each image’s reason as unavailable. While it waits, starting it, its terminal and changing its image answer 409 not_set_up. Its allocated time counts from when it’s created.
The suspend, unsuspend and delete calls also answer at POST /gpu-instances/{id}/actions/suspend, POST /gpu-instances/{id}/actions/unsuspend and DELETE /gpu-instances/{id}, as for servers, with the same scopes. Suspending an instance that’s already suspended answers 409 already_suspended, and unsuspending one that isn’t answers 409 not_suspended; treat both as done.
A reseller’s billing sells GPU instances from the offers it’s allowed, within its GPU card quota. GET /reseller/account lists them under gpuOffers, each with its locations (and whether they have room now), images, and ownImages (the registries and largest image when customers can run their own, otherwise null), and the card usage under gpus.
| When | Call | Scope |
|---|---|---|
| An order is paid | POST /reseller/gpu-instances { ownerId, offerId, nodeGroupId, imageId? or ownImage?, name?, sshKeyIds? } |
reseller:servers |
| An invoice is overdue | POST /gpu-instances/{id}/actions/suspend { "reason": "…" } |
reseller:servers |
| It’s paid | POST /gpu-instances/{id}/actions/unsuspend |
reseller:servers |
| The service is canceled | DELETE /gpu-instances/{id} |
reseller:servers |
| A customer’s instances | GET /gpu-instances?owner_id= |
servers:read |
| Every instance it sells | GET /gpu-instances?scope=reseller (its own and all of its customers’; without scope, only its own) |
servers:read |
| A billing run for its customers | GET /reseller/gpu-usage?from=&to=&owner_id= |
reseller:read |
The owner is the reseller or one of its customers. A reseller order is refused with 409 offer_not_allowed for an offer it isn’t allowed, 409 offer_unavailable for a hidden offer, 409 quota_exceeded when the cards would go over its GPU quota (or, for an offer that gives each instance its own IPv4 address, its IPv4 quota), 409 location_unavailable for a private node group and 409 reseller_suspended while it’s suspended. It can only unsuspend instances it suspended itself: one you suspended answers 403 suspended_by_provider. Your own orders for a reseller’s customer are held to the reseller’s offers and quota too.
Usage answers, for a period (ISO times; this calendar month in UTC up to now when left out), how many seconds the instance existed (allocatedSeconds: its cards, ports and address are held whether it runs or not) and how many of those it was running, stopped or suspended (runningSeconds, stoppedSeconds, suspendedSeconds), with each spell in intervals and the offer’s billingProductId. Suspension counts from the moment it’s asked for. A deleted instance’s usage stays readable by staff for 400 days, and the billing run includes instances deleted during the period. The panel doesn’t price anything: charge running hours, allocated hours, or both, as your products say.
For GPU instances, the useful webhooks are gpu_instance.created, ready, started, stopped (with reason requested, crashed or disk_limit), failed, image_changed, suspended, unsuspended and deleted; what each carries is under Webhooks. An instance whose container stops on its own and stays down is marked stopped within a minute or so of its host noticing.
Leave out imageId (and ownImage) and the instance waits for setup (above). The offer needs at least one image that isn’t hidden, or to allow customers’ own images, or the order is refused with 422 validation_failed. Leave out sshKeyIds and root’s SSH login takes every key on the owner’s account; the customer can change which with PUT /gpu-instances/{id}/ssh-keys { sshKeyIds }. Send an Idempotency-Key here too. An order is refused with 409 no_capacity when no GPU container host in the location has the cards or room, and no_addresses when an own-IPv4 offer’s host has no address left. Check locations[].available and free in GET /admin/gpu-offers before selling.
The customer’s own image
On an offer that allows customers’ own images (ownImages.allowed in GET /admin/gpu-offers), an ownImage object can take the place of imageId when creating an instance, setting it up, or changing its image (POST /gpu-instances/{id}/actions/change-image { ownImage }):
{
"ownImage": {
"image": "ghcr.io/acme/trainer:1.4",
"launch": "ssh",
"ports": [8000],
"minCuda": "12.4",
"login": { "username": "acme-bot", "password": "ghp_…" }
}
}
| Field | What it is |
|---|---|
image |
The image as Docker names it, up to 255 characters, in lower case with no spaces. Without a registry, it’s on Docker Hub (docker.io). The image’s page on Docker Hub, GitHub, Quay or NVIDIA NGC (with or without https://), a reference with http:// or https:// in front, or a docker pull line is read as the image it names. |
launch |
ssh, jupyter (JupyterLab and SSH) or entrypoint (the image’s own command, no SSH) |
ports |
Optional. Ports inside it to reach besides SSH (22) and Jupyter (8888), up to 20. With forwarded ports, they and SSH and Jupyter have to fit in the offer’s ports. |
minCuda |
Optional. The oldest CUDA it needs, such as "12.4" |
login |
Optional, for a private image. Kept encrypted and never returned; the answer’s ownImage.login is true once one is saved. On a change of image, leaving it out keeps the saved login when the new image is another tag of the same image (same registry and repository), and null removes it. |
The answer shows image as { "id": "own", "name": "Own image", "image": "ghcr.io/acme/trainer:1.4", "own": true, … } and the details under ownImage. To start it afresh on the same image, send { "imageId": "own" } to change-image. ownImages on an instance says what its offer allows (null when it doesn’t), with unavailable set when its host can’t run one.
Refusals: 422 own_image_not_allowed when the offer doesn’t allow it, 422 registry_not_allowed for a registry the offer doesn’t list, 422 not_enough_ports when its ports don’t fit, 422 validation_failed for a name Docker wouldn’t take or a registry on the host itself or given by IP address, and 409 image_unusable (or 409 no_capacity on create) when no host can run it. When the host can’t use the image (no such image, the login is missing or wrong, it’s over the offer’s largest image, or it isn’t built for linux/amd64), gpu_instance.failed fires with the reason as error, the instance’s imageError says it, and the instance is as it was: waiting for setup again, or still running its old image.
Signing customers in
Billing can send a customer straight into the panel, signed in, from a Log in to control panel button. When they click it, ask for a one-time link and redirect their browser to it:
POST /api/v1/admin/customers/{id}/sign-in-link
Authorization: Bearer pnl_…
Content-Type: application/json
{ "serverId": "srv_8f2k1x7qm3dz", "page": "console" }
{ "url": "https://panel.example.com/sso/…", "expiresAt": "2026-10-10T15:04:05.000Z" }
serverId(one of the customer’s servers or GPU instances) andpage(console,network,reinstall,snapshots,backups,firewallorsettingsfor a server,jupyterfor a GPU instance’s JupyterLab) are optional; without them the customer lands on their server list.jupyteropens JupyterLab, signed in, when it’s served over HTTPS (see JupyterLab over HTTPS); otherwise the customer lands on the instance’s page.- The link works once, for 60 seconds. Make it when the customer clicks, not when the page loads, and don’t email it.
- An account with two-factor still asks for its code. Only customer accounts can be signed in to, not staff, a reseller or a staff member’s own client area, and a locked account answers
409 account_locked. A person making a link, in the panel or with their own API token rather than a panel API key, needs Sign in as customer too. The link is only used once the customer clicks Continue on the page it opens, which also says so when the browser is already signed in to the panel as someone else. - It needs
customers:sign_in. Each link and each sign-in is in the audit log, and the customer sees the sign-in in their account activity.
4. Listen for webhooks
Add a webhook so billing hears about changes made elsewhere, such as staff suspending a server or a reseller’s customer being created. See Webhooks. Useful events for billing are server.provisioned, server.suspended, server.terminated, server.resized, floating_ip.created and floating_ip.released.
The WHMCS and Blesta modules
The WHMCS module and the Blesta module make the calls on this page for you. Their own pages cover installing and setting up each one; what follows works the same way in both.
Locations
A location is always a node group, not a region. The panel places every server in a node group; a region is only the city a node group is in, and several node groups can share one. Offer only the node groups ticked under Locations on the panel package: it can’t be ordered anywhere else. A private node group shows as (private) in the module’s Location choices; your billing panel’s key can still place servers there, but a reseller’s can’t.
SSH keys from the order
A public key the client gives with the order is added to their panel account, named after the order (such as “From order #1042”), and:
- a server built at once signs in with that key instead of a root password;
- a GPU instance’s root login takes it, ready for SSH once the instance is running;
- a server waiting for setup has it ready to pick when the client sets it up.
The client is told in the panel that a key was added, and the same key on a later order isn’t added twice. A key the panel turns down doesn’t stop the order: the server is created with a root password. Only the key itself is kept, without its comment or options. Keys can’t be added this way with a reseller’s token; a reseller’s clients add their own in the panel.
Extra addresses ordered with a server come with it: the client gets one email when it’s ready (or one saying it’s ready to set up), not one per address. Changing the number of extra addresses later adds or removes addresses to match, taking the newest additional ones first; the main address stays.
Upgrades and downgrades
When an upgrade or downgrade is paid, the server moves to the new product’s panel package:
- A running server restarts once if its vCPU or memory changes. A bigger disk grows; the partition grows on the next boot.
- Disks don’t shrink. A package with a smaller disk is refused, and the billing panel shows why. Offer downgrades only to packages with at least as much disk, or the same disk with fewer vCPU or less memory.
- The server’s node has to have room for any extra memory or disk. When it doesn’t, the reason is shown and you can move the server first.
- A package with more IPv4 addresses adds the rest, and one with IPv6 adds an IPv6 block (of its pool’s size) when the server has none (see Changing a server’s package). The change is refused when the node has no free IPv4 addresses for it. The panel never takes addresses away on a downgrade. The WHMCS and Blesta modules do: with an extra IPv4 option, the server keeps the new package’s addresses plus the extra ones ordered; without one, a package with fewer IPv4 addresses takes back as many as the bigger package had over it, newest first, never the primary one.
- A GPU instance keeps its offer: the client orders the other product instead.
Signing in from the billing panel
Open control panel and the links to the server’s pages sign the client in to their panel account and take them to their server:
- When they click, the billing panel asks the panel for a one-time sign-in link and sends them to it. The link works once, for one minute; the panel keeps only a fingerprint of it, and it leaves the browser’s address bar once it’s used.
- If the client turned on two-factor in the panel, they’re asked for their code first.
- It only signs the client in to the panel account that owns the service’s server, and only when that account is this client’s (see Whose account a service uses). A service linked by hand to someone else’s server opens the panel’s sign-in page instead, and its page shows nothing of that server. Staff, resellers, staff members’ own client areas and locked accounts can’t be signed in to this way.
- The link is used only once the client clicks Continue on the page it opens. A browser already signed in to the panel is told which account it would leave.
- Each link and each sign-in is in the panel’s audit log, and the client sees “Signed in from billing” in their account activity.
A brand new client is signed in without a password; the panel’s welcome email (unless it’s switched off) still lets them choose one for signing in to the panel directly. Signing in needs the Customers: sign-in links permission (customers:sign_in, under Billing in the key’s permissions), which the Billing module preset includes. Without it, or with a reseller’s token, the links open the panel’s sign-in page.
Whose account a service uses
When a service is created, a new client gets a panel account linked to their client ID in that billing panel, and is emailed a link to set their password. A client the module already made an account for has the server added to it.
The module doesn’t take over an existing panel account because its email matches the client’s. When a new client’s email already belongs to a panel account, such as a customer you added by hand or an imported one, creating the service stops with a message saying so. If the account really is the client’s, copy its ID from the customer’s address in the panel (such as usr_4k9x2m7p), enter it under Client’s panel account on the service, save, and create the service again. Only an account with the client’s email (capitals don’t matter), or one this billing panel made for that client, can be linked; if the emails differ, change the client’s email in the billing panel to the account’s first. Staff members’ own accounts and resellers’ accounts can’t be linked to a client. Clearing the field unlinks it.
The service’s admin page shows the Panel account:
| It says | Meaning |
|---|---|
| This client’s account, made by this WHMCS (or Blesta) | The account was made for this client: sign-in and the buttons work |
| Linked to this client by staff | An account that was in the panel already, linked by staff under Client’s panel account: sign-in and the buttons work |
| Not this client’s account | The server belongs to someone else in the panel. The client can’t see or use it from the billing panel, and their links open the sign-in page. Check the Server ID. If the server should be the client’s, move it to their account in the panel with Move to another customer on the server’s page. Its usage isn’t billed to the client while it’s someone else’s. |
While a service’s server isn’t its client’s account, the billing panel’s own actions leave it alone: a suspension for an overdue invoice, a cancellation and an upgrade fail with a message in the module log instead of reaching someone else’s server. Staff can still suspend, unsuspend, terminate or change it from the service’s admin page.
To link a service to a server that already exists, such as one imported from another panel, enter the server’s ID under Server ID on the service and save. It’s the last part of the server’s address in the panel, such as srv_8f2k1x7qm3dz, or of a GPU instance’s, such as gi_7k2m9qx4. Clearing the field unlinks it without touching the server. A server can be linked to one service at a time; terminating one service doesn’t delete another’s server.
Each billing install names itself to the panel the first time it connects, and the accounts it makes are its own: a test install and your live one, or two resellers’ installs, don’t share a client’s account even when their client IDs are the same.
Client details
When a client changes their name, email or company in the billing panel, the panel account it made for them changes too. An email changed by someone else who can sign in to the client’s billing account isn’t copied: the WHMCS module copies it only from a user with Perform Single Sign-On, and the Blesta module only while no other contact can sign in. An account staff linked by hand keeps its own details, email included. With a reseller’s token, the panel account keeps the details it was made with; the reseller changes them in the panel.
Resellers
A reseller can run either module in their own billing panel. They make the token as their own account, with their own Billing module preset, and the module signs their clients up as the reseller’s customers, with the client ID as the billing ID. The products list the packages and node groups you’ve allowed the reseller. GPU instances are sold with a staff key.
If the license needs attention
While the panel’s license is lapsed or refused, staff are kept to the License page. Customers aren’t affected: a panel API key keeps everything billing does for them. That’s looking up, creating, suspending, unsuspending and terminating servers and GPU instances, resetting root passwords, power actions, package changes, IPv4 addresses, backup plans, GPU usage for invoices, following jobs, looking up packages, images, backup plans, GPU offers and their images, finding servers imported from another panel, finding, creating, updating, locking and unlocking customers, listing and adding their SSH keys, and making their sign-in links. Every other call answers 403 license_required, and so does every call made with a staff member’s personal token. Connect billing with a panel API key. New servers can be created for 14 days after a paid license lapses (not at all once a trial ends or a license is canceled), then answer 503 new_servers_unavailable.
Usage reports
Operations → Reports → Usage (staff) and Reseller → Usage show each account’s servers and server-days per package, with the billing ID, for the current month or one of the two before, and each server’s traffic: this month’s so far, or for an earlier month what its counter read when that month ended (0 for a server that had no traffic period end in it). Server-days count each server from the day it was created to the day it was deleted, or to today: a server deleted during the month is listed as deleted with the date, and its traffic is what its counter read when it went. Download CSV gives one line per server (with deleted_at for deleted ones), for checking against billing or for a reseller’s invoice run. Each line also has the server’s operating system (os). Billing can fetch it with GET /reports/usage?month=YYYY-MM (staff tokens need customers:read, resellers’ reseller:read).
Windows servers report
Operations → Reports → Windows servers (staff with “See all servers”) counts the servers that ran Windows in the current month or one of the two before, for license reporting such as Microsoft SPLA: how many ran it on at least one day, the most on any one day and which day, and each server’s days, vCPUs and first and last day. A day counts when the server ran a Windows image during any part of it (UTC days); a server reinstalled during the month counts only for its Windows days, and a deleted one for the days before it went. Windows is a Windows template or image, or a server imported with the hardware the importer gives Windows guests. Download CSV gives one line per server and the peak. With a token, GET /admin/reports/windows?month=YYYY-MM (servers:read).