Loyalty Rewards
In today's competitive market, retaining customers is just as crucial as acquiring new ones. A well-structured loyalty program can be a key differentiator, fostering a stronger connection between your brand and your customers. This use case explores how you can leverage promo codes to reward your loyal customers, enhancing their experience and encouraging repeat business.
The Scenario
Imagine a customer, Sarah, who is a member of your brand's loyalty program. She frequently engages with your products and has accumulated a significant number of loyalty points. To acknowledge her commitment and provide a tangible benefit, you decide to offer her an exclusive discount on her next purchase.
Instead of a generic, widely-available promotion, you want to provide Sarah with a unique promo code that feels personal and exclusive. This code will be accessible through her account on your loyalty platform.
How it Works
Promo Code Generation: A unique, single-use promo code is generated for Sarah. This code is not tied to a specific product or destination, giving her the flexibility to use it on any purchase she desires. This flexibility makes the reward feel more valuable.
Delivery through the Loyalty Platform: The promo code is securely delivered to Sarah's account on the loyalty platform. She can easily view and access it whenever she logs in. This seamless integration enhances the user experience and keeps her engaged with your platform.
Redemption: When Sarah is ready to make a purchase, she can apply the promo code at checkout to receive her discount. The process is simple and straightforward, reinforcing the positive association with your brand.
Business Benefits
- Increased Customer Retention: By rewarding loyalty, you give customers a compelling reason to continue choosing your brand over competitors.
- Enhanced Customer Engagement: Integrating promo codes into your loyalty platform drives traffic and encourages customers to interact with your brand more frequently.
- Personalized Marketing: Unique promo codes make customers feel valued and special, strengthening their emotional connection to your brand.
- Data-Driven Insights: Tracking the redemption of these promo codes can provide valuable data on customer behavior, helping you to refine your loyalty program and marketing strategies over time.
This approach transforms a simple discount into a powerful tool for building lasting customer relationships. It's a win-win: your customers feel appreciated, and your business benefits from their continued loyalty.
Technical Flow
Implementing this use case involves interacting with the bookings API to create and manage promo codes. Here's a step-by-step guide to the technical implementation:
1. Create a Booking and Retrieve the Promo Code
First, a booking needs to be created to act as a container for the promo code. This booking represents the loyalty member's account rather than a specific trip. When the booking is created, the API will automatically generate and return a promo code in the response.
You can create the booking by making a POST request to the /api/bookings endpoint.
Request:
POST /api/bookings
{
"email": "sarah.member@example.com",
"external_id": "LOYALTY-MEMBER-12345",
"first_name": "Sarah",
"last_name": "Member",
"package_specifications": [
{
"size": "1GB"
}
]
}This request creates a booking associated with Sarah, our loyalty member. The external_id can be used to link this booking to your internal loyalty program's user ID.
The package_specifications array allows you to define the characteristics of the promo code's package. Each entry is resolved either by package_id (direct reference) or by other properties (destination, size, etc.); when package_id is set, other fields in that entry are ignored for resolution.
size: Defines the data size of the package (e.g., '1GB', '5GB').destination: You can specify a destination country code (e.g., 'USA', 'NLD') to tie the promo code to a specific region. If omitted, the promo code is not tied to a destination.
Response:
The API response will contain the booking details, including the generated promo code.
2. Storing and Displaying the Promo Code
The promo_code from the API response should be stored in your database and associated with Sarah's loyalty account. You can then display this code in her user profile on your loyalty platform, making it easily accessible.