# Download employee hours as JSON

**GET** `https://api.zoined.com/v2/download/employeeHours.json?limit=1000&offset=0&start=2017-01-01&end=2017-01-31`

Endpoint: GET /v2/download/employeeHours.json
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer token

## Query parameters:

  - `limit` (number)
    How many entries to return

  - `offset` (number)
    Which offset to return data from

  - `start` (string)
    Return data starting from given date

  - `end` (string)
    Return data ending to given date

## Response 200:

  - `200` (unknown)
    Request has been processed successfully.
**Headers**
- `Content-Type: application/json`

## Response 200 fields (application/json):

  - `organisation_id` (string, required)
    Organisation / Store ID
    Example: 540

  - `department_id` (string)
    Store department ID
    Example: 54021

  - `salesperson_id` (string)
    Sales person ID
    Example: 5402101

  - `employee_type` (string)
    Employee Type
    Example: Permie

  - `absence_code` (string)
    Code for the absense if this entry describes absence.
    Example: BREAK

  - `date` (string, required)
    Date of entry (yyyy-mm-dd)
    Example: 2016-01-01

  - `time` (string, required)
    Time of entry (HH:mm:ss)
    Example: 15:00:00

  - `scheduled` (boolean)
    Whether this is scheduled or punched shift, default is false
    Example: false

  - `productive` (boolean)
    Whether this is productive or administrative work, default is true
    Example: true

  - `hours` (number, required)
    Number of hours to record for this specific time
    Example: 8

  - `staff_cost` (number)
    Salary cost associated with this hour
    Example: 500

  - `breaks` (number)
    Total hours of breaks
    Example: 0.5

  - `breaks_cost` (number)
    Total salary cost associated for paid breaks
    Example: 40

  - `currency` (string)
    Currency for the purchase price as ISO 4217 currency code. Required if multiple currencies are used.
    Example: EUR

  - `custom_field_1` (string)
    Field that can be used for custom dimensions
    Example: XYZ

  - `custom_field_2` (string)
    Field that can be used for custom dimensions
    Example: XYZ

  - `custom_field_3` (string)
    Field that can be used for custom dimensions
    Example: XYZ

  - `custom_field_4` (string)
    Field that can be used for custom dimensions
    Example: XYZ

  - `custom_field_5` (string)
    Field that can be used for custom dimensions
    Example: XYZ

## Response 400:

  - `400` (unknown)
    Invalid or malformed request.
**Headers**
- `Content-Type: application/json`

## Response 400 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 401:

  - `401` (unknown)
    Missing or invalid authorization token in header
**Headers**
- `Content-Type: application/json`

## Response 401 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Unauthorized

## Response 500:

  - `500` (unknown)
    Internal error or exception
**Headers**
- `Content-Type: application/json`

## Response 500 fields (application/json):

  - `status` (string, required)
    Status of the operation OK / Not OK
    Example: Not OK

  - `msg` (string, required)
    Message describing result of operation
    Example: Reason for error

## Response 200 examples:

  - `response` (unknown)

## Response 400 examples:

  - `response` (unknown)

## Response 401 examples:

  - `response` (unknown)

## Response 500 examples:

  - `response` (unknown)

