iglooX DocsDevelopers

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.

  • Models

Overview

object · 14 properties · 14 required

Properties

uuid

string Required
Format uuid

type

string Required

Allowed values

voucher

customer_uuid

string Required
Format uuid

loyalty_program

reference Required

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

string Required

The currency saved when these vouchers were issued, including uncapped percentage benefits.

Example SGD
Min length 3
Max length 3

timezone

string Required

The merchant's current IANA time zone for displaying dates. Changing it does not change the voucher's actual start or expiry.

Example Asia/Singapore

balance

integer Required

The recorded voucher quantity, including vouchers that cannot currently be used.

Minimum 0

available_balance

integer Required

The voucher quantity when state is available, otherwise zero.

Minimum 0

terms

reference Required

References Voucher Terms.

expires_at

string Required
Format date-time
Example 2026-11-26T00:00:00Z
Pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$

state

string Required

Zero and negative balances report insufficient_balance before any expiry or program restriction.

Allowed values

availableinsufficient_balanceexpirednot_yet_usablearchived

is_usable

boolean Required

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

string Required
Format date-time
Example 2026-10-27T00:00:00Z
Pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$

usable_from

string Required
Format date-time
Example 2026-10-27T00:00:00Z
Pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$

Used by

Raw YAML
Download source
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

Search documentation

Search across this documentation site.