List Account Groups

Lists all account groups for the authenticated organization. Use this endpoint to retrieve a summary of all sub-organizations under your parent entity.

GET/organizations/account-groups

Lists all account groups for the authenticated organization.

Response

OK

dataobject[]
Show data properties
idstring<uuid>
namestring
merchant_idstring
parent_codestring,null<uuid>

The id of the group this group is nested under. null for a root (top-level) group.

created_atstring<date-time>
updated_atstring<date-time>
paginationobject
Show pagination properties
pageinteger
page_sizeinteger
total_itemsinteger
total_pagesinteger
has_nextboolean
has_previousboolean
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/organizations/account-groups" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>"
Response
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "merchant_id": "string",
      "parent_code": null,
      "created_at": "1970-01-01T00:00:00.000Z",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 0,
    "page_size": 0,
    "total_items": 0,
    "total_pages": 0,
    "has_next": true,
    "has_previous": true
  }
}