# Group Datawarehouse
Group of all datawarehouse-related resources.

## Imprints 

The Imprints resource is used to return detailed information about the imprints for a vendor_id.

## Index with vendor_id [/datawarehouse/imprints/index{?limit,label_ids}]

### Index [GET]

+ Parameters

    + limit (optional, number, `5`)
    + label_ids (optional, number, `7123`)
    
+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "localhost",
      "httpStatusCode": 200
    },
    "request": "imprints/index?params=datawarehouse&imprints&index&json&96896a6a3740a50f5817ae6ee2500638&5",
    "response": {
      "imprints": [
        {
          "imprint_id": 57220,
          "imprint": "",
          "label_id": 7123
        },
        {
          "imprint_id": 54330,
          "imprint": "121ST STREET RECORDS",
          "label_id": 7123
        },
        {
          "imprint_id": 10250,
          "imprint": "1989     MICHELE     AUDIO     CORP",
          "label_id": 7123
        },
        {
          "imprint_id": 28003,
          "imprint": "2009 DD",
          "label_id": 7123
        },
        {
          "imprint_id": 17388,
          "imprint": "2011 DIANA RECORDS",
          "label_id": 7123
        }
      ],
      "total_records": "74"
    }
  }
}


## Index with sort params [/datawarehouse/imprints/index{?limit,label_ids,sort_by,sort_order}]

### Index [GET]

+ Parameters

    + limit (optional, number, `5`)
    + label_ids (optional, number, `7123`)
    + sort_by (optional, varchar, `imprint_id`)
    + sort_order (optional, varchar, `desc`)

+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "192.168.0.57",
      "httpStatusCode": 200
    },
    "request": "imprints/index?params=datawarehouse&imprints&index&json&5&7123&imprint_id&desc",
    "response": {
      "imprints": [
        {
          "imprint_id": 58476,
          "imprint": "2014 ARKEPR",
          "label_id": 7123
        },
        {
          "imprint_id": 58457,
          "imprint": "MY IMPRINT",
          "label_id": 7123
        },
        {
          "imprint_id": 58444,
          "imprint": "BAHAR PRODUCTION",
          "label_id": 7123
        },
        {
          "imprint_id": 58323,
          "imprint": "ARKEPR",
          "label_id": 7123
        },
        {
          "imprint_id": 58089,
          "imprint": "2013 M N",
          "label_id": 7123
        }
      ],
      "total_records": "74"
    }
  }
}



## Index with search params [/datawarehouse/imprints/index{?limit,label_ids,search_by,search_value}]

### Index [GET]

+ Parameters

    + limit (required, number, `5`)
    + label_ids (optional, number, `7123`)
    + search_by (optional, varchar, `imprint`)
    + search_value (optional, varchar, `test`)

+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "localhost",
      "httpStatusCode": 200
    },
    "request": "imprints/index?params=datawarehouse&imprints&index&json&96896a6a3740a50f5817ae6ee2500638&imprint&test&5",
    "response": {
      "imprints": [
        {
          "imprint_id": 54269,
          "imprint": "2013 TEST",
          "label_id": 7123
        },
        {
          "imprint_id": 25028,
          "imprint": "TEST",
          "label_id": 7123
        },
        {
          "imprint_id": 57595,
          "imprint": "TEST 123",
          "label_id": 7123
        },
        {
          "imprint_id": 5225,
          "imprint": "TEST IMPRINT",
          "label_id": 7123
        },
        {
          "imprint_id": 33004,
          "imprint": "TEST RELEASE IMPRINT",
          "label_id": 7123
        }
      ],
      "total_records": "6"
    }
  }
}




+ **Optional Parameters**

    + label_ids
    + subaccount_ids
    + search_by
    + search_value
    + limit
    + offset
    + sort_by - column to order by 
    + sort_order - direction in which to order the data