swellAPI.getVariableRedemptionOption()

This method returns an array containing all active variable redemption options you setup. You can use this method to build a custom interface around your variable redemption option.

$(document).on("swell:setup", () => {
    var variableRedemptionOption = swellAPI.getVariableRedemptionOption();
});
amount: null
applies_once: true
applies_to_any_or_all_attributes: null
applies_to_attributes: null
applies_to_id: ""
applies_to_product_type: "ALL"
applies_to_resource: "all"
applies_to_values: null
automatically_apply: false
background_image_url: "https://clipfolder-cloudfront.swellrewards.com/images/images/4862_1530794628.original.png?1530795638"
cart_greater_than_cents: null
category: null
charset: "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
code_length: 8
collection_ids: []
cost_text: ""
currency: "USD"
deleted: false
description: "Get 5 cents off your next purchase for each point used"
discount_amount_cents: 0
discount_percentage: null
discount_rate_cents: 5
discount_type: "variable"
display_in_popup: true
duration: "single_use"
free_shipping_less_than_cents: null
icon: "fa-dollar"
id: 254586
image: "/assets/merchant.png"
merchant: {id: 41051, created_at: "2018-05-11T15:13:22.000Z", updated_at: "2019-03-22T13:42:19.000Z", owner_id: 74998, tag_line: null, ...}
name: "$0.05 Back per $1 Spent"
numRedemptionCodes: 6424
numRedemptions: 6420
numUnusedRedemptionCodes: 0
prefix: "DR-"
prettyDiscount: "$0"
prettyValue: "$0"
product_ids: []
reward_intro: "Thanks for redeeming! Here's your coupon code:"
single_use: true
title: "International Incense"
type: "Coupon"
usedByActiveCampaign: false
usedByActiveVipTier: false
value_cents: 0
variant_ids: []
__proto__: Object