Send Coupon Codes with SMS and Push Messages
Spin to Win can optionally distribute coupon codes through SMS and push notifications. This ensures that users receive their codes even if they exit the app or want to redeem the coupon later. To enable this workflow, you must complete three steps:
Define the required profile attributes
Create transactional push/SMS campaigns using those attributes
Upload coupon code lists and enable code delivery options

Step 1: Define Profile Attributes
Navigate to: Developers → Profile Attributes → Create New Profile Attribute
Two attributes are required:
A Coupon Code attribute
An Expiry Date attribute
These attributes allow transactional messages to automatically populate the correct coupon code and expiry date after a spin.
Create the Coupon Code Attribute
This attribute stores the unique coupon code assigned to the user.
How to create it:
Open Developers → Profile Attributes
Click Add Attribute
Enter a name such as couponcode
You may choose a custom name, but consistency is recommended.
Set the Data Type to String
Why String?
Supports alphanumeric coupon codes
Handles special characters
Allows flexible coupon list formats
Examples of valid values:
SALE20XZF-993-HPVIP-2025-1200

Create the Expiry Date Attribute
This attribute stores the coupon’s expiration date.
How to create it:
Go to Developers → Profile Attributes
Click Add Attribute
Name it expirydate (or any preferred name)
Set the Data Type to Date
Why Date type?
Ensures the platform can interpret it as a real date.
Enables date-based filtering, automations, and personalization.

Step 2: Create Transactional Campaigns
Navigate to: Messages → Transactional → Create New Transactional Message
Transactional messages allow Netmera to automatically send a push or SMS message to a user right after a coupon code is assigned to them.
This is required if you want:
Users to receive their code as a notification
Delivery of coupon expiry information
A persistent reminder outside the widget
Create a Personalized Transactional Message
During campaign creation:
Go to Step 2: What of the transactional message flow
Locate the Personalized Message field
Insert the attributes you created earlier:
{couponcode}{expirydate}
Netmera will automatically replace these placeholders with the actual values assigned during the Spin to Win interaction.
Example Push Template:
“Your reward is ready! Code: {couponcode} Valid until: {expirydate}”

Example SMS Template:
“Your discount code: {couponcode}. Expires on {expirydate}. Redeem now!”

Configure Remaining Transactional Message Settings
Continue through the remaining steps of the transactional campaign page. You may configure:
Message title and body
Targeting conditions
Delivery triggers
Rate limits
Scheduling
Additional personalization fields
Follow the prompts on the Transactional Messages page until the campaign is complete.
Important
Transactional messages must be activated prior to uploading coupon lists if you want the system to deliver codes automatically.
Step 3: Upload Coupon Codes
Navigate to: Settings → Coupon Code Lists → Upload Coupon Code List
Here you define the coupon codes that will be distributed through the Spin to Win widget.
Uploading Coupon Code Lists
Fields to Configure
List Name A descriptive name for internal use. Example: SpinToWin_Summer_Codes or simply CouponCode.
Coupon Codes Enter each coupon code and specify the available quantity per code.
Examples:
Single-use codes
Multiple-use codes
Fixed-format codes
Generated bulk codes
Warning Limit Set a threshold to receive automated email alerts when the supply drops below a certain number. Example:
If Warning Limit = 9000 → you'll be notified via email when fewer than 9000 codes remain.
Expiry Date Define when the entire coupon list becomes invalid. This date controls slice inactivity and overall campaign deactivation.

Enable SMS and Push Delivery for Coupon Codes
After uploading a list, Netmera presents toggles for distributing codes through:
SMS
Push Notification
These options can be turned on or off depending on campaign strategy.
When enabled:
Netmera assigns a coupon code during the spin
The transactional campaign automatically sends the code via SMS/push
The personalized attributes
{couponcode}and{expirydate}populate the message

Push Notification Delivery
If Push delivery is enabled:
Netmera sends a predefined push notification.
Placeholders for coupon code and expiry date are automatically populated.
Notification content is predefined and cannot be customized at the delivery layer (customization happens in the transactional campaign instead).
Automated campaigns end when the coupons are expired in your widgets.
Last updated
Was this helpful?