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

## 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.net/flipdish/apis/flipdish-open-api-v1-0.md) · [All operations](https://skmtc.net/flipdish/apis/flipdish-open-api-v1-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flipdish/flipdish-open-api-v1-0/revisions/a72c0465da74/schema)
