Flipdish · Schema
SetVoucherValidityPeriodsSimplifiedRequest
Set the validity periods of a voucher.
RestaurantOnline OrderingMobile AppsPoint of SaleOrdersMenuPaymentsWebhooks
Properties
| Name | Type | Description |
|---|---|---|
| DaysOfWeek | array | 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. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/flipdish/refs/heads/main/json-schema/marketing-set-voucher-validity-periods-simplified-request-schema.json",
"title": "SetVoucherValidityPeriodsSimplifiedRequest",
"description": "Set the validity periods of a voucher.",
"type": "object",
"properties": {
"DaysOfWeek": {
"description": "Days of week when the voucher is valid",
"type": "array",
"items": {
"enum": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"type": "string"
},
"example": [
"Sunday"
]
},
"StartTime": {
"description": "Start time of the day when the voucher is valid",
"type": "string",
"example": "2026-06-02T12:00:00Z"
},
"EndTime": {
"description": "End time of the day when the voucher is valid.\r\nIf the end time is before the start time, the end time is assumed to be the next day.",
"type": "string",
"example": "2026-06-02T12:00:00Z"
}
}
}