iglooX DocsDevelopers

Schema

Quantity Configuration

Saved unit earning terms, purchase bonuses, voucher exchange options and direct-discount options. All fields are returned. Products are non-empty for product-quantity earning and null otherwise; reward and bonus lists are always arrays. Configuration edits do not recalculate past purchases or rewrite redemption receipts.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
earning_mode
string Required

Allowed values

product_quantity
products
array Required
Min items 1
Array items
Items
reference

References Loyalty Product.

minimum_eligible_spend
null Required
spend_interval
null Required
validity_period_in_days
integer | null Required

Validity for unit credits from processing time, including earning, manual additions and tier gifts. A credit never shortens an existing positive pool's validity. Keep the later of the current expiry and the new expiry; an existing no-expiry pool remains unlimited. Null or omitted validity removes a finite expiry. Empty or expired pools use the configured validity for the new credit. Purchase base and bonus units renew together.

Minimum 1
Maximum 3650
Nullable Yes
earning_bonuses
array Required

Optional purchase bonuses, using whole-order eligible spend after discounts. Product-mode programs with any spend bonuses also require eligible_amount on applicable captures. The greatest qualifying bonus allowed for the resulting tier is added once only after a positive base unit award. An empty list disables purchase bonuses.

Max items 50
Array items
Items
reference

References Quantity Earning Bonus.

exchange_options
array Required

Zero or more voucher rewards. An empty list is permitted. Supplying configuration replaces this complete list; retain each existing option UUID to preserve its identity. New options may omit UUID and receive a generated identity. Destination availability and lifetime issuance limits are enforced when exchanging, independently of configuration validity.

Array items
Items
object
Nested properties
uuid
string Required

Stable option identity retained across edits when supplied.

Format uuid
quantity_cost
integer Required
Minimum 1
Maximum 2147483647
voucher_program_uuid
string Required

Existing voucher program belonging to the same merchant and using the same currency. Archived or currently unavailable destinations may be configured.

Format uuid
redemption_options
array Required

Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits. Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables direct redemption without removing exchanges.

Array items
Items
reference

References Quantity Redemption Option.

One of 2

object
Nested properties
earning_mode
string Required

Allowed values

order
products
null Required

Not applicable to this earning mode.

minimum_eligible_spend
oneOf Required

Optional positive minimum eligible spend for one unit per qualifying completed order. Null means no monetary minimum.

Nullable Yes
One of
One of 1
null
One of 2
reference

References Positive Money.

spend_interval
null Required
validity_period_in_days
integer | null Required

Validity for unit credits from processing time, including earning, manual additions and tier gifts. A credit never shortens an existing positive pool's validity. Keep the later of the current expiry and the new expiry; an existing no-expiry pool remains unlimited. Null or omitted validity removes a finite expiry. Empty or expired pools use the configured validity for the new credit. Purchase base and bonus units renew together.

Minimum 1
Maximum 3650
Nullable Yes
earning_bonuses
array Required

Optional purchase bonuses, using whole-order eligible spend after discounts. Product-mode programs with any spend bonuses also require eligible_amount on applicable captures. The greatest qualifying bonus allowed for the resulting tier is added once only after a positive base unit award. An empty list disables purchase bonuses.

Max items 50
Array items
Items
reference

References Quantity Earning Bonus.

exchange_options
array Required

Zero or more voucher rewards. An empty list is permitted. Supplying configuration replaces this complete list; retain each existing option UUID to preserve its identity. New options may omit UUID and receive a generated identity. Destination availability and lifetime issuance limits are enforced when exchanging, independently of configuration validity.

Array items
Items
object
Nested properties
uuid
string Required

Stable option identity retained across edits when supplied.

Format uuid
quantity_cost
integer Required
Minimum 1
Maximum 2147483647
voucher_program_uuid
string Required

Existing voucher program belonging to the same merchant and using the same currency. Archived or currently unavailable destinations may be configured.

Format uuid
redemption_options
array Required

Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits. Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables direct redemption without removing exchanges.

Array items
Items
reference

References Quantity Redemption Option.

One of 3

object
Nested properties
earning_mode
string Required

Allowed values

spend_interval
products
null Required

Not applicable to this earning mode.

minimum_eligible_spend
null Required
spend_interval
reference Required

Positive eligible monetary spend required for each unit. No remainder carries between orders.

References Positive Money.

validity_period_in_days
integer | null Required

Validity for unit credits from processing time, including earning, manual additions and tier gifts. A credit never shortens an existing positive pool's validity. Keep the later of the current expiry and the new expiry; an existing no-expiry pool remains unlimited. Null or omitted validity removes a finite expiry. Empty or expired pools use the configured validity for the new credit. Purchase base and bonus units renew together.

Minimum 1
Maximum 3650
Nullable Yes
earning_bonuses
array Required

Optional purchase bonuses, using whole-order eligible spend after discounts. Product-mode programs with any spend bonuses also require eligible_amount on applicable captures. The greatest qualifying bonus allowed for the resulting tier is added once only after a positive base unit award. An empty list disables purchase bonuses.

Max items 50
Array items
Items
reference

References Quantity Earning Bonus.

exchange_options
array Required

