iglooX DocsDevelopers

Schema

Cashback Configuration

Frozen or current cashback settings. Product mode multiplies fixed cashback by summed matching paid quantity floored once per program, without eligible-spend proration. Minimum spend qualifies the order independently.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
earning_mode
string Required

Allowed values

order
products
null Required
calculation
reference Required

References Calculation.

minimum_eligible_spend
oneOf Required

Whole-order qualifying floor for either earning mode. Positive eligible_amount is required even without a configured minimum.

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

References Positive Money.

minimum_redemption_per_order
oneOf Required

Minimum amount for one redemption. Does not restrict earning or reduce the recorded pool.

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

References Positive Money.

validity_period_in_days
integer | null Required

Calendar days in the merchant timezone from credit processing time. Earning, manual credits and tier gifts extend the entire pool without shortening it; a positive unlimited pool remains unlimited. Null means no expiry. Empty/expired pools take the new credit validity.

Minimum 1
Maximum 3650
Nullable Yes
earning_bonuses
array Required
Default []
Max items 50
Array items
Items
reference

References Cashback Earning Bonus.

One of 2

object
Nested properties
earning_mode
string Required

Allowed values

product_quantity
products
array Required
Min items 1
Array items
Items
reference

References Loyalty Product.

calculation
allOf Required
All of
All of 1
reference

References Calculation.

All of 2
object
Nested properties
type
string

Allowed values

fixed
minimum_eligible_spend
oneOf Required

Whole-order qualifying floor for either earning mode. Positive eligible_amount is required even without a configured minimum.

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

References Positive Money.

minimum_redemption_per_order
oneOf Required

Minimum amount for one redemption. Does not restrict earning or reduce the recorded pool.

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

References Positive Money.

validity_period_in_days
integer | null Required

Calendar days in the merchant timezone from credit processing time. Earning, manual credits and tier gifts extend the entire pool without shortening it; a positive unlimited pool remains unlimited. Null means no expiry. Empty/expired pools take the new credit validity.

Minimum 1
Maximum 3650
Nullable Yes
earning_bonuses
array Required
Default []
Max items 50
Array items
Items
reference

References Cashback Earning Bonus.

Used by

Raw YAML
Download source
title: Cashback Configuration
x-tags:
  - Models
description: Frozen or current cashback settings. Product mode multiplies fixed cashback by summed matching
  paid quantity floored once per program, without eligible-spend proration. Minimum spend qualifies the order
  independently.
oneOf:
  - title: Order cashback
    type: object
    required:
      - earning_mode
      - products
      - calculation
      - minimum_eligible_spend
      - minimum_redemption_per_order
      - validity_period_in_days
      - earning_bonuses
    properties:
      earning_mode:
        type: string
        enum:
          - order
      products:
        type: "null"
      calculation:
        $ref: ./Calculation.yaml
      minimum_eligible_spend:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
        description: Whole-order qualifying floor for either earning mode. Positive eligible_amount is required even
          without a configured minimum.
      minimum_redemption_per_order:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
        description: Minimum amount for one redemption. Does not restrict earning or reduce the recorded pool.
      validity_period_in_days:
        type:
          - integer
          - "null"
        minimum: 1
        maximum: 3650
        description: Calendar days in the merchant timezone from credit processing time. Earning, manual credits and
          tier gifts extend the entire pool without shortening it; a positive unlimited pool remains
          unlimited. Null means no expiry. Empty/expired pools take the new credit validity.
      earning_bonuses:
        type: array
        maxItems: 50
        default: []
        items:
          $ref: ./CashbackEarningBonus.yaml
  - title: Product cashback
    type: object
    required:
      - earning_mode
      - products
      - calculation
      - minimum_eligible_spend
      - minimum_redemption_per_order
      - validity_period_in_days
      - earning_bonuses
    properties:
      earning_mode:
        type: string
        enum:
          - product_quantity
      products:
        type: array
        minItems: 1
        items:
          $ref: ./LoyaltyProduct.yaml
      calculation:
        allOf:
          - $ref: ./Calculation.yaml
          - type: object
            properties:
              type:
                type: string
                enum:
                  - fixed
      minimum_eligible_spend:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
        description: Whole-order qualifying floor for either earning mode. Positive eligible_amount is required even
          without a configured minimum.
      minimum_redemption_per_order:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
        description: Minimum amount for one redemption. Does not restrict earning or reduce the recorded pool.
      validity_period_in_days:
        type:
          - integer
          - "null"
        minimum: 1
        maximum: 3650
        description: Calendar days in the merchant timezone from credit processing time. Earning, manual credits and
          tier gifts extend the entire pool without shortening it; a positive unlimited pool remains
          unlimited. Null means no expiry. Empty/expired pools take the new credit validity.
      earning_bonuses:
        type: array
        maxItems: 50
        default: []
        items:
          $ref: ./CashbackEarningBonus.yaml

Search documentation

Search across this documentation site.