# Download sales persons as JSON

**GET** `https://api.zoined.com/v2/download/salesPersons.json?limit=1000&offset=0&salesperson_id=123k`

Endpoint: GET /v2/download/salesPersons.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

  - `salesperson_id` (string)
    Returns data for sales person based on the given id

## Response 200:

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

## Response 200 fields (application/json):

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

  - `salesperson_name` (string)
    Sales person name
    Example: John Smith

  - `salesperson_email` (string)
    Sales person email
    Example: john.smith@store.store

  - `salesperson_phone` (string)
    Sales person phone number
    Example: +35811111111

  - `employment_start` (string)
    Employment start date
    Example: 2020-01-01

  - `employment_end` (string)
    Employment end date
    Example: 2020-05-31

  - `custom_field_1` (string)
    Custom Field 1
    Example: Project worker

  - `custom_field_2` (string)
    Custom Field 2
    Example: Project worker

  - `custom_field_3` (string)
    Custom Field 3
    Example: Project worker

  - `custom_field_4` (string)
    Custom Field 4
    Example: Project worker

  - `custom_field_5` (string)
    Custom Field 5
    Example: Project worker

  - `custom_metric_1` (number)
    Custom metric 1
    Example: 1

  - `custom_metric_2` (number)
    Custom metric 2
    Example: 100

  - `custom_metric_3` (number)
    Custom metric 3
    Example: 2.2

  - `custom_metric_4` (number)
    Custom metric 4
    Example: 1.05

  - `custom_metric_5` (number)
    Custom metric 5
    Example: 10000

## 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)

