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

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