Send SMS
Send personalized SMS messages to customers for loyalty program updates, order notifications, and time-sensitive offers.
Quick Start
Basic SMS Request
POST https://api.brevo.com/v3/transactionalSMS/smsContent-Type: application/jsonapi-key: YOUR_API_KEY
{ "type": "transactional", "unicodeEnabled": false, "sender": "TajoLoyalty", "recipient": "+1234567890", "content": "Hi John! You've earned 150 points from your recent purchase. Your total: 1,250 points. Redeem at tajo.com/rewards"}Response
{ "reference": "sms_abc123", "messageId": "msg_def456"}Loyalty Program SMS Templates
Points Earned Notification
{ "type": "transactional", "sender": "TajoRewards", "recipient": "+1234567890", "content": "๐ Great news {{contact.FIRSTNAME}}! You earned {{params.pointsEarned}} points from order #{{params.orderNumber}}. Total: {{params.totalPoints}} points. Shop more at {{params.storeUrl}}", "params": { "pointsEarned": "200", "orderNumber": "ORD-2024-001", "totalPoints": "1,450", "storeUrl": "shop.tajo.com" }}Tier Upgrade Alert
{ "content": "๐ Congratulations {{contact.FIRSTNAME}}! You've been upgraded to {{params.newTier}} status! Enjoy {{params.benefits}}. Your new point balance: {{params.totalPoints}}", "params": { "newTier": "Gold", "benefits": "free shipping & exclusive offers", "totalPoints": "2,500" }}Reward Redemption Confirmation
{ "content": "โ
Reward redeemed! {{params.rewardName}} - {{params.pointsUsed}} points used. Coupon: {{params.couponCode}} (expires {{params.expiryDate}}). Remaining: {{params.remainingPoints}} points", "params": { "rewardName": "20% Off", "pointsUsed": "1000", "couponCode": "SAVE20NOW", "expiryDate": "Mar 15", "remainingPoints": "450" }}Order Status Updates
{ "content": "๐ฆ Your order #{{params.orderNumber}} has {{params.status}}! {{params.details}} Track: {{params.trackingUrl}}", "params": { "orderNumber": "ORD-2024-001", "status": "shipped", "details": "Arriving in 2-3 business days", "trackingUrl": "track.tajo.com/ORD-2024-001" }}Personalized Campaign SMS
Birthday Special Offers
{ "type": "marketing", "sender": "TajoBday", "recipient": "+1234567890", "content": "๐ Happy Birthday {{contact.FIRSTNAME}}! Here's a special gift: {{params.birthdayBonus}} bonus points + {{params.discountCode}} for {{params.discountAmount}} off! Valid until {{params.expiryDate}}", "params": { "birthdayBonus": "500", "discountCode": "BIRTHDAY25", "discountAmount": "25%", "expiryDate": "end of month" }}Abandoned Cart Recovery
{ "content": "๐ Hi {{contact.FIRSTNAME}}, you left {{params.itemCount}} items in your cart worth {{params.cartValue}}. Complete your purchase and earn {{params.potentialPoints}} points! Continue: {{params.cartUrl}}", "params": { "itemCount": "3", "cartValue": "$299.97", "potentialPoints": "300", "cartUrl": "tajo.com/cart" }}Flash Sale Alerts
{ "content": "โก {{contact.FIRSTNAME}}, FLASH SALE: {{params.saleDetails}}! {{params.loyaltyTier}} members get {{params.bonusPoints}} bonus points! Shop now: {{params.saleUrl}} ({{params.timeLeft}} left)", "params": { "saleDetails": "50% off electronics", "loyaltyTier": "Gold", "bonusPoints": "double", "saleUrl": "tajo.com/flash", "timeLeft": "6 hours" }}Advanced SMS Features
Template-based SMS
{ "type": "transactional", "templateId": 123, "params": { "customerName": "John Doe", "pointsBalance": "2,350", "nextReward": "Free shipping at 2,500 points" }}Scheduled SMS
{ "type": "transactional", "sender": "TajoRemind", "recipient": "+1234567890", "content": "โฐ Reminder: Your {{params.pointsExpiring}} points expire in {{params.daysLeft}} days! Use them at tajo.com/rewards", "scheduledAt": "2024-01-30T09:00:00Z", "params": { "pointsExpiring": "500", "daysLeft": "7" }}Unicode Support
{ "type": "transactional", "unicodeEnabled": true, "content": "๐ ยกFelicidades {{contact.FIRSTNAME}}! Has ganado {{params.points}} puntos ๐", "params": { "points": "150" }}SMS Campaign Segmentation
Tier-based Messaging
{ "type": "marketing", "content": "{{#if contact.LOYALTY_TIER == 'Platinum'}}๐ VIP Alert: Early access to our sale + triple points!{{else}}๐ Loyalty member: Get double points on your next purchase!{{/if}}", "webUrl": "https://tajo.com/sale"}Geo-targeted SMS
{ "content": "๐ {{contact.FIRSTNAME}}, there's a Tajo store near you! Visit {{params.nearestStore}} and show this text for {{params.inStoreBonus}} bonus points!", "params": { "nearestStore": "123 Main St, NYC", "inStoreBonus": "100" }}Compliance and Best Practices
Opt-in Verification
{ "type": "transactional", "content": "Welcome to Tajo SMS alerts! Reply YES to confirm you want loyalty updates and exclusive offers. Reply STOP to opt out anytime. Msg & data rates may apply."}Opt-out Handling
{ "type": "transactional", "content": "You've been unsubscribed from Tajo SMS alerts. You'll still receive important order updates. To rejoin, text START. Questions? Contact [email protected]"}Error Handling
{ "code": "invalid_recipient", "message": "Phone number format invalid", "details": { "recipient": "123-456-7890", "expectedFormat": "+1234567890" }}{ "code": "message_too_long", "message": "SMS content exceeds character limit", "details": { "length": 180, "limit": 160, "segments": 2 }}SMS Analytics
Track key metrics:
- Delivery rates
- Click-through rates (for links)
- Conversion rates
- Opt-out rates
- Customer engagement scores
Cost Optimization
Character Count Management
{ "content": "Hi {{contact.FIRSTNAME}}! +{{params.points}}pts from order #{{params.orderNum}}. Total: {{params.total}}pts. tajo.com/rewards", "estimatedSegments": 1, "characterCount": 89}Bulk SMS for Segments
{ "recipients": [ { "phone": "+1234567890", "params": { "name": "John", "points": "150" } }, { "phone": "+1234567891", "params": { "name": "Jane", "points": "200" } } ], "content": "Hi {{params.name}}! You earned {{params.points}} points!"}Integration with Tajo Platform
- Order Confirmations: Automatic SMS for purchase confirmations
- Point Notifications: Real-time point balance updates
- Tier Changes: Immediate notifications for tier upgrades
- Expiry Alerts: Proactive point expiration warnings
- Promotional Campaigns: Targeted offers based on behavior
Best Practices
- Keep it Short: SMS is limited, be concise but engaging
- Personalize: Use customer data for relevant messaging
- Timing: Send at optimal times for your audience
- Clear CTAs: Include clear next steps or links
- Compliance: Always include opt-out instructions
- Test: A/B test different message formats