Zero or more voucher rewards. An empty list is permitted. Supplying configuration replaces this complete list; retain each existing option UUID to preserve its identity. New options may omit UUID and receive a generated identity. Destination availability and lifetime issuance limits are enforced when exchanging, independently of configuration validity.

Array items
Items
object
Nested properties
uuid
string Required

Stable option identity retained across edits when supplied.

Format uuid
quantity_cost
integer Required
Minimum 1
Maximum 2147483647
voucher_program_uuid
string Required

Existing voucher program belonging to the same merchant and using the same currency. Archived or currently unavailable destinations may be configured.

Format uuid
redemption_options
array Required

Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits. Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables direct redemption without removing exchanges.

Array items
Items
reference

References Quantity Redemption Option.

Used by

Raw YAML
Download source
title: Quantity Configuration
x-tags:
  - Models
description: Saved unit earning terms, purchase bonuses, voucher exchange options and direct-discount options. All
  fields are returned. Products are non-empty for product-quantity earning and null otherwise; reward and bonus lists
  are always arrays. Configuration edits do not recalculate past purchases or rewrite redemption receipts.
oneOf:
  - title: Product quantity
    type: object
    required:
      - earning_mode
      - products
      - minimum_eligible_spend
      - spend_interval
      - validity_period_in_days
      - exchange_options
      - earning_bonuses
      - redemption_options
    properties:
      earning_mode:
        type: string
        enum:
          - product_quantity
      products:
        type: array
        minItems: 1
        items:
          $ref: ./LoyaltyProduct.yaml
      minimum_eligible_spend:
        type: "null"
      spend_interval:
        type: "null"
      validity_period_in_days: &a2
        type:
          - integer
          - "null"
        minimum: 1
        maximum: 3650
        description: Validity for unit credits from processing time, including earning, manual additions and tier gifts.
          A credit never shortens an existing positive pool's validity. Keep the later of the current expiry and the new
          expiry; an existing no-expiry pool remains unlimited. Null or omitted validity removes a finite expiry. Empty
          or expired pools use the configured validity for the new credit. Purchase base and bonus units renew together.
      earning_bonuses: &quantityEarningBonuses
        type: array
        maxItems: 50
        description: Optional purchase bonuses, using whole-order eligible spend after discounts. Product-mode programs with any
          spend bonuses also require eligible_amount on applicable captures. The greatest qualifying bonus allowed for
          the resulting tier is added once only after a positive base unit award. An empty list disables purchase
          bonuses.
        items:
          $ref: ./QuantityEarningBonus.yaml
      exchange_options: &a3
        type: array
        description: Zero or more voucher rewards. An empty list is permitted. Supplying configuration replaces this complete
          list; retain each existing option UUID to preserve its identity. New options may omit UUID and receive a
          generated identity. Destination availability and lifetime issuance limits are enforced when exchanging,
          independently of configuration validity.
        items:
          type: object
          required:
            - uuid
            - quantity_cost
            - voucher_program_uuid
          properties:
            uuid:
              type: string
              format: uuid
              description: Stable option identity retained across edits when supplied.
            quantity_cost:
              type: integer
              minimum: 1
              maximum: 2147483647
            voucher_program_uuid:
              type: string
              format: uuid
              description: Existing voucher program belonging to the same merchant and using the same currency. Archived or currently
                unavailable destinations may be configured.
      redemption_options:
        type: array
        description: Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits.
          Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables
          direct redemption without removing exchanges.
        items:
          $ref: ./QuantityRedemptionOption.yaml
  - title: Order
    type: object
    required:
      - earning_mode
      - products
      - minimum_eligible_spend
      - spend_interval
      - validity_period_in_days
      - exchange_options
      - earning_bonuses
      - redemption_options
    properties:
      earning_mode:
        type: string
        enum:
          - order
      products:
        type: "null"
        description: Not applicable to this earning mode.
      minimum_eligible_spend:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
        description: Optional positive minimum eligible spend for one unit per qualifying completed order. Null means no
          monetary minimum.
      spend_interval:
        type: "null"
      validity_period_in_days: *a2
      earning_bonuses: *quantityEarningBonuses
      exchange_options: *a3
      redemption_options:
        type: array
        description: Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits.
          Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables
          direct redemption without removing exchanges.
        items:
          $ref: ./QuantityRedemptionOption.yaml
  - title: Spend interval
    type: object
    required:
      - earning_mode
      - products
      - minimum_eligible_spend
      - spend_interval
      - validity_period_in_days
      - exchange_options
      - earning_bonuses
      - redemption_options
    properties:
      earning_mode:
        type: string
        enum:
          - spend_interval
      products:
        type: "null"
        description: Not applicable to this earning mode.
      minimum_eligible_spend:
        type: "null"
      spend_interval:
        $ref: ./PositiveMoney.yaml
        description: Positive eligible monetary spend required for each unit. No remainder carries between orders.
      validity_period_in_days: *a2
      earning_bonuses: *quantityEarningBonuses
      exchange_options: *a3
      redemption_options:
        type: array
        description: Direct order discounts sharing the unit pool with voucher exchanges. Retain option UUIDs through edits.
          Pool expiry supplies validity; there are no separate option dates or issuance limits. An empty list disables
          direct redemption without removing exchanges.
        items:
          $ref: ./QuantityRedemptionOption.yaml

Search documentation

Search across this documentation site.