# API: Get client accounts

# getClientAccounts

Get list of client's accounts.

TIP

This API call uses pagination for results.

# Required parameters

Parameter Description
id Client ID

# Optional parameters

Parameter Description
page Which page to return
category_id Id of orderpage to limit results to

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getClientAccounts&id=ID

# PHP Samples

# Response

{
    "success": true,
    "accounts": [
        {
            "id": "42",
            "manual": "0",
            "domain": "billing.com",
            "billingcycle": "Monthly",
            "status": "Active",
            "total": "8.95",
            "next_due": "2011-12-22",
            "name": "Business Hosting",
            "type": "1",
            "lastname": "Blue",
            "firstname": "Mike",
            "client_id": "6",
            "currency_id": "0"
        },
        {
            "id": "41",
            "manual": "0",
            "domain": "helpdesk.com",
            "billingcycle": "Monthly",
            "status": "Active",
            "total": "4.95",
            "next_due": "2011-12-22",
            "name": "Starter Hosting",
            "type": "1",
            "lastname": "Blue",
            "firstname": "Mike",
            "client_id": "6",
            "currency_id": "0"
        }
    ],
    "call": "getClientAccounts",
    "server_time": 1323444481
}
Last Updated: 6/19/2023, 4:03:37 PM