iglooX DocsDevelopers

Schema

Loyalty Program

The settings for a stored-value, voucher, stamp or point loyalty program. Stamp and point programs share quantity_configuration and quantity_cost. Their type distinguishes the displayed mechanic. Only the configuration matching the program type may be supplied.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
uuid
string Required

The loyalty program's unique identifier.

Format uuid
Read only Yes
name
string Required

The name of the loyalty program.

Example Barry's Burgers Wallet
Min length 1
Max length 255
type
string Required

Allowed values

stored_value
currency_code
string Required

The loyalty program's ISO 4217 currency code.

Example SGD
Min length 3
Max length 3
Read only Yes
available_from
string Required

Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.

Format date-time
available_until
string | null Required

Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.

Format date-time
Nullable Yes
description
string | null Required

The customer-facing description for the loyalty program.

Example Use Barry's Burgers wallet to get great value top-up bonuses!
Min length 1
Max length 10000
Nullable Yes
is_archived
boolean Required

Indicates if the loyalty program has been archived.

Read only Yes
outlet_uuids
array Required

The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
customer_tier_uuids
array Required

Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
stored_value_configuration
reference Required

References Stored Value Configuration.

voucher_configuration
null Required
quantity_configuration
null Required
cashback_configuration
null Required
created_at
string Required

The date-time that the loyalty program was first created.

Format date-time
Read only Yes

One of 2

object
Nested properties
uuid
string Required

The loyalty program's unique identifier.

Format uuid
Read only Yes
name
string Required

The name of the loyalty program.

Example Barry's Burgers Wallet
Min length 1
Max length 255
type
string Required

Allowed values

voucher
currency_code
string Required

The loyalty program's ISO 4217 currency code.

Example SGD
Min length 3
Max length 3
Read only Yes
available_from
string Required

Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.

Format date-time
available_until
string | null Required

Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.

Format date-time
Nullable Yes
description
string | null Required

The customer-facing description for the loyalty program.

Example Use Barry's Burgers wallet to get great value top-up bonuses!
Min length 1
Max length 10000
Nullable Yes
is_archived
boolean Required

Indicates if the loyalty program has been archived.

Read only Yes
outlet_uuids
array Required

The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
customer_tier_uuids
array Required

Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
stored_value_configuration
null Required
voucher_configuration
reference Required

References Voucher Configuration.

quantity_configuration
null Required
cashback_configuration
null Required
created_at
string Required

The date-time that the loyalty program was first created.

Format date-time
Read only Yes

One of 3

object
Nested properties
uuid
string Required

The loyalty program's unique identifier.

Format uuid
Read only Yes
name
string Required

The name of the loyalty program.

Example Coffee stamps
Min length 1
Max length 255
type
string Required

Allowed values

stamppoint
currency_code
string Required

The loyalty program's ISO 4217 currency code.

Example SGD
Min length 3
Max length 3
Read only Yes
available_from
string Required

Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.

Format date-time
available_until
string | null Required

Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.

Format date-time
Nullable Yes
description
string | null Required

The customer-facing description for the loyalty program.

Example Use Barry's Burgers wallet to get great value top-up bonuses!
Min length 1
Max length 10000
Nullable Yes
is_archived
boolean Required

Indicates if the loyalty program has been archived.

Read only Yes
outlet_uuids
array Required

The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
customer_tier_uuids
array Required

Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
stored_value_configuration
null Required
voucher_configuration
null Required
quantity_configuration
reference Required

References Quantity Configuration.

cashback_configuration
null Required
created_at
string Required

The date-time that the loyalty program was first created.

Format date-time
Read only Yes

One of 4

object
Nested properties
uuid
string Required

The loyalty program's unique identifier.

Format uuid
Read only Yes
name
string Required

The name of the loyalty program.

Example Everyday cashback
Min length 1
Max length 255
type
string Required

Allowed values

cashback
currency_code
string Required

The loyalty program's ISO 4217 currency code.

Example SGD
Min length 3
Max length 3
Read only Yes
available_from
string Required

Inclusive addition-window start. Purchase earning checks completion time; manual credits and tier gifts check processing time. Existing funds can still be redeemed outside this window.

Format date-time
available_until
string | null Required

Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.

Format date-time
Nullable Yes
description
string | null Required

The customer-facing description for the loyalty program.

