Schema
Voucher Balance
Identical vouchers issued together to one customer. Each redemption uses one voucher. Their benefit, currency and validity are saved when issued. Redemption conditions follow the current program; archiving it blocks their use.
Overview
Properties
uuid
uuid
type
Allowed values
vouchercustomer_uuid
uuid
loyalty_program
The program's current name, outlet restrictions, minimum eligible spend and stackability. Its benefit calculation applies to new issuance; use this balance's terms for its issued benefit.
References Loyalty Program.
currency_code
The currency saved when these vouchers were issued, including uncapped percentage benefits.
SGD
3
3
timezone
The merchant's current IANA time zone for displaying dates. Changing it does not change the voucher's actual start or expiry.
Asia/Singapore
balance
The recorded voucher quantity, including vouchers that cannot currently be used.
0
available_balance
The voucher quantity when state is available, otherwise zero.
0
terms
References Voucher Terms.
expires_at
date-time
2026-11-26T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
state
Zero and negative balances report insufficient_balance before any expiry or program restriction.
Allowed values
availableinsufficient_balanceexpirednot_yet_usablearchivedis_usable
True when state is available. This describes baseline balance availability; redemption still checks the PIN, outlet and any conditions that depend on the supplied saving or spend.
created_at
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
usable_from
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
Used by
Raw YAML
title: Voucher Balance
type: object
x-tags:
- Models
description: Identical vouchers issued together to one customer. Each redemption uses one voucher. Their
benefit, currency and validity are saved when issued. Redemption conditions follow the current program;
archiving it blocks their use.
required:
- uuid
- type
- customer_uuid
- loyalty_program
- currency_code
- timezone
- balance
- available_balance
- terms
- expires_at
- state
- is_usable
- created_at
- usable_from
properties:
uuid:
type: string
format: uuid
type:
type: string
enum:
- voucher
customer_uuid:
type: string
format: uuid
loyalty_program:
$ref: ./LoyaltyProgram.yaml
description: The program's current name, outlet restrictions, minimum eligible spend and stackability. Its
benefit calculation applies to new issuance; use this balance's terms for its issued benefit.
currency_code:
type: string
minLength: 3
maxLength: 3
example: SGD
description: The currency saved when these vouchers were issued, including uncapped percentage benefits.
timezone:
type: string
example: Asia/Singapore
description: The merchant's current IANA time zone for displaying dates. Changing it does not change the
voucher's actual start or expiry.
balance:
type: integer
minimum: 0
description: The recorded voucher quantity, including vouchers that cannot currently be used.
available_balance:
type: integer
minimum: 0
description: The voucher quantity when state is available, otherwise zero.
terms:
$ref: ./VoucherTerms.yaml
expires_at: &a2
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example: 2026-11-26T00:00:00Z
state:
description: Zero and negative balances report insufficient_balance before any expiry or program restriction.
type: string
enum:
- available
- insufficient_balance
- expired
- not_yet_usable
- archived
is_usable:
type: boolean
description: True when state is available. This describes baseline balance availability; redemption still
checks the PIN, outlet and any conditions that depend on the supplied saving or spend.
created_at:
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example: 2026-10-27T00:00:00Z
usable_from:
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example: 2026-10-27T00:00:00Z