List sub-accounts of the authenticated customer
Returns the list of sub-accounts of the currently authenticated Customer (Customers whose parent_id equals the authenticated Customer's ID).
Customer authentication only. This endpoint is available exclusively under customer authentication (an access token issued with auth_type=customer). Requests authenticated as an administrator or by an API key receive 403 Forbidden.
Only listing is supported — view, create, update and delete are disabled for this entry point.
The ownership filter is enforced on the server side: results are always restricted to parent_id = <authenticated customer id>. Search parameters cannot bypass it — passing ?main_attributes[id]=... (or any other main_attributes) for a Customer that is not your sub-account returns an empty array. Standard order, limit and offset options still apply within the ownership scope. The password field is never returned.
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/customers/customer-sub-accounts
- Auth: HTTP basic
Response
Example response
[
{
"login": "john_doe_jr",
"status": "active",
"partner_id": 1,
"location_id": 1,
"parent_id": 1,
"name": "John Doe Jr",
"email": "john.doe.jr@domain.com",
"billing_email": "",
"phone": "555-0199",
"category": "person",
"street_1": "Paper Street",
"zip_code": "",
"city": "",
"date_add": "",
"customer_labels": [],
"subdivision_id": 1,
"conversion_date": "",
"daily_prepaid_cost": 0,
"id": 2,
"gps": "",
"mrr_total": 0,
"billing_type": "",
"added_by": "admin",
"added_by_id": 1,
"last_online": "",
"last_update": "",
"account_type": "regular",
"can_manage_aggregated_sub_accounts": "0",
"contacts": []
}
]Changes
No recorded changes to this operation across all 1 revision of this API.