Example Use Barry's Burgers wallet to get great value top-up bonuses!
Min length 1
Max length 10000
Nullable Yes
is_archived
boolean Required

Indicates if the loyalty program has been archived.

Read only Yes
outlet_uuids
array Required

Cashback purchase earning checks the source outlet against this list at capture. The current list also restricts spending existing funds. An empty list permits all current and future merchant outlets. Manual credits and tier gifts do not use this earning/spending outlet restriction.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
customer_tier_uuids
array Required

Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.

Max items 100
Unique items Yes
Array items
Items
string
Format uuid
stored_value_configuration
null Required
voucher_configuration
null Required
quantity_configuration
null Required
created_at
string Required

The date-time that the loyalty program was first created.

Format date-time
Read only Yes
cashback_configuration
reference Required

References Cashback Configuration.

Used by

Raw YAML
Download source
title: Loyalty Program
x-tags:
  - Models
description: The settings for a stored-value, voucher, stamp or point loyalty program. Stamp and point
  programs share quantity_configuration and quantity_cost. Their type distinguishes the displayed mechanic.
  Only the configuration matching the program type may be supplied.
oneOf:
  - properties:
      uuid: &a1
        type: string
        format: uuid
        description: The loyalty program's unique identifier.
        readOnly: true
      name: &a2
        type: string
        minLength: 1
        maxLength: 255
        example: Barry's Burgers Wallet
        description: The name of the loyalty program.
      type:
        type: string
        enum:
          - stored_value
      currency_code: &a3
        type: string
        minLength: 3
        maxLength: 3
        example: SGD
        description: The loyalty program's ISO 4217 currency code.
        readOnly: true
      available_from: &a4
        type: string
        format: date-time
        description: Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point
          earning evaluates this window against purchase completion time.
      available_until: &a5
        type:
          - string
          - "null"
        format: date-time
        description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
          existing balances. Must not precede available_from.
      description: &a6
        type:
          - string
          - "null"
        minLength: 1
        maxLength: 10000
        description: The customer-facing description for the loyalty program.
        example: Use Barry's Burgers wallet to get great value top-up bonuses!
      is_archived: &a7
        type: boolean
        description: Indicates if the loyalty program has been archived.
        readOnly: true
      outlet_uuids: &a8
        type: array
        maxItems: 100
        uniqueItems: true
        description: |-
          The current list governs use of existing balances. Stamp and point earning also checks the purchase
          outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty
          list allows all current and future outlets belonging to the merchant.
        items:
          type: string
          format: uuid
      customer_tier_uuids: &a9
        type: array
        maxItems: 100
        uniqueItems: true
        description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
          of existing balances.
        items:
          type: string
          format: uuid
      stored_value_configuration:
        $ref: ./StoredValueConfiguration.yaml
      voucher_configuration:
        type: "null"
      quantity_configuration:
        type: "null"
      cashback_configuration:
        type: "null"
      created_at: &a10
        type: string
        format: date-time
        description: The date-time that the loyalty program was first created.
        readOnly: true
    title: Stored-value program
    type: object
    required:
      - uuid
      - name
      - type
      - currency_code
      - available_from
      - available_until
      - description
      - is_archived
      - outlet_uuids
      - customer_tier_uuids
      - stored_value_configuration
      - voucher_configuration
      - quantity_configuration
      - created_at
      - cashback_configuration
  - properties:
      uuid: *a1
      name: *a2
      type:
        type: string
        enum:
          - voucher
      currency_code: *a3
      available_from: *a4
      available_until: *a5
      description: *a6
      is_archived: *a7
      outlet_uuids: *a8
      customer_tier_uuids: *a9
      stored_value_configuration:
        type: "null"
      voucher_configuration:
        $ref: ./VoucherConfiguration.yaml
      quantity_configuration:
        type: "null"
      cashback_configuration:
        type: "null"
      created_at: *a10
    title: Voucher program
    type: object
    required:
      - uuid
      - name
      - type
      - currency_code
      - available_from
      - available_until
      - description
      - is_archived
      - outlet_uuids
      - customer_tier_uuids
      - stored_value_configuration
      - voucher_configuration
      - quantity_configuration
      - created_at
      - cashback_configuration
  - properties:
      uuid:
        type: string
        format: uuid
        description: The loyalty program's unique identifier.
        readOnly: true
      name:
        type: string
        minLength: 1
        maxLength: 255
        example: Coffee stamps
        description: The name of the loyalty program.
      type:
        type: string
        enum:
          - stamp
          - point
      currency_code:
        type: string
        minLength: 3
        maxLength: 3
        example: SGD
        description: The loyalty program's ISO 4217 currency code.
        readOnly: true
      available_from:
        type: string
        format: date-time
        description: Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point
          earning evaluates this window against purchase completion time.
      available_until:
        type:
          - string
          - "null"
        format: date-time
        description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
          existing balances. Must not precede available_from.
      description:
        type:
          - string
          - "null"
        minLength: 1
        maxLength: 10000
        description: The customer-facing description for the loyalty program.
        example: Use Barry's Burgers wallet to get great value top-up bonuses!
      is_archived:
        type: boolean
        description: Indicates if the loyalty program has been archived.
        readOnly: true
      outlet_uuids:
        type: array
        maxItems: 100
        uniqueItems: true
        description: |-
          The current list governs use of existing balances. Stamp and point earning also checks the purchase
          outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty
          list allows all current and future outlets belonging to the merchant.
        items:
          type: string
          format: uuid
      customer_tier_uuids:
        type: array
        maxItems: 100
        uniqueItems: true
        description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
          of existing balances.
        items:
          type: string
          format: uuid
      stored_value_configuration:
        type: "null"
      voucher_configuration:
        type: "null"
      quantity_configuration:
        $ref: ./QuantityConfiguration.yaml
      cashback_configuration:
        type: "null"
      created_at:
        type: string
        format: date-time
        description: The date-time that the loyalty program was first created.
        readOnly: true
    title: Quantity program
    type: object
    required:
      - uuid
      - name
      - type
      - currency_code
      - available_from
      - available_until
      - description
      - is_archived
      - outlet_uuids
      - customer_tier_uuids
      - stored_value_configuration
      - voucher_configuration
      - quantity_configuration
      - created_at
      - cashback_configuration
  - properties:
      uuid:
        type: string
        format: uuid
        description: The loyalty program's unique identifier.
        readOnly: true
      name:
        type: string
        minLength: 1
        maxLength: 255
        example: Everyday cashback
        description: The name of the loyalty program.
      type:
        type: string
        enum:
          - cashback
      currency_code:
        type: string
        minLength: 3
        maxLength: 3
        example: SGD
        description: The loyalty program's ISO 4217 currency code.
        readOnly: true
      available_from:
        type: string
        format: date-time
        description: Inclusive addition-window start. Purchase earning checks completion time; manual credits and tier
          gifts check processing time. Existing funds can still be redeemed outside this window.
      available_until:
        type:
          - string
          - "null"
        format: date-time
        description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
          existing balances. Must not precede available_from.
      description:
        type:
          - string
          - "null"
        minLength: 1
        maxLength: 10000
        description: The customer-facing description for the loyalty program.
        example: Use Barry's Burgers wallet to get great value top-up bonuses!
      is_archived:
        type: boolean
        description: Indicates if the loyalty program has been archived.
        readOnly: true
      outlet_uuids:
        type: array
        maxItems: 100
        uniqueItems: true
        description: Cashback purchase earning checks the source outlet against this list at capture. The current list
          also restricts spending existing funds. An empty list permits all current and future merchant outlets.
          Manual credits and tier gifts do not use this earning/spending outlet restriction.
        items:
          type: string
          format: uuid
      customer_tier_uuids:
        type: array
        maxItems: 100
        uniqueItems: true
        description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
          of existing balances.
        items:
          type: string
          format: uuid
      stored_value_configuration:
        type: "null"
      voucher_configuration:
        type: "null"
      quantity_configuration:
        type: "null"
      created_at:
        type: string
        format: date-time
        description: The date-time that the loyalty program was first created.
        readOnly: true
      cashback_configuration:
        $ref: ./CashbackConfiguration.yaml
    title: Cashback program
    type: object
    required:
      - uuid
      - name
      - type
      - currency_code
      - available_from
      - available_until
      - description
      - is_archived
      - outlet_uuids
      - customer_tier_uuids
      - stored_value_configuration
      - voucher_configuration
      - quantity_configuration
      - created_at
      - cashback_configuration

Search documentation

Search across this documentation site.