---
title: "POST /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified"
method: POST
path: "/api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified"
tags: ["Vouchers"]
---

# POST /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified

`POST /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified`

## Request

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

## Path parameters

- `appId` string, required
- `voucherId` integer, required

## Request body

- SetVoucherValidityPeriodsSimplifiedRequest: Set the validity periods of a voucher.
  - `DaysOfWeek` string[]: Days of week when the voucher is valid
  - `StartTime` string: Start time of the day when the voucher is valid
  - `EndTime` string: End time of the day when the voucher is valid. If the end time is before the start time, the end time is assumed to be the next day.

## Response `200`

OK

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