CrownPanel API Overview
CrownPanel's API allows you to manage your VPS programmatically - including actions like power control, hostname changes, snapshot management, billing operations, renewals, and more.
- đ API Key: Retrieve your key from Account Settings
- đ Endpoint: All API requests must be made via the
POSTmethod to https://api.crownpanel.com
You can use the API with:
- PHP scripts
- CLI tools like
curl - Monitoring systems
- Custom control panels or dashboards
Ideal for automation, integration into management panels, or performing bulk operations across multiple VPS instances.
đ Renew Service
Use this API to pay an unpaid invoice and automatically renew the associated service.
This API will:
- Validate the invoice
- Process the payment
- Renew the VPS service
- Return renewal confirmation status
đ Key(s) and variable(s) required for this call,
Example Responses
â Success Output
{ "query_status": "Success", "query": "renew_service", "invoice_id": "43210", "amount_paid": "5.00", "renewal_status": "Success", "query_result": "Invoice Paid and Service Renewed." }
â Error Output (Invoice Already Paid)
{ "query_status": "Error", "query": "renew_service", "invoice_id": "43210", "renewal_status": "Failed", "query_result": "Invoice Already Paid." }
â Error Output (Invalid API Key)
{ "query_status": "Error", "query": "renew_service", "query_result": "Invalid API Key." }
{ "query_status": "Error", "query": "renew_service", "invoice_id": "43210", "amount_paid": "5.00", "renewal_status": "Error", "query_result": "Contact support, Invoice was not paid automatically. Credit is moved to Client Area Balance." }
{ "query_status": "Error", "query": "renew_service", "invoice_id": "293764", "amount_paid": "5.00", "renewal_status": "API Error", "query_result": "Success, $5 was reversed back to account due to an API issue." }
{ "query_status": "Error", "query": "renew_service", "invoice_id": "43210", "amount_paid": "5.00", "renewal_status": "Low Balance", "query_result": "Wallet Balance not enough to renew this service." }
{ "query_status": "Error", "query": "renew_service", "invoice_id": "43210", "amount_paid": "5.00", "renewal_status": "Not Available", "query_result": "No Unpaid Invoice Found For Service. Contact Support." }
{ "query_status": "Error", "query": "renew_service", "invoice_id": "43210", "amount_paid": "5.00", "renewal_status": "Unknown", "query_result": "Service Not Renewed" }
CURL Example
đ Other Language Examples
If you prefer to use another language or environment, here are examples for PHP, Python and Node.js:
PHP Example
Python Example
âī¸ Install (only once): Required to install necessary libraries before running the code.
Node.js Example
âī¸ Install (only once): Required to install necessary libraries before running the code.
đ Related API Calls
- âšī¸ VPS Information
- đ§Š VPS Network Information
- đĨī¸ VPS VNC Information
Need help? Visit our Support Portal or reach out via our live chat.

