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/sms
Content-Type: application/json
api-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

  1. Order Confirmations: Automatic SMS for purchase confirmations
  2. Point Notifications: Real-time point balance updates
  3. Tier Changes: Immediate notifications for tier upgrades
  4. Expiry Alerts: Proactive point expiration warnings
  5. Promotional Campaigns: Targeted offers based on behavior

Best Practices

  1. Keep it Short: SMS is limited, be concise but engaging
  2. Personalize: Use customer data for relevant messaging
  3. Timing: Send at optimal times for your audience
  4. Clear CTAs: Include clear next steps or links
  5. Compliance: Always include opt-out instructions
  6. Test: A/B test different message formats

Next Steps