# Surveys Result CSV

Endpoint: GET /api/webhooks/surveys/result-csv
Version: 1.0
Security: key

## Security:

  - `key` (unknown)
    apiKey in query key

## Query parameters:

  - `date_from` (string, required)
    Returns surveys for dates greater than or equal to the passed value (ISO-8601).

  - `date_to` (string, required)
    Returns surveys for dates less than or equal to the passed value (ISO-8601).

  - `sub_branding_id` (integer)
    Returns surveys belonging to the passed sub-branding.

  - `sub_branding_id_2` (integer)
    Sub-branding can be passed multiple times. In this case, all related surveys will be returned.

## Response 200:

  - `200` (unknown)
    200

## Response 400:

  - `400` (unknown)
    400

## Response 400 fields (application/json):

  - `detail` (string)
    Example: There is no a customer survey related with merchants assigned to this API key.

  - `errors` (object)

  - `errors.non_field_errors` (array)

## Response 200 examples:

  - `Result` (unknown)

## Response 400 examples:

  - `No Survey for API Key` (unknown)

  - `Result` (unknown)

  - `Sub Brand Unavailable` (unknown)

  - `No Survey for Sub Brand` (unknown)

  - `Sub Brands Have Same Survey` (unknown)

