WHMCS API automates billing/provisioning for fpsdedicated.com resellers or advanced users. Generate keys in client area.
Generating Keys
- WHMCS > Account > API Management > Create Key.
- Permissions: Restrict to modules (orders, services, invoices).
- IP whitelist: Lock to your server IPs.
Common Uses
- Automated ordering: POST /order.php with game/slots/datacenter.
- Service status: GET /services/{id} for IP/port/status.
- Billing: GET /invoices for payment tracking.
Endpoints
- Base: https://fpsdedicated.com/includes/api.php
- Auth: Header or POST param (identifier + secret).
- Format: JSON responses.
Rate Limits
- 60 req/min default; ticket for increase.
- Errors: 429 Too Many Requests.
Documentation
- WHMCS > API Docs: Full spec with examples.
- Postman collection available on request.
Security
- Rotate keys quarterly.
- Never commit to repos (use env vars).
- Validate responses (check errors array).
Abuse suspends keys. TCAdmin API separate (ticket for access).