Loyalty API
TypeRedemptionConfiguration2
Describes point redemption limitations imposed by the shop.
| Kind | Type |
|---|---|
| Used in | CustomerBalance3, LoggedOutBalance1 |
Properties
-
Baseline monetary value of 1 loyalty point.
This is the default conversion rate used when no point value buckets apply. When the shop has configured tiered point value buckets, the actual redemption value may be higher at certain point thresholds.
Use the
point_value_bucketsarray to calculate actual values, or request pre-calculated bucket amounts from the API when available. -
mininteger requiredMinimum number of redeemable points (1 ... ∞)
-
maxinteger | null optionalMaximum number of points redeemable in this store in a single operation (1 ... ∞), null if unlimited
-
stepinteger requiredPoints can only be redeemed in multiples of this number (1 ... ∞)
Valid redeemable amounts are
(min + n * step), i.e.min,(min + step),(min + 2*step), etc. -
bucketsarray of integer optionalPreset redemption amounts shown in the UI picker.
Contains the specific point amounts available in the redemption interface. When configured, present these as the available redemption options.
If
bucketsis configured, you should ignoreminandstepfor UI purposes. -
Tiered point value configuration defining redemption rates at different point thresholds.
When configured, point values vary based on redemption amount. Each bucket defines a threshold and the monetary value received for exactly that many points.
To calculate the redemption amount for a given number of points, find the bucket with the highest threshold that the points meet or exceed, then apply:
amount = points * value / threshold.Example: A bucket with
threshold: 400andvalue: 25000000(i.e., $25.00) means 400 points = $25.00, giving an effective rate of 6.25 cents per point. For 500 points, the amount would be 500 * $25.00 / 400 = $31.25.When no bucket matches (points below all thresholds), the default
pt_valuerate is used.