Packages & orders
Packages define what a customer can use; orders define what they pay. Both live in the admin panel and feed the licensing center and the customer panel.
Package anatomy
| Field | Example | Effect |
|---|---|---|
| Name | Business | Shown in panel and invoices |
| Disk | 50 GB | Hard quota on files and databases |
| Websites | 25 | Maximum sites per account |
| Databases | 50 | Maximum databases |
| Mailboxes | 100 | Maximum mailboxes |
| Traffic | 1 TB / month | Soft limit with alert, then throttle |
| PHP versions | 8.1–8.3 | Allowed runtimes |
| Backups | Daily, 14 days | Schedule and retention |
| Features | SSH, Git deploy, API | Feature flags per package |
Feature flags are enforced server-side: hiding a menu item is cosmetic, the API rejects the operation when the package lacks the flag.
Create a package
- Packages → Create package.
- Set limits and feature flags.
- Set the price, currency and billing cycle.
- Choose visibility: public, hidden or reseller-only.
- Save and preview the customer-facing plan card.
Prices are stored in minor units to avoid floating-point drift:
{
"name": "Business",
"price_cents": 2900,
"currency": "USD",
"cycle": "monthly",
"limits": { "disk_gb": 50, "sites": 25, "databases": 50, "mailboxes": 100 }
}Orders lifecycle
Pending → Paid → Provisioning → Active → Renewal → Cancelled
└── Failed (retry or refund)| Status | Meaning | Operator action |
|---|---|---|
| Pending | Awaiting payment | Send reminder or cancel |
| Paid | Payment captured | None |
| Provisioning | Account being created | Watch for failures |
| Active | Serving | Support |
| Failed | Provisioning error | Retry or refund |
| Cancelled | Ended | Confirm data retention |
Renewals are generated ahead of expiry and retried on a schedule. A failed renewal suspends the account after the grace period rather than deleting it.
Invoices and refunds
Invoices list line items, tax and the payment reference. Refunds are issued against the original payment method where possible:
- Orders → order → Refund.
- Choose full or partial.
- Enter a reason — it appears in the audit log and the customer email.
- Confirm; the gateway response is stored with the invoice.
Refunds do not automatically delete an account. Decide separately whether to suspend, downgrade or close it.
Proration
When a customer changes package mid-cycle, the panel prorates by day:
Unused: 12 days of Business at 29.00 / 30 = 11.60 credit
New: 12 days of Pro at 59.00 / 30 = 23.60 charge
Invoice: 12.00 due todayProration rules are configurable per currency under Settings → Billing. Document the policy in your terms so customers can predict the charge.
Resellers
A reseller buys at wholesale and sells at their own price.
| Setting | Meaning |
|---|---|
| Wholesale price | What the reseller pays you |
| Margin | Reseller markup, hidden from customers |
| White-label | Custom brand and panel domain |
| Sub-accounts | Accounts the reseller can create |
Reseller accounts see only their own customers. Platform staff can see everything, and every cross-tenant action is audited.
Coupons and trials
- Coupons apply a percentage or fixed discount for a limited time or number of uses.
- Trials create an active account with an expiry date and no invoice.
- Both are scoped to a package and can be limited to first-time customers.
Reporting
The orders screen reports revenue by period, package, currency and reseller. Export includes invoice identifiers so finance can reconcile against the payment gateway. Keep the export retention aligned with your accounting requirements.