---
title: "GET /api/v1.0/vouchers/stats/{voucherId}"
method: GET
path: "/api/v1.0/vouchers/stats/{voucherId}"
tags: ["Vouchers"]
---

# GET /api/v1.0/vouchers/stats/{voucherId}

`GET /api/v1.0/vouchers/stats/{voucherId}`

## Request

- Base URL: `https://api.flipdish.co`
- URL: `https://api.flipdish.co/api/v1.0/vouchers/stats/{voucherId}`
- Auth: OAuth 2 (implicit, authorization URL `https://api.flipdish.co/identity/connect/authorize`, scopes: `api`)

## Path parameters

- `voucherId` integer, required

## Query parameters

- `aggregateDataBy` 'Daily' | 'Weekly' | 'Monthly', required
- `dataPointLimit` integer

## Response `200`

OK

- RestApiArrayResultVoucherDataPoint: Rest api array result
  - `Data` VoucherDataPoint[], required: Generic data object.
    - `PeriodStart` string, date-time: Date from which the data point starts
    - `PeriodLengthInDays` integer: The length in days that this data point covers
    - `Value` integer: The value of this data point

## Other responses

- `400`: BadRequest
- `401`: Unauthorized
- `403`: Successful authentication, but authorization has been denied for this request.
- `404`: NotFound

---

[API](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0.md) · [All operations](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0/llms.txt) · [OpenAPI document](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0/revisions/4d8c2b9e1c13?raw)
