GET /api/v1/control-accounts
    • 15 Apr 2024
    • PDF

    GET /api/v1/control-accounts

    • PDF

    Article Summary

    Get Control Accounts

    Returns a list of all the Control Accounts that are associated with the Governance Account.

    URL (GET)

    /api/v1/control-accounts

    Parameters

    Key NameDescriptionRequired
    pageList page numberNo
    sizeList page sizeNo
    idFilter by account idNo
    nameFilter by account nameNo
    governanceAccountIdFilter by account governanceAccountIdNo
    statusFilter by account status (active, inactive)No
    wasabiAccountNameFilter by account wasabiAccountNameNo
    primaryApiKeyList primary API key
    includeApiKeyInclude API key (true)

    Example

    https://api.wacm.wasabisys.com/api/v1/control-accounts

    Request Body

    None

    Response

    {
        "success": true,
        "message": "Successfully read!",
        "data": {
            "items": [
                {
                    "id": 29915,
                    "name": "Cloud co",
                    "category": null,
                    "partnerType": "RESELLER",
                    "accountType": "Company",
                    "status": "Active",
                    "imageUrl": null,
                    "creationDate": "2022-04-07T17:24:14.490Z",
                    "address1": null,
                    "address2": null,
                    "country": null,
                    "city": null,
                    "state": null,
                    "zip": null,
                    "mainPhone": null,
                    "billingPhone": null,
                    "contactEmail": null,
                    "billingEmail": null,
                    "businessNumber": null,
                    "taxId": null,
                    "fiscalNumber": null,
                    "vatNumber": null,
                    "website": null,
                    "governanceAccountId": null,
                    "governanceAccountName": null,
                    "subAccountsCount": 4,
                    "wasabiAccountName": "example@example.com",
                    "subAccountStorage": 120.54404435
    },
                {
                    "id": 4683,
                    "name": "Control Account Example",
                    "category": null,
                    "partnerType": "RESELLER",
                    "accountType": "Company",
                    "status": "Active",
                    "imageUrl": null,
                    "creationDate": "2021-02-18T10:31:00.919Z",
                    "address1": null,
                    "address2": null,
                    "country": null,
                    "city": null,
                    "state": null,
                    "zip": null,
                    "mainPhone": null,
                    "billingPhone": null,
                    "contactEmail": null,
                    "billingEmail": null,
                    "businessNumber": null,
                    "taxId": null,
                    "fiscalNumber": null,
                    "vatNumber": null,
                    "website": null,
                    "governanceAccountId": null,
                    "governanceAccountName": null,
                    "subAccountsCount": 1,
                    "wasabiAccountName": null,
                    "subAccountStorage": 12.01171875
                },