iglooX DocsDevelopers

Schema

Stored Value Balance

A customer's stored-value balance for one loyalty program. The amounts and usability reflect the time of the request.

  • Models

Overview

object · 13 properties · 13 required

Properties

uuid

string Required
Format uuid

type

string Required

Allowed values

stored_value

customer_uuid

string Required
Format uuid

loyalty_program

reference Required

The program's current name, description, outlet restrictions and configuration.

References Loyalty Program.

currency_code

string Required
Example SGD
Min length 3
Max length 3

timezone

string Required

The merchant's IANA time zone.

Example Asia/Singapore

balance

reference Required

The recorded balance. It can include value that has expired but has not yet been cleared.

References Money.

available_balance

reference Required

The amount currently available for redemption, or zero unless state is available. Individual redemptions must still meet the program's minimum amount.

References Money.

usable_from

string Required

When the balance was created. Later top-ups do not change this date.

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

expires_at

string | null Required
Format date-time
Pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
Nullable Yes

state

string Required

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

Allowed values

availableexpiredinsufficient_balancearchivedminimum_redemption_not_met

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
Pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$

Used by

Raw YAML
Download source
title: Stored Value Balance
type: object
x-tags:
  - Models
description: A customer's stored-value balance for one loyalty program. The amounts and usability reflect the
  time of the request.
required:
  - uuid
  - type
  - customer_uuid
  - loyalty_program
  - currency_code
  - timezone
  - balance
  - available_balance
  - usable_from
  - expires_at
  - state
  - is_usable
  - created_at
properties:
  uuid:
    type: string
    format: uuid
  type:
    type: string
    enum:
      - stored_value
  customer_uuid:
    type: string
    format: uuid
  loyalty_program:
    $ref: ./LoyaltyProgram.yaml
    description: The program's current name, description, outlet restrictions and configuration.
  currency_code:
    type: string
    minLength: 3
    maxLength: 3
    example: SGD
  timezone:
    type: string
    example: Asia/Singapore
    description: The merchant's IANA time zone.
  balance:
    $ref: ./Money.yaml
    description: The recorded balance. It can include value that has expired but has not yet been cleared.
  available_balance:
    $ref: ./Money.yaml
    description: The amount currently available for redemption, or zero unless state is available. Individual
      redemptions must still meet the program's minimum amount.
  usable_from:
    type: string
    format: date-time
    pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
    description: When the balance was created. Later top-ups do not change this date.
    example: 2026-10-27T00:00:00Z
  expires_at:
    type:
      - string
      - "null"
    format: date-time
    pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
  state:
    description: Zero and negative balances report insufficient_balance before any expiry or program restriction.
    type: string
    enum:
      - available
      - expired
      - insufficient_balance
      - archived
      - minimum_redemption_not_met
  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$

Search documentation

Search across this documentation site.