# Download sales summaries as JSON

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

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

  - `sales_date` (string, required)
    Sales date (yyyy-mm-dd)
    Example: 2016-01-01

  - `sales_time` (string)
    Sales time (HH:mm:ss)
    Example: 15:00:00

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

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

  - `salesperson_id` (string)
    Sales person ID
    Example: 15:00:00

  - `customer_id` (string)
    Customer ID
    Example: 1234

  - `supplier_id` (string)
    Supplier ID
    Example: 12

  - `campaign_id` (string)
    Campaign ID
    Example: 123

  - `rebate_code_id` (string)
    Rebate Code ID
    Example: 3313V

  - `sales_value` (number)
    Total sales amount including tax
    Example: 2000

  - `sales_value_wo_vat` (number)
    Total sales amount without tax
    Example: 1600

  - `sales_currency` (string)
    Sales currency as ISO 4217 currency code. Required if multiple currencies are used.
    Example: EUR

  - `rebate` (number)
    Amount of rebate given including tax
    Example: 0

  - `rebate_wo_vat` (number)
    Amount of rebate given without tax
    Example: 0

  - `purchase_price` (number)
    Total purchase price including tax
    Example: 500

  - `purchase_price_wo_vat` (number)
    Total purchase price without tax
    Example: 400

  - `product_quantity` (number)
    Sold quantity
    Example: 4

  - `number_of_transactions` (number)
    Number of receipts
    Example: 2

  - `custom_field_1` (string)
    User defined custom field 1
    Example: extra info

  - `custom_field_2` (string)
    User defined custom field 2
    Example: extra info

  - `custom_field_3` (string)
    User defined custom field 3
    Example: extra info

  - `custom_field_4` (string)
    User defined custom field 4
    Example: extra info

  - `custom_field_5` (string)
    User defined custom field 5
    Example: extra info

  - `custom_field_6` (string)
    User defined custom field 6
    Example: extra info

  - `custom_field_7` (string)
    User defined custom field 7
    Example: extra info

  - `custom_field_8` (string)
    User defined custom field 8
    Example: extra info

  - `custom_field_9` (string)
    User defined custom field 9
    Example: extra info

  - `custom_field_10` (string)
    User defined custom field 10
    Example: extra info

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

