iglooX DocsDevelopers

Schema

Cashback Configuration Input

Money uses the program currency. Supplying configuration replaces the complete object and lists; omitted earning_bonuses becomes empty and omitted nullable settings become null. Omitting the whole configuration on edit retains it. No paid purchase, preset top-up, voucher-exchange or quantity-redemption settings apply.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
earning_mode
string Required

Allowed values

order
products
array | null

Omit, null or empty input; stored and returned as null.

Max items 0
Nullable Yes
calculation
reference Required

Fixed cashback once per qualifying order, or percentage of final eligible spend, rounded half up once to minor units. A percentage cap limits the combined base and bonus.

References Calculation Input.

minimum_eligible_spend
oneOf

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

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

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
Default []
Max items 50
Array items
Items
reference

References Cashback Earning Bonus Input.

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
object Required
Nested properties
type
string Required

Allowed values

fixed
fixed_value
reference Required

References Positive Money.

percentage
null
percentage_cap
null
minimum_eligible_spend
oneOf

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

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

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
Default []
Max items 50
Array items
Items
reference

References Cashback Earning Bonus Input.

Used by

Raw YAML
Download source
title: Cashback Configuration Input
x-tags:
  - Models
description: Money uses the program currency. Supplying configuration replaces the complete object and lists;
  omitted earning_bonuses becomes empty and omitted nullable settings become null. Omitting the whole
  configuration on edit retains it. No paid purchase, preset top-up, voucher-exchange or quantity-redemption
  settings apply.
oneOf:
  - title: Order cashback
    type: object
    required:
      - earning_mode
      - calculation
    properties:
      earning_mode:
        type: string
        enum:
          - order
      products:
        type:
          - array
          - "null"
        maxItems: 0
        description: Omit, null or empty input; stored and returned as null.
      calculation:
        $ref: ./CalculationInput.yaml
        description: Fixed cashback once per qualifying order, or percentage of final eligible spend, rounded half up
          once to minor units. A percentage cap limits the combined base and bonus.
      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: ./CashbackEarningBonusInput.yaml
  - title: Product cashback
    type: object
    required:
      - earning_mode
      - products
      - calculation
    properties:
      earning_mode:
        type: string
        enum:
          - product_quantity
      products:
        type: array
        minItems: 1
        items:
          $ref: ./LoyaltyProduct.yaml
      calculation:
        title: Fixed benefit
        type: object
        required:
          - type
          - fixed_value
        properties:
          type:
            type: string
            enum:
              - fixed
          fixed_value:
            $ref: ./PositiveMoney.yaml
          percentage:
            type: "null"
          percentage_cap:
            type: "null"
      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: ./CashbackEarningBonusInput.yaml

Search documentation

Search across this documentation site.