Voucher: Add creation date (Z#23202621)

This commit is contained in:
Raphael Michel
2025-08-08 11:19:39 +02:00
parent b4264c0ae7
commit 991271a87c
5 changed files with 54 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ The voucher resource contains the following public fields:
Field Type Description
===================================== ========================== =======================================================
id integer Internal ID of the voucher
created datetime The creation date of the voucher. For vouchers created before pretix 2025.7.0, this is guessed retroactively and might not be accurate.
code string The voucher code that is required to redeem the voucher
max_usages integer The maximum number of times this voucher can be
redeemed (default: 1).
@@ -84,7 +85,7 @@ Endpoints
"results": [
{
"id": 1,
"code": "43K6LKM37FBVR2YG",
"created": "2020-09-18T14:17:40.971519Z",
"max_usages": 1,
"redeemed": 0,
"valid_until": null,
@@ -156,6 +157,7 @@ Endpoints
{
"id": 1,
"created": "2020-09-18T14:17:40.971519Z",
"code": "43K6LKM37FBVR2YG",
"max_usages": 1,
"redeemed": 0,
@@ -228,6 +230,7 @@ Endpoints
{
"id": 1,
"created": "2020-09-18T14:17:40.971519Z",
"code": "43K6LKM37FBVR2YG",
"max_usages": 1,
"redeemed": 0,
@@ -321,6 +324,7 @@ Endpoints
[
{
"id": 1,
"created": "2020-09-18T14:17:40.971519Z",
"code": "43K6LKM37FBVR2YG",
}, …
@@ -367,6 +371,7 @@ Endpoints
{
"id": 1,
"created": "2020-09-18T14:17:40.971519Z",
"code": "43K6LKM37FBVR2YG",
"max_usages": 1,
"redeemed": 0,