Create a new voucher
This endpoint allows you to create a voucher(s).
A Voucher belongs to a Voucher Group and is uniquely identified by a code. It can be linked to multiple tokens (idtags) and appUsers.
When a driver starts a session at a location, the system checks:
If the driver’s token is linked to a voucher, or
If the driver’s appUser (linked to that token) is linked to a voucher.
If either is true and the voucher’s group is associated with the location, the voucher is applied — potentially affecting pricing or granting access.
Body
The voucher to be created.
Unique code used to redeem the voucher.
"TT-67890"
Id belonging to a voucher group this voucher is associated with.
67890
Maximum number of users allowed to redeem this voucher.
x <= 65535100
Date after which the voucher is unusable.
"2025-06-03T12:00:00.000Z"
Response
The voucher has been successfully created.
Used to identify the voucher throughout the Spirii system.
67890
Unique code used to redeem the voucher.
"TT-67890"
Id belonging to a voucher group this voucher is associated with.
67890
Maximum number of users allowed to redeem this voucher.
x <= 65535100
Date after which the voucher is unusable.
"2025-06-03T12:00:00.000Z"
The date and time when the voucher was created.
"2025-06-03T12:00:00.000Z"
The date and time when the voucher was last updated.
"2025-06-03T12:00:00.000Z"
The date and time when the voucher was deleted.
"2025-06-03T12:00:00.000Z"