GET /dashboard/services/{id}

Get service details

Returns detailed information about a specific service.

Parameters

NameTypeInDescription
id*
integerpathThe service ID

Response

200
403
404
successboolean
dataobject
serviceobject
idinteger
external_idintegernullable
domainstring
statusstring
activesuspendedpendingcancelledterminated
suspend_reasonstringnullable
suspended_atstringnullable
billingCyclestring
cancelledboolean
created_atstring
firstPricenumber
pricenumber
duedatestring
notestringnullable
productobject
idinteger
namestring
descriptionstringnullable
pricenumber
groupobject
idinteger
namestring

Request

curl -X GET "https://api.royalehosting.net/dashboard/services/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "success": true,
  "data": {
    "service": {
      "id": 123,
      "external_id": 456,
      "domain": "my-vps-server",
      "status": "active",
      "suspend_reason": null,
      "suspended_at": "2024-01-15T10:30:00Z",
      "billingCycle": "monthly",
      "cancelled": false,
      "created_at": "2024-01-01T00:00:00Z",
      "firstPrice": 9.99,
      "price": 9.99,
      "duedate": "2024-02-15T00:00:00Z",
      "note": "Production server",
      "product": {
        "id": 42,
        "name": "VPS Pro",
        "description": "4 vCPU, 8GB RAM, 100GB SSD",
        "price": 9.99,
        "group": {
          "id": 1,
          "name": "VPS"
        }
      }
    }
  }
}