Associate a token to a voucher
This endpoint allows you to associate a token to a voucher.
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.
Path Parameters
Used to identify the voucher throughout the Spirii system
Used to identify the token throughout the Spirii system
Response
The token has been successfully associated with a voucher.
Used to identify the voucher (not to be confused with token/charge key) throughout the Spirii system.
67890
The date and time when the voucher was created.
"2025-06-03T12:00:00.000Z"
Used to identify the voucher link to customers and tokens.
67890
Used to identify the customer throughout the Spirii system.
67890
Used to identify the id tag (token/charge key) throughout the Spirii system.
67890