# API: Get account details
# getAccountDetails
Return account details. Warning.: This method returns decrypted account password.,
If account have cancellation request related to it, it will be present under `cancel_request` element as array.
If account have metrics related to it, those will be present under `metrics` element as list of arrays
# Required parameters
Parameter | Description |
---|---|
id | Account ID |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getAccountDetails&id=ID
# PHP Samples
# Response
{
"success": true,
"details": {
"id": "1496",
"client_id": "23",
"order_id": "9906",
"product_id": "6727",
"parent_id": "0",
"date_created": "2024-02-16",
"domain": "google.com",
"server_id": "224",
"payment_module": "706",
"firstpayment": "10.00",
"total": "10.00",
"billingcycle": "Monthly",
"billingtype": "PrePay",
"next_due": "2024-05-16",
"due_day": "16",
"expires": "2024-04-16",
"autorenew": "1",
"next_invoice": "2024-05-01",
"status": "Active",
"label": "",
"username": "gogoglgc",
"password": "password",
"autosuspend": "0",
"autosuspend_date": "0000-00-00",
"rootpassword": "",
"date_changed": "2024-03-06 03:02:22",
"synch_date": "2024-02-27 21:12:49",
"synch_error": "0",
"user_error": "0",
"domain_error": "0",
"notes": "",
"manual": "0",
"extra_details": [],
"commitment_date": "",
"contract_id": "0",
"discount_id": "",
"date_suspended": "0000-00-00",
"date_terminated": "0000-00-00",
"brand_id": "1",
"qty": "1",
"group_id": "0",
"sort_order": "1496",
"module": "120",
"mod": "Cpanel2",
"options": {
"option1": "default",
"option2": "No",
"option18": "",
"option20": "",
"option21": "",
"option22": "",
"option23": "No",
"option24": "",
"option25": "",
"option3": "",
"option4": "",
"option5": "",
"option6": "",
"option7": "",
"option8": "",
"option9": "",
"option10": "",
"option11": "",
"option16": "",
"option30": "",
"option31": ""
},
"firstname": "John",
"lastname": "Doe",
"companyname": "Acme Inc.",
"ptype": "Shared",
"addons": "0",
"product_name": "Package B3",
"p_options": 0,
"category_name": "Power Hosting",
"category_id": "20",
"slug": "power-hosting",
"currency_id": "0",
"paytype": "Regular",
"order_num": "2076813535",
"contract_template": "",
"contract_number": "",
"modules": [],
"server_name": "cpanel.com",
"currency": {
"code": "USD",
"iso": "USD",
"sign": "$",
"format": "1,234.56",
"decimal": "2",
"rounding": "2",
"rounding_mode": "HALF_UP",
"id": 0,
"rate": 1
},
"custom": [],
"discount": "",
"reason_suspend": ""
},
"cancel_request": {
"id": "25",
"date": "2024-04-08 19:30:00",
"reason": "Cancelation reason",
"type": "End of billing period",
"item_id": "1496",
"item_type": "Account",
"process_at": "0000-00-00 00:00:00",
"processed_at": "0000-00-00 00:00:00",
"who": "Client",
"status": "Active",
"product_id": "6727",
"client_id": "23"
},
"metrics": [
{
"name": "Disk",
"date": "2024-04-08 19:30:32",
"unit": "MB",
"limit": "1000",
"value": "0",
"percent": 0
}
],
"call": "getAccountDetails",
"server_time": 1712570637
}