API documentation
Base URL https://billing.svr4u.com/reseller-api/v1. Send Authorization: Bearer <token>. All writes need an Idempotency-Key header: repeating a request with the same key returns the original result and never orders twice. Passwords and token secrets are returned once and are not stored by the API for replay.
| Method | Path | Scope | Purpose |
|---|---|---|---|
| GET | /account | billing:read | Wallet balance, currency and tier |
| GET | /plans | catalog:read | Wholesale plans at your tier price |
| GET | /images | catalog:read | OS templates per plan |
| GET | /instances | instances:read | List VPS; filter with ?reference= |
| POST | /instances | instances:create | Order a VPS (Idempotency-Key required) |
| GET | /instances/{id} | instances:read | One VPS |
| GET | /instances/{id}/status | instances:read | Power state |
| POST | /instances/{id}/{start|shutdown|reboot|stop} | instances:power | Power actions |
| GET, POST | /tokens | tokens:manage | List or create tokens |
| POST | /tokens/{id}/rotate | tokens:manage | Replace a token |
| DELETE | /tokens/{id} | tokens:manage | Revoke a token |
Order example
curl -X POST https://billing.svr4u.com/reseller-api/v1/instances \
-H "Authorization: Bearer $TOKEN" -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
-d '{"plan_code":"MY-RS-6G","hostname":"vps1.example.com","template_vmid":9000,"reference":"order-1001"}'Console, snapshots, backups, reverse DNS, reinstall and password reset exist in the platform but are not yet qualified for this API tier; they are documented here once they pass acceptance.