HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Update an existing voucher

This endpoint allows you to update an existing 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

Body Params

The voucher data to update.

string

Unique code used to redeem the voucher.

number | null
≤ 65535

Maximum number of users allowed to redeem this voucher.

date-time | null

Date after which the voucher is unusable.

Responses

404

The voucher with the provided ID was not found.

The voucher group ID associated with the voucher was not found.

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