Properties
| Name | Type | Description |
|---|---|---|
| VoucherId | string | Unique identifier of [Voucher](#voucher) the code belongs to. |
| Value | string | Value of voucher code used by customers. |
| ValidityStartUtc | string | If specified, marks the beginning of interval in which the code can be used. |
| ValidityEndUtc | string | If specified, marks the end of interval in which the code can be used. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/VoucherCodeAddParameters",
"title": "Voucher code parameters",
"required": [
"Value",
"VoucherId"
],
"type": "object",
"properties": {
"VoucherId": {
"type": "string",
"description": "Unique identifier of [Voucher](#voucher) the code belongs to.",
"format": "uuid"
},
"Value": {
"maxLength": 128,
"minLength": 1,
"type": "string",
"description": "Value of voucher code used by customers."
},
"ValidityStartUtc": {
"type": "string",
"description": "If specified, marks the beginning of interval in which the code can be used.",
"format": "date-time",
"nullable": true
},
"ValidityEndUtc": {
"type": "string",
"description": "If specified, marks the end of interval in which the code can be used.",
"format": "date-time",
"nullable": true
}
},
"additionalProperties": false,
"x-schema-id": "VoucherCodeAddParameters"
}