iglooX DocsDevelopers

Schema

Voucher Balance Operation

A receipt for issuing, redeeming, revoking or reversing vouchers. balance_after is the remaining quantity when the operation completed. Redemption amounts record the monetary saving separately.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
operation_uuid
string Required
Format uuid
operation_type
string Required

Allowed values

issuance
customer_uuid
string Required
Format uuid
loyalty_program_uuid
string Required
Format uuid
loyalty_program_type
string Required

Allowed values

voucher
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
balance_after
integer Required
Minimum 0
balance_expires_at_after
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$
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$
source_exchange_operation_uuid
string | null Required

Funding quantity exchange, or null for direct issuance. Exchange rewards have quantity one and their own primary voucher-balance receipt; the request identity and merchant reference belong to the funding exchange.

Format uuid
Nullable Yes
quantity
integer Required
Minimum 1
Maximum 100
reason
string | null Required
Min length 1
Max length 10000
Nullable Yes
balance_delta
integer Required
Minimum 1
Maximum 100

One of 2

object
Nested properties
operation_uuid
string Required
Format uuid
operation_type
string Required

Allowed values

revocation
customer_uuid
string Required
Format uuid
loyalty_program_uuid
string Required
Format uuid
loyalty_program_type
string Required

Allowed values

voucher
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
balance_after
integer Required
Minimum 0
balance_expires_at_after
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$
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$
quantity
integer Required
Minimum 1
reason
string Required
Min length 1
Max length 10000
balance_delta
integer Required
Maximum -1

One of 3

object
Nested properties
operation_uuid
string Required
Format uuid
operation_type
string Required

Allowed values

redemption
customer_uuid
string Required
Format uuid
loyalty_program_uuid
string Required
Format uuid
loyalty_program_type
string Required

Allowed values

voucher
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
balance_after
integer Required
Minimum 0
balance_expires_at_after
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$
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$
balance_delta
integer Required

Allowed values

-1
outlet_uuid
string Required

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

Format uuid
amount
reference Required

The saving recorded for the redemption. It stays positive on a reversal.

References Positive Money.

eligible_spend
reference Required

References Positive Money.

One of 4

object
Nested properties
operation_uuid
string Required
Format uuid
operation_type
string Required

Allowed values

redemption_reversal
customer_uuid
string Required
Format uuid
loyalty_program_uuid
string Required
Format uuid
loyalty_program_type
string Required

Allowed values

voucher
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
balance_after
integer Required
Minimum 0
balance_expires_at_after
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$
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$
balance_delta
integer Required

Allowed values

1
outlet_uuid
string Required

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

Format uuid
amount
reference Required

The saving recorded for the redemption. It stays positive on a reversal.

References Positive Money.

eligible_spend
reference Required

References Positive Money.

reverses_operation_uuid
string Required
Format uuid
reason
string Required
Min length 1
Max length 10000

Used by

Raw YAML
Download source
title: Voucher Balance Operation
x-tags:
  - Models
description: A receipt for issuing, redeeming, revoking or reversing vouchers. balance_after is the remaining
  quantity when the operation completed. Redemption amounts record the monetary saving separately.
oneOf:
  - title: Issuance
    type: object
    required:
      - operation_uuid
      - operation_type
      - customer_uuid
      - loyalty_program_uuid
      - loyalty_program_type
      - loyalty_balance_uuid
      - merchant_reference
      - outlet_uuid
      - balance_after
      - balance_expires_at_after
      - created_at
      - source_exchange_operation_uuid
      - quantity
      - reason
      - balance_delta
    properties:
      operation_uuid: &a1
        type: string
        format: uuid
      operation_type:
        type: string
        enum:
          - issuance
      customer_uuid: &a2
        type: string
        format: uuid
      loyalty_program_uuid: &a3
        type: string
        format: uuid
      loyalty_program_type: &a4
        type: string
        enum:
          - voucher
      loyalty_balance_uuid: &a5
        type: string
        format: uuid
      merchant_reference: &a19
        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: &operationOutlet
        type: string
        format: uuid
        description: The outlet recorded for this operation. Reversals keep the original operation's outlet.
      balance_after: &a20
        type: integer
        minimum: 0
      balance_expires_at_after: &a21
        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
      created_at: &a22
        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
      source_exchange_operation_uuid:
        type: [string, 'null']
        format: uuid
        description: Funding quantity exchange, or null for direct issuance. Exchange rewards have quantity one and their own primary voucher-balance receipt; the request identity and merchant reference belong to the funding exchange.
      quantity:
        type: integer
        minimum: 1
        maximum: 100
      reason:
        type:
          - string
          - "null"
        minLength: 1
        maxLength: 10000
      balance_delta:
        type: integer
        minimum: 1
        maximum: 100
  - title: Revocation
    type: object
    required:
      - operation_uuid
      - operation_type
      - customer_uuid
      - loyalty_program_uuid
      - loyalty_program_type
      - loyalty_balance_uuid
      - merchant_reference
      - outlet_uuid
      - balance_after
      - balance_expires_at_after
      - created_at
      - quantity
      - reason
      - balance_delta
    properties:
      operation_uuid: *a1
      operation_type:
        type: string
        enum:
          - revocation
      customer_uuid: *a2
      loyalty_program_uuid: *a3
      loyalty_program_type: *a4
      loyalty_balance_uuid: *a5
      merchant_reference: *a19
      outlet_uuid: *operationOutlet
      balance_after: *a20
      balance_expires_at_after: *a21
      created_at: *a22
      quantity:
        type: integer
        minimum: 1
      reason:
        type: string
        minLength: 1
        maxLength: 10000
      balance_delta:
        type: integer
        maximum: -1
  - title: Redemption
    type: object
    required:
      - operation_uuid
      - operation_type
      - customer_uuid
      - loyalty_program_uuid
      - loyalty_program_type
      - loyalty_balance_uuid
      - merchant_reference
      - balance_after
      - balance_expires_at_after
      - created_at
      - balance_delta
      - outlet_uuid
      - amount
      - eligible_spend
    properties:
      operation_uuid: *a1
      operation_type:
        type: string
        enum:
          - redemption
      customer_uuid: *a2
      loyalty_program_uuid: *a3
      loyalty_program_type: *a4
      loyalty_balance_uuid: *a5
      merchant_reference: *a19
      balance_after: *a20
      balance_expires_at_after: *a21
      created_at: *a22
      balance_delta:
        type: integer
        enum:
          - -1
      outlet_uuid: *operationOutlet
      amount: &a25
        $ref: ./PositiveMoney.yaml
        description: The saving recorded for the redemption. It stays positive on a reversal.
      eligible_spend: &a26
        $ref: ./PositiveMoney.yaml
  - title: Redemption reversal
    type: object
    required:
      - operation_uuid
      - operation_type
      - customer_uuid
      - loyalty_program_uuid
      - loyalty_program_type
      - loyalty_balance_uuid
      - merchant_reference
      - balance_after
      - balance_expires_at_after
      - created_at
      - balance_delta
      - outlet_uuid
      - amount
      - eligible_spend
      - reverses_operation_uuid
      - reason
    properties:
      operation_uuid: *a1
      operation_type:
        type: string
        enum:
          - redemption_reversal
      customer_uuid: *a2
      loyalty_program_uuid: *a3
      loyalty_program_type: *a4
      loyalty_balance_uuid: *a5
      merchant_reference: *a19
      balance_after: *a20
      balance_expires_at_after: *a21
      created_at: *a22
      balance_delta:
        type: integer
        enum:
          - 1
      outlet_uuid: *operationOutlet
      amount: *a25
      eligible_spend: *a26
      reverses_operation_uuid:
        type: string
        format: uuid
      reason:
        type: string
        minLength: 1
        maxLength: 10000

Search documentation

Search across this documentation site.