iglooX DocsDevelopers

Schema

Cashback Balance Operation

An immutable manual credit/redemption/correction or source-order earning/void/expiration receipt. amount is the absolute total movement, including earning bonuses. Void amounts are actual recovery; invalidation and terminal shortfalls remain in the order evaluation.

  • Models

Overview

object · 18 properties · 17 required

Example {"operation_uuid":"a33e6af3-70e7-44bf-8748-6e03cf7ed280","operation_type":"top_up","customer_uuid":"a33e6af3-6946-40b2-a9a8-3294162abb3f","loyalty_program_uuid":"a33e6af3-6a27-4be2-aef8-964ac2472054","loyalty_program_type":"cashback","loyalty_balance_uuid":"a33e6af3-6ef0-4b4a-996c-ddd83528f7a0","merchant_reference":"cashback-credit-001","outlet_uuid":"a33e6af3-608d-4474-b60b-9adaac15a30a","source_order_uuid":null,"source_order_action":null,"amount":{"amount":123,"currency":"SGD"},"balance_delta":{"amount":123,"currency":"SGD"},"balance_after":{"amount":123,"currency":"SGD"},"balance_expires_at_after":"2026-12-17T03:06:16Z","ledger_entries":[{"uuid":"a33e6af3-6fb5-442f-85d4-1ab402a99fdb","type":"top_up","delta":{"amount":123,"currency":"SGD"},"description":null,"loyalty_program":{"uuid":"a33e6af3-6a27-4be2-aef8-964ac2472054","name":"Everyday cashback","type":"cashback"},"loyalty_program_type":"cashback","loyalty_balance_uuid":"a33e6af3-6ef0-4b4a-996c-ddd83528f7a0","operation_uuid":"a33e6af3-70e7-44bf-8748-6e03cf7ed280","customer_tier_achievement_uuid":null,"created_at":"2026-11-17T03:06:16Z"}],"reverses_operation_uuid":null,"reason":"Service recovery","created_at":"2026-11-17T03:06:16Z"}

Properties

operation_uuid

string Required
Format uuid

operation_type

reference Required

References Cashback Balance Operation Type.

customer_uuid

string Required
Format uuid

loyalty_program_uuid

string Required
Format uuid

loyalty_program_type

string Required

Allowed values

cashback

loyalty_balance_uuid

string Required
Format uuid

merchant_reference

string | null Required

Your reference for this operation. It is case-sensitive and must be unique across the merchant's loyalty operations.

Pattern ^[\x21-\x7E]+$
Min length 1
Max length 255
Nullable Yes

outlet_uuid

string Required

The outlet recorded for this operation. Reversals keep the original operation's outlet.

Format uuid

source_order_uuid

string | null Required
Format uuid
Nullable Yes

source_order_action

string | null Required
Nullable Yes

Allowed values

capturevoidnull

amount

allOf Required

Absolute recorded movement in minor units. Earning, void and source-expiration totals can exceed the per-request monetary input limit.

All of

All of 1

reference

References Money.

All of 2

object
Nested properties
amount
schema
Minimum 1

balance_delta

reference Required

References Money.

balance_after

reference Required

References Money.

balance_expires_at_after

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

ledger_entries

array Required
Min items 1
Array items

Items

reference

References Cashback Balance Ledger Entry.

reverses_operation_uuid

string | null Required

Original receipt for reversals and purchase voids; null on other kinds.

Format uuid
Nullable Yes

reason

string | null

Present on manual credit, credit reversal and redemption reversal; null is allowed on credit. Omitted on redemption, earning, void and expiration.

Min length 1
Max length 10000
Nullable Yes

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: Cashback Balance Operation
type: object
x-tags:
  - Models
description: An immutable manual credit/redemption/correction or source-order earning/void/expiration receipt.
  amount is the absolute total movement, including earning bonuses. Void amounts are actual recovery;
  invalidation and terminal shortfalls remain in the order evaluation.
required:
  - operation_uuid
  - operation_type
  - customer_uuid
  - loyalty_program_uuid
  - loyalty_program_type
  - loyalty_balance_uuid
  - merchant_reference
  - outlet_uuid
  - amount
  - balance_delta
  - balance_after
  - balance_expires_at_after
  - ledger_entries
  - created_at
  - source_order_uuid
  - source_order_action
  - reverses_operation_uuid
properties:
  operation_uuid:
    type: string
    format: uuid
  operation_type:
    $ref: ./CashbackBalanceOperationType.yaml
  customer_uuid:
    type: string
    format: uuid
  loyalty_program_uuid:
    type: string
    format: uuid
  loyalty_program_type:
    type: string
    enum:
      - cashback
  loyalty_balance_uuid:
    type: string
    format: uuid
  merchant_reference:
    type:
      - string
      - "null"
    minLength: 1
    maxLength: 255
    description: Your reference for this operation. It is case-sensitive and must be unique across the merchant's
      loyalty operations.
    pattern: ^[\x21-\x7E]+$
  outlet_uuid:
    type: string
    format: uuid
    description: The outlet recorded for this operation. Reversals keep the original operation's outlet.
  source_order_uuid:
    type:
      - string
      - "null"
    format: uuid
  source_order_action:
    type:
      - string
      - "null"
    enum:
      - capture
      - void
      - null
  amount:
    allOf:
      - $ref: ./Money.yaml
      - type: object
        properties:
          amount:
            minimum: 1
    description: Absolute recorded movement in minor units. Earning, void and source-expiration totals can exceed
      the per-request monetary input limit.
  balance_delta:
    $ref: ./Money.yaml
  balance_after:
    $ref: ./Money.yaml
  balance_expires_at_after:
    type:
      - string
      - "null"
    format: date-time
    pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
  ledger_entries:
    type: array
    minItems: 1
    items:
      $ref: ./CashbackBalanceLedgerEntry.yaml
  reverses_operation_uuid:
    type:
      - string
      - "null"
    format: uuid
    description: Original receipt for reversals and purchase voids; null on other kinds.
  reason:
    type:
      - string
      - "null"
    minLength: 1
    maxLength: 10000
    description: Present on manual credit, credit reversal and redemption reversal; null is allowed on credit.
      Omitted on redemption, earning, void and expiration.
  created_at:
    type: string
    format: date-time
    pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example:
  operation_uuid: a33e6af3-70e7-44bf-8748-6e03cf7ed280
  operation_type: top_up
  customer_uuid: a33e6af3-6946-40b2-a9a8-3294162abb3f
  loyalty_program_uuid: a33e6af3-6a27-4be2-aef8-964ac2472054
  loyalty_program_type: cashback
  loyalty_balance_uuid: a33e6af3-6ef0-4b4a-996c-ddd83528f7a0
  merchant_reference: cashback-credit-001
  outlet_uuid: a33e6af3-608d-4474-b60b-9adaac15a30a
  source_order_uuid: null
  source_order_action: null
  amount:
    amount: 123
    currency: SGD
  balance_delta:
    amount: 123
    currency: SGD
  balance_after:
    amount: 123
    currency: SGD
  balance_expires_at_after: 2026-12-17T03:06:16Z
  ledger_entries:
    - uuid: a33e6af3-6fb5-442f-85d4-1ab402a99fdb
      type: top_up
      delta:
        amount: 123
        currency: SGD
      description: null
      loyalty_program:
        uuid: a33e6af3-6a27-4be2-aef8-964ac2472054
        name: Everyday cashback
        type: cashback
      loyalty_program_type: cashback
      loyalty_balance_uuid: a33e6af3-6ef0-4b4a-996c-ddd83528f7a0
      operation_uuid: a33e6af3-70e7-44bf-8748-6e03cf7ed280
      customer_tier_achievement_uuid: null
      created_at: 2026-11-17T03:06:16Z
  reverses_operation_uuid: null
  reason: Service recovery
  created_at: 2026-11-17T03:06:16Z

Search documentation

Search across this documentation site.