HomeGuidesAPI ReferenceChangelog
Log In
API Reference

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
number
required

Used to identify the voucher throughout the Spirii system

number
required

Used to identify the token throughout the Spirii system

Responses

404

The voucher with the provided ID was not found.

Token for the given ID has not been found, or Voucher for the given ID has not been found.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json