Skip to main content

VPS service detail (WHMCS + Virtualizor combined)

GET 

/services/:id

Combines the reseller VPS service's WHMCS-side info (domain, IP, billing cycle, next due date, namespace) with the Virtualizor-side runtime metrics (hostname, IP list, virt type, running state).

VPS_ID resolution: The official Virtualizor WHMCS module keeps the VPS_ID in a WHMCS custom field — tblcustomfields (fieldname='vpsid', type='product', relid=PRODUCT_ID) + tblcustomfieldsvalues (fieldid=customfield.id, relid=SERVICE_ID, value=VPSID). If the custom field is undefined or the value is empty, vps_id=null is returned and the virt payload becomes null (whitelabel packages or not-yet-provisioned services).

Graceful degradation: On a Virtualizor master upstream error (timeout, 5xx, auth failure) it returns 200 instead of 502; virt=null and virt_unavailable=true. The reseller at least sees the WHMCS info.

Rate limit: Default bucket (60 req/min per key).

Request

Responses

Service detail returned (virt may be null if virt_unavailable=true)

Response Headers
    X-RateLimit-Limit

    The per-minute limit defined for this key

    X-RateLimit-Remaining

    Number of requests remaining in the current window

    X-RateLimit-Reset

    Unix epoch of the start of the next window (UTC seconds)