Loyalty API
TypeCustomerBalanceResult3
Response format common to CustomerBalance3 and LoggedOutBalance1.
| Kind | Type |
|---|---|
| Used in | CustomerBalance3, LoggedOutBalance1 |
Properties
-
pts_availableinteger requiredNumber of loyalty points available for spending.
-
Monetary value of the loyalty points available for spending.
Null if loyalty points are not directly convertible to monetary amounts for this shop.
-
pts_pendinginteger requiredNumber of loyalty points earned by the customer but not yet available for spending.
-
Monetary value of the loyalty points earned by the customer but not yet available for spending.
Null if loyalty points are not directly convertible to monetary amounts for this shop.
-
pts_earnedinteger requiredTotal number of loyalty points the customer has earned over their entire history.
-
pts_redeemedinteger requiredTotal number of loyalty points the customer has redeemed over their entire history.
-
pts_expiredinteger requiredTotal number of loyalty points that have expired from the customer's account.
-
Total amount spent by the customer that counts toward loyalty.
-
Amount spent by the customer that counts toward upgrade or renewal of a loyalty tier.
-
The date when the customer joined the loyalty program, used for anniversary rewards.
This date represents when the customer first joined the loyalty program. It's used to calculate anniversaries for sending rewards, special offers, or congratulatory messages.
If the customer hasn't formally joined the loyalty program or if anniversary tracking is disabled, this field will be empty or the day value will be zero.
-
A future moment in time when all customer points are going to expire, if any.
Null if global points expiration is disabled for this shop.
-
Describes the next batch of points that will expire, including expiration time and amount.
Null if rolling points expiration is disabled for this shop or if there are no points scheduled to expire.
-
Monetary value of 1 loyalty point.
Null if loyalty points are not directly convertible to monetary amounts for this shop.
-
Customer's current tier.
Null if the shop has no initial tier configured and the customer hasn't earned any tiers. Never null if the shop has an initial tier.
-
A tier one step higher than the customer's current tier.
-
Information on the customer's subscription loyalty.
-
The effective redemption limit currently applied to this customer.
Shows the actual limit that will be enforced when the customer attempts to redeem points. When both global and tier-specific limits exist, the tier limit takes precedence, completely overriding the global limit.
Will be null if:
- No redemption limits are configured
- Points don't have monetary value (redemption is disabled)
- The customer has unlimited redemptions
The
remainingfield shows how many points the customer can still redeem in the current period before hitting the limit. -
The global redemption limit configured for all customers.
This is the default limit that applies to customers when their tier doesn't have a specific redemption limit configured. When a tier has its own redemption limit, that tier limit completely overrides this global limit.
Will be null if no global redemption limit is configured.
-
A list of rewards that the customer can use.
-
A list of all point sources (aka Ways to Earn) enabled on this store and visible to this customer.
-
A list of all offers (i.e. vendibles and other redeemable offers) enabled on this store and visible to this customer.
-
A list of all tiers enabled on this store and visible to this customer.
Each tier in this array includes its configuration, features, and any redemption limits specific to that tier.
Tier redemption limits are now embedded in each tier object as the
redemption_limitfield, replacing the previous separatetier_redemption_limitsarray. -
A list of all milestones enabled on this store and visible to this customer.
-
A list of all tier features defined for the shop.
These are the feature definitions that apply across all tiers. Each tier in the
tiersarray includes its ownfeaturesfield with the specific values for that tier.