Every Shopify merchant running a loyalty program eventually hits the same wall: discount codes and coupon rewards stop working. Customers expect them, factor them into their buying decision, and then churn anyway when a competitor offers 10% off instead of 8%. Your loyalty program becomes a race to the bottom.
The merchants breaking out of this cycle are the ones rewarding customers with something a coupon can never replicate: tangible environmental impact. When a customer redeems their LoyaltyLion points to plant a tree, they get a story they can share, a verified action they can see, and a reason to feel good about choosing your brand again. This guide explains exactly how to wire GoodAPI into LoyaltyLion so your points rewards do something meaningful.
Why Sustainability Rewards Outperform Discounts
Before diving into the setup, it’s worth understanding why this works. The data is compelling.
Research shows that 87% of consumers have a more positive image of companies that support environmental causes. Meanwhile, 55% of shoppers say they would choose one loyalty program over another specifically because it prioritises sustainability. Among Millennials and Gen Z, that preference is even stronger.
The conversion math changes too. Members who redeem rewards spend 3.1 times more than members who don’t. When your rewards are tied to real-world impact instead of a discount they could get anywhere, redemption becomes something customers actually want to do, not just a transactional mechanism for shaving money off their next order.
Eco rewards also increase engagement by up to 50% without increasing your marketing spend, according to research from Ascendant Loyalty. One Earth Month campaign by a major recognition platform saw a 58% increase in redemption volume after switching to eco rewards. The reason is simple: planting a tree feels like an accomplishment. Getting a discount code feels like a transaction.
How LoyaltyLion and GoodAPI Connect
LoyaltyLion supports a feature called custom rewards. Instead of generating a discount code when a customer redeems points, a custom reward fires a webhook to a URL you specify. That webhook payload contains the customer details and the reward information. Whatever system is listening on the other end can take action.
GoodAPI is the system listening on the other end.
When you configure a LoyaltyLion custom reward with GoodAPI’s webhook endpoint, the flow looks like this:
- A customer accumulates enough loyalty points in your store.
- They visit the loyalty panel and redeem their points for a tree (or a set number of trees).
- LoyaltyLion fires a webhook to GoodAPI’s endpoint.
- GoodAPI triggers a verified planting event through Veritree, its reforestation partner.
- The tree is assigned to a real project with GPS coordinates and tracked through its first years of growth.
- The customer gets a confirmation, which can include their cumulative impact total.
From the customer’s perspective, it feels instant and personal. From the technical side, you’re connecting two webhook-capable APIs with a simple configuration, no custom code required.
Setting Up the Integration: Step by Step
Step 1: Install GoodAPI on Your Shopify Store
Start by installing the GoodAPI app from the Shopify App Store: GoodAPI on Shopify. Once installed, you can configure tree planting rules for orders, but for the LoyaltyLion integration you will specifically be using the API-triggered planting feature.
Inside GoodAPI, navigate to your API settings and locate your API credentials. You will need these in later steps.
Step 2: Configure a Custom Reward in LoyaltyLion
In your LoyaltyLion dashboard, go to Rewards and select “Create a reward.” Choose “Custom reward” as the reward type.
Give the reward a clear, customer-facing name. Something like “Plant 1 Tree” or “Plant 5 Trees” works well because it immediately communicates the action. Set the point cost to match the value you want to associate with planting. A common configuration is 100 points per tree, which creates a satisfying, round-number exchange.
Under fulfillment method, select “Webhook.” Enter GoodAPI’s webhook endpoint URL. This is found in your GoodAPI dashboard under Integrations.
Save the reward. LoyaltyLion will now send a webhook request to GoodAPI every time a customer redeems this reward.
Step 3: Map the Webhook Payload to GoodAPI
GoodAPI’s webhook handler reads the customer information from the LoyaltyLion payload and translates it into a planting request. The payload includes the customer’s email address, their name, the reward they redeemed, and the quantity.
In GoodAPI, you can configure what happens when that webhook fires:
- How many trees to plant per redemption.
- Which Veritree project the trees should be attributed to (Kenya Mangroves, Madagascar Reforestation, and others are available).
- Whether to send a confirmation email to the customer.
If you want to route different reward tiers to different projects, you can create separate LoyaltyLion rewards each pointing to a distinct GoodAPI webhook configuration. For example, “Plant 1 Tree in Kenya” and “Plant 5 Trees in Madagascar” become two separate redemption options with different point costs.
Step 4: Configure the Customer-Facing Confirmation
One of the most important elements of a sustainability reward is the feedback loop. When a customer redeems points and nothing happens from their perspective except a points deduction, the reward loses its emotional value.
GoodAPI includes a post-planting confirmation flow. After a webhook-triggered planting, you can enable an email that goes to the customer with:
- The project name and location.
- A visual map or photo of the planting site.
- Their cumulative tree total across all plantings.
- A link to their full impact summary.
For storefront display, GoodAPI also provides an embeddable impact widget. This shows the customer their total trees planted, alongside a running total for your store. You can embed this widget on the loyalty panel page, the customer account page, or any page in your Shopify theme.
Step 5: Test the Integration
Before going live, run a test redemption using a customer account with sufficient points. Check that:
- The webhook is received by GoodAPI (visible in your webhook logs).
- A planting event is triggered.
- The confirmation email reaches the customer.
- LoyaltyLion marks the reward as fulfilled.
LoyaltyLion treats a 2xx response from GoodAPI’s webhook endpoint as a successful fulfillment. If GoodAPI returns a non-2xx status, LoyaltyLion will mark the redemption as failed and the customer’s points will not be deducted. This is a useful safety net while testing.
Example Configuration: 100 Points, 1 Tree
For a practical reference, here is a configuration that works well for most mid-volume Shopify stores:
- Earn rate: 1 point per $1 spent.
- Redemption option 1: 100 points = 1 tree planted in Madagascar.
- Redemption option 2: 500 points = 5 trees planted in Kenya Mangroves.
- Bonus event: Double points on orders over $100 in a month when GoodAPI is also planting a tree automatically.
Customers can reach the 100-point threshold after a single moderate purchase, which keeps the reward within reach without being trivial. The 500-point tier gives repeat customers something to work toward. Running both in parallel provides choice, which research consistently shows improves loyalty program participation.
Because GoodAPI also supports automatic tree planting per order, you can combine both modes: every order automatically plants a tree at the merchant level, while customers can additionally use their points to plant more trees for themselves. This creates two distinct value layers in your store’s sustainability story.
Displaying Impact in Your Storefront
LoyaltyLion exposes customer loyalty data through Shopify customer metafields, including points balance, tier, and reward history. GoodAPI similarly stores per-customer and per-store planting totals.
You can surface this data directly in your Shopify theme using Liquid. A simple addition to the customer account template can show something like “You’ve planted 14 trees through your purchases and rewards.” This kind of personalised impact messaging is consistently cited by sustainability-focused brands as one of their highest-performing retention hooks.
If you use LoyaltyLion’s on-site loyalty panel widget, consider adding GoodAPI’s embeddable counter alongside it. The visual combination of “Your points: 340” and “Your trees planted: 7” reinforces the connection between spending and impact, which is exactly the brand story you want customers to carry into their next purchase decision.
Why This Combination Works for Brand Differentiation
Discount codes are a commodity. Every brand offers them. The moment you advertise 10% off, you attract price-sensitive shoppers who will leave the moment someone offers 11%.
Tree planting is not a commodity. The GoodAPI integration with Veritree means every tree is geolocated, photographed, and monitored through its critical first years. Customers can verify their impact. That verification is the differentiator: it turns a loyalty program touchpoint into a credible brand commitment.
For merchants in categories where brand values matter, including apparel, beauty, food, wellness, and home goods, a sustainability-backed loyalty reward can become a genuine acquisition tool. Customers talk about it. They share their impact summaries. A post that says “I’ve planted 20 trees shopping at this brand” reaches the brand’s audience in a way that “I saved 10% with their loyalty code” never will.
Getting Started
The LoyaltyLion + GoodAPI integration is available to any Shopify store running both apps. If you are already on LoyaltyLion and want to add the tree planting reward, you can get started by installing the GoodAPI app from the Shopify App Store.
If you are not yet on LoyaltyLion, GoodAPI works independently too. Every order can automatically plant a tree or remove plastic without requiring customers to redeem points at all. But for stores already invested in a points-based program, combining both gives you the best of both worlds: automatic impact at the order level, and customer-facing reward redemption that reinforces the story.
Install GoodAPI on Shopify here: https://apps.shopify.com/tree-planting.
To learn more about how GoodAPI works and which reforestation projects are available, visit /how-it-works/ or browse our projects.