The Loyalty Checkout API enables you to manage loyalty discounts during the checkout process in your Wix site's ecommerce flow. This API allows you to apply rewards and query discount information, enhancing your loyalty program integration with the checkout process.
With the Loyalty Checkout API, you can:
For more information about managing your site's loyalty program, see the Loyalty API.
It's important to note the following points before starting to code:
You must have the Wix Loyalty Program app installed on your site to use this API.
To use the Loyalty Checkout Exchange API, your site must have the Wix Bookings, Wix Stores or Wix Restaurants Orders (New) app.
To use the Loyalty Checkout Exchange API, import { checkoutExchange }
from the wix-loyalty.v2
module:
LOYALTY_COUPON
discount type.COUPON_REWARD
discount type.LOYALTY_COUPON
: A coupon that has already been redeemed. This coupon already exists and does not deduct points when applied during checkout.COUPON_REWARD
: A coupon that has not been redeemed but is now being redeemed at checkout. Points are deducted in exchange for this coupon during the checkout process.DISCOUNT_AMOUNT
: A flexible reward type where customers choose how many points to spend for a discount during checkout.REFERRAL_REWARD
: A coupon received when a customer successfully refers a friend.APPLIED
, COMPLETED
, REFUNDED
, or FAILED_TO_REFUND
.APPLIED
, IN_PROGRESS
, COMPLETED
, REFUNDED
, or FAILED_TO_REFUND
.