Yotpo Loyalty + Shopify

Connect Yotpo Loyalty with Shopify to Build Smarter Customer Retention Workflows

Automate loyalty point awards, tier upgrades, and reward redemptions in sync with every Shopify order and customer event.

Why integrate Yotpo Loyalty and Shopify?

Yotpo Loyalty and Shopify are two of the most useful tools in a modern eCommerce stack, and when they work together, brands can deliver loyalty experiences that actually drive repeat purchases. Automatically awarding points at checkout, triggering personalized reward campaigns when customers hit new tiers — integrating Yotpo Loyalty with Shopify cuts out the manual work that slows retention teams down. With tray.ai, you can build flexible, event-driven workflows that keep your loyalty program in sync with your Shopify store.

Automate & integrate Yotpo Loyalty & Shopify

Use case

Automatically Award Loyalty Points on Every Shopify Order

When a customer completes a purchase in Shopify, tray.ai instantly triggers Yotpo Loyalty to award the correct number of points based on order value, product category, or promotional multipliers. This eliminates the lag between purchase and point visibility that frustrates customers and undermines trust in loyalty programs. Customers see their updated balance right away, which gives them a reason to come back.

Use case

Sync Yotpo Tier Upgrades Back to Shopify Customer Tags

When a customer reaches a new loyalty tier in Yotpo — Silver, Gold, or VIP — tray.ai automatically updates their customer tags in Shopify to reflect the new status. Those tags can then unlock exclusive pricing, early access collections, or VIP-only discount codes within Shopify. It's a direct connection between loyalty status and the actual shopping experience on your storefront.

Use case

Reverse Points on Shopify Order Cancellations and Refunds

When a Shopify order is cancelled or refunded, tray.ai detects the event and automatically deducts the associated Yotpo loyalty points from the customer's balance. This keeps your loyalty ledger accurate and stops customers from redeeming points for purchases they ultimately returned. It also takes the burden off support teams who'd otherwise handle these adjustments one by one.

Use case

Enroll New Shopify Customers into Yotpo Loyalty Automatically

Every time a new customer account is created in Shopify — through checkout, account registration, or social login — tray.ai enrolls them in your Yotpo Loyalty program and awards any welcome point bonuses defined in your program rules. No new customer gets missed, and your loyalty program starts building engagement from the very first interaction. Welcome point notifications can also be triggered to bring the customer back to the store.

Use case

Trigger Winback Campaigns for Lapsing Loyalty Members

tray.ai can monitor Yotpo Loyalty for customers whose points are about to expire or who haven't made a Shopify purchase within a defined window, then trigger re-engagement campaigns via your email or SMS platform. These workflows can include personalized reminders of unused points, expiring rewards, or exclusive reactivation offers tied to Shopify discount codes. Getting ahead of churn is almost always easier than recovering from it.

Use case

Redeem Yotpo Reward Codes at Shopify Checkout Without the Friction

When a customer redeems a reward in Yotpo, tray.ai can automatically generate and apply a corresponding Shopify discount code scoped to the specific product, collection, or order threshold defined in the reward. Codes are always valid, properly scoped, and tracked. Post-redemption events in Shopify also feed back into Yotpo to mark the reward as used.

Use case

Sync Shopify Purchase History for Retroactive Loyalty Enrollment

When onboarding customers into Yotpo Loyalty or migrating from another loyalty platform, tray.ai can pull historical Shopify order data and apply retroactive point awards to customer profiles in Yotpo. Long-standing customers get immediate loyalty status that reflects their actual purchase history, which makes a real difference in program adoption at launch. Bulk historical syncs can be triggered on-demand or scheduled during migration windows.

Get started with Yotpo Loyalty & Shopify integration today

Yotpo Loyalty & Shopify Challenges

What challenges are there when working with Yotpo Loyalty & Shopify and how will using Tray.ai help?

Challenge

Real-Time Point Syncing Without Duplication

Shopify can fire multiple webhook events for a single order (order created, order paid, fulfillment updated), making it easy to accidentally award loyalty points more than once if the integration isn't built with idempotency in mind.

How Tray.ai Can Help:

tray.ai lets you build deduplication logic directly into your workflows using unique order IDs and conditional branching. You can store processed order references and check against them before triggering Yotpo point awards, so each order is only credited once no matter how many Shopify events fire.

Challenge

Handling Partial Refunds and Multi-Line Item Orders

Calculating the correct number of points to reverse on a partial refund — especially across orders with mixed product categories, promotional discounts, and varying point earn rates — gets complicated fast and is error-prone when done manually or with simple integrations.

How Tray.ai Can Help:

tray.ai's workflow logic supports complex data transformation and conditional calculations. You can build rules that parse Shopify refund payloads at the line-item level, apply category-specific point rates, and calculate the precise deduction to send to the Yotpo API — handling edge cases that rigid point-to-point integrations can't.

Challenge

Customer Identity Matching Across Platforms

Customers may exist in Shopify and Yotpo with slightly different identifiers — different email formats, guest checkout records, or social login accounts — making it hard to reliably match records and apply loyalty actions to the correct profile.

How Tray.ai Can Help:

tray.ai lets you build custom identity resolution logic into your workflows, cross-referencing Shopify customer IDs, email addresses, and phone numbers against Yotpo profiles before taking any action. You can define fallback matching rules and flag unresolved records for manual review rather than silently failing or creating duplicate profiles.

Challenge

Scaling Bulk Historical Syncs Without Hitting API Rate Limits

When migrating to Yotpo Loyalty or launching a new program, syncing years of Shopify order history to award retroactive points requires thousands of API calls, which can easily breach Shopify's or Yotpo's rate limits and cause data loss or incomplete enrollments.

How Tray.ai Can Help:

tray.ai includes built-in rate limiting, retry logic, and pagination support for both the Shopify and Yotpo APIs. You can configure bulk sync workflows to process orders in controlled batches, automatically back off on rate limit responses, and resume from checkpoints — so historical syncs complete fully without overwhelming either platform.

Challenge

Keeping Shopify Discount Codes and Yotpo Redemptions in Sync

When reward redemptions generate Shopify discount codes, there's a real risk of codes being created but never marked as used in Yotpo, or being used multiple times if the redemption status isn't written back correctly after Shopify checkout completion.

How Tray.ai Can Help:

tray.ai supports closed-loop redemption workflows that listen for Shopify order events referencing a discount code, then automatically update the corresponding Yotpo reward redemption record to mark it as consumed. This two-way sync prevents double redemptions and gives your loyalty team accurate visibility into reward utilization.

Start using our pre-built Yotpo Loyalty & Shopify templates today

Start from scratch or use one of our pre-built Yotpo Loyalty & Shopify templates to quickly solve your most common use cases.

Yotpo Loyalty & Shopify Templates

Find pre-built Yotpo Loyalty & Shopify solutions for common use cases

Browse all templates

Template

Shopify Order Completed → Award Yotpo Loyalty Points

This template listens for the Shopify order paid webhook and automatically awards Yotpo loyalty points to the purchasing customer based on the order total, applying any active multiplier rules or promotional bonus configurations defined in Yotpo.

Steps:

  • Trigger on Shopify 'order paid' webhook event
  • Extract customer ID, order total, and line item details from the Shopify payload
  • Call Yotpo Loyalty API to award points to the matched customer profile

Connectors Used: Shopify, Yotpo Loyalty

Template

Shopify Refund Created → Reverse Yotpo Loyalty Points

This template monitors Shopify for refund or cancellation events and automatically deducts the corresponding loyalty points from the customer's Yotpo balance, keeping program integrity intact and preventing exploitation of loyalty rewards on returned orders.

Steps:

  • Trigger on Shopify 'refund created' or 'order cancelled' webhook
  • Calculate the points originally awarded for the refunded order or line items
  • Call Yotpo Loyalty API to deduct the calculated points from the customer's balance

Connectors Used: Shopify, Yotpo Loyalty

Template

New Shopify Customer → Enroll in Yotpo Loyalty + Award Welcome Points

This template automatically creates a Yotpo Loyalty profile for every new Shopify customer account and awards configured welcome bonus points, so program enrollment happens without any manual steps and new customers have an immediate reason to engage.

Steps:

  • Trigger on Shopify 'customer created' webhook event
  • Create or match customer profile in Yotpo Loyalty using email and Shopify customer ID
  • Award welcome points to the new Yotpo profile per program configuration

Connectors Used: Shopify, Yotpo Loyalty

Template

Yotpo Tier Change → Update Shopify Customer Tags

This template polls or receives webhook events from Yotpo Loyalty when a customer reaches a new tier and updates their Shopify customer record with the appropriate tier tag, enabling tag-based discounts, collections, and personalization rules on the storefront.

Steps:

  • Trigger on Yotpo Loyalty tier upgrade event or scheduled poll
  • Retrieve current customer tags from Shopify customer record
  • Update Shopify customer tags to add new tier tag and remove previous tier tag

Connectors Used: Yotpo Loyalty, Shopify

Template

Yotpo Reward Redemption → Generate Shopify Discount Code

This template listens for reward redemption events in Yotpo and automatically creates a scoped Shopify discount code matching the reward parameters, then writes the code back to Yotpo or delivers it to the customer via email or SMS.

Steps:

  • Trigger on Yotpo Loyalty reward redemption event
  • Create a matching Shopify discount code with correct value, scope, and expiration
  • Return the discount code to Yotpo or deliver to the customer via notification channel

Connectors Used: Yotpo Loyalty, Shopify

Template

Lapsing Loyalty Member → Shopify Winback Discount + Re-Engagement Trigger

This template runs on a schedule, querying Yotpo for customers with expiring points or long purchase gaps, then generates a personalized Shopify discount code and passes customer details to your email or SMS platform to trigger a winback campaign.

Steps:

  • Scheduled trigger queries Yotpo for customers with expiring points or inactivity threshold met
  • Generate a personalized Shopify discount code for each at-risk customer
  • Pass customer record and discount code to email or SMS platform to trigger winback message

Connectors Used: Yotpo Loyalty, Shopify