# Group datawarehouse
Group of all datawarehouse-related resources.

## Subaccounts

The Subaccounts API will return list of all Sub account.

## Index [/datawarehouse/subaccounts/index{?vendor_id,access_token,sort_by,sort_order,limit}]

### Index [GET]

+ Parameters
    
    + access_token (required, varchar, `some token`)
    + vendor_id (required, number, `18805`)
    + sort_by (optional, varchar, `subaccount_id`)
    + sort_order (optional, varchar, `desc`)
    + limit (optional, number, `10`)

+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
        "apiVersion": "1.0",
        "baseUrl": "localhost",
        "httpStatusCode": 200
    },
    "request": "subaccounts/index?params=datawarehouse&subaccounts&index&json&18805&10&1da0757ecb6ae3ae250136b2275b9ee0&subaccount_id&desc",
    "response": {
        "subaccount": [
            {
                "subaccount_id": 18761,
                "subaccount_name": "Jaclyn Records"
            },
            {
                "subaccount_id": 17189,
                "subaccount_name": "Test Synergy"
            },
            {
                "subaccount_id": 19,
                "subaccount_name": "sixty sixty sixty sixty sixty sixty sixty sixty sixty sixty"
            },
            {
                "subaccount_id": 18,
                "subaccount_name": "sixty sixty sixty sixty sixty sixty sixty"
            },
            {
                "subaccount_id": 17,
                "subaccount_name": "Fat Wreck Records Text"
            },
            {
                "subaccount_id": 16,
                "subaccount_name": "Shoetree Test"
            },
            {
                "subaccount_id": 15,
                "subaccount_name": "override"
            },
            {
                "subaccount_id": 14,
                "subaccount_name": "Demo D4"
            },
            {
                "subaccount_id": 13,
                "subaccount_name": "ktest11"
            },
            {
                "subaccount_id": 12,
                "subaccount_name": "Label One 1"
            }
        ],
        "total_records": "15"
    }

}
}

+ **Other Optional Parameters**

    + Optional Parameters : limit, offset, subaccount_id
    + Sort Options : sort_by, sort_order
