Invia Email Transazionale
Invia email transazionali personalizzate ai tuoi clienti per aggiornamenti del programma fedeltà, conferme d’ordine, notifiche premi e campagne di coinvolgimento.
Avvio Rapido
Richiesta Email Base
POST https://api.brevo.com/v3/smtp/emailContent-Type: application/jsonapi-key: YOUR_API_KEY
{ "sender": { "name": "Tajo Loyalty", }, "to": [ { "name": "Customer Name" } ], "subject": "Your loyalty points have been updated!", "htmlContent": "<h1>Loyalty Update</h1><p>You earned 100 points from your recent purchase!</p>", "textContent": "Loyalty Update: You earned 100 points from your recent purchase!"}Risposta
{}Casi d’Uso del Programma Fedeltà
Email di Benvenuto per Nuovi Clienti
{ "sender": { "name": "Tajo Loyalty Program", }, "to": [ { "email": "{{params.email}}", "name": "{{params.name}}" } ], "templateId": 1, "params": { "name": "John Doe", "welcomeBonus": "500", "loyaltyTier": "Bronze" }}Aggiornamento Saldo Punti
{ "subject": "Points Balance Update - {{params.pointsEarned}} Points Added", "params": { "customerName": "John Doe", "pointsEarned": "150", "totalPoints": "1,250", "transactionType": "Purchase", "orderNumber": "ORD-2024-001" }}Conferma Riscatto Premio
{ "subject": "Reward Redeemed Successfully", "params": { "rewardName": "10% Off Next Purchase", "pointsUsed": "1000", "remainingPoints": "250", "couponCode": "SAVE10NOW", "expiryDate": "2024-03-15" }}Parametri
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
sender | Oggetto | Sì | Informazioni sul mittente |
to | Array | Sì | Lista destinatari (max 50) |
subject | Stringa | Sì | Oggetto dell’email |
htmlContent | Stringa | No | Contenuto HTML dell’email |
textContent | Stringa | No | Contenuto testo dell’email |
templateId | Intero | No | ID template (alternativa al contenuto) |
params | Oggetto | No | Parametri template |
headers | Oggetto | No | Intestazioni personalizzate |
attachment | Array | No | Allegati di file |
Funzionalità Avanzate per Tajo
Segmentazione Clienti
{ "to": [ { "name": "Premium Customer" } ], "params": { "loyaltyTier": "Premium", "personalizedOffers": [ "Exclusive 20% off luxury items", "Free premium shipping" ] }}Configurazione A/B Test
{ "subject": "{{params.subjectVariant}}", "params": { "subjectVariant": "Limited Time: Double Points Weekend!", "contentVariant": "premium", "testGroup": "A" }}Gestione degli Errori
{ "code": "invalid_parameter", "message": "Email address is invalid", "details": { "field": "to[0].email", "value": "invalid-email" }}Passi Successivi
- Configura Template Email
- Configura Integrazione SMS
- Traccia gli Eventi Email
- Integrazione Programma Fedeltà