PATCH
/
v1
/
service
/
voucher
/
{voucherId}

Path Parameters

voucherId
string
required

The unique identifier of the voucher to update.

Body

application/json
expires_at
string

The new expiration date of the voucher in ISO 8601 format. If provided, this will extend or shorten the voucher's validity period.

metadata
object

Additional metadata or properties that can be updated. This is a flexible field to allow for future extensions without changing the API structure.

status
enum<string>

The new status of the voucher. This allows for manual state transitions, e.g., cancelling a voucher.

Available options:
ACTIVE,
PARTIALLY_REDEEMED,
FULLY_REDEEMED,
EXPIRED,
CANCELLED

Response

200 - application/json
expires_at
string
required

The expiration date of the voucher in ISO 8601 format.

funding_source_account
string
required

The account ID from which funds were sourced to back the voucher.

provider_name
string
required

The name of the voucher provider or issuing system.

status
enum<string>
required

The current status of the voucher.

Available options:
ACTIVE,
PARTIALLY_REDEEMED,
FULLY_REDEEMED,
EXPIRED,
CANCELLED
value
object
required

The value of the voucher.

voucher_id
string
required

Unique identifier for the voucher.