Subscribfy
Loyalty Program

Custom Action

Reward customers for custom actions via API

How to create a Custom Action rule

Introduction

Create custom earning rules that trigger when you send a specific API call. This is useful for rewarding actions that happen outside of Shopify, like completing a quiz, attending an event, or any custom interaction.

This feature is coming soon. Contact support to be notified when it's available.


Enabling Custom Action Reward

Create the Rule

Go to SubscribfyLoyaltyRewards Program tab → Create new ruleCustom Action

Configure Basic Settings

SettingDescription
NameDisplay name (e.g., "Complete Quiz Bonus")
Action KeyUnique identifier for this action (e.g., "quiz_complete")
Reward AmountPoints to award (e.g., 50 points)
Reward MessageMessage shown when reward is earned

Configure Advanced Settings (Optional)

SettingDescription
One-time onlyWhether customer can earn this reward only once
Customer tagsInclude or exclude customers by their Shopify tags
Tier restrictionLimit which tiers can earn this reward

Save

Click Save and make sure the rule status is ON.


How to Trigger Custom Actions

Once your rule is created, you can trigger it via API:

POST /api/loyalty/custom-action
{
  "customer_email": "customer@example.com",
  "action_key": "quiz_complete"
}

When the API call is received, Subscribfy:

  1. Finds the customer by email
  2. Looks up the rule by action key
  3. Awards points if all conditions are met

Use Cases

  • Quiz completion - Reward customers for completing a product quiz
  • App download - Points for downloading your mobile app
  • Event attendance - Reward customers who attended an event
  • Survey responses - Points for completing customer surveys
  • Video watch - Reward for watching product videos

Klaviyo Integration

If you have Klaviyo connected, Subscribfy sends a Subscribfy Custom Action Event when a customer earns points from a custom action.

Event Properties

PropertyVariable NameExample Value
Reward Nameevent.SubscribfyRewardNameComplete Quiz Bonus
Reward Typeevent.SubscribfyRewardTypepoints
Reward Amountevent.SubscribfyRewardAmount50
Action Keyevent.SubscribfyActionKeyquiz_complete

Troubleshooting


Need help? Contact support at support@subscribfy.com

On this page