Ajukan akses awal

Masukkan nama depan serta email atau nomor telepon Anda. Kami akan menghubungi Anda dengan detail akses Tajo.

Membuat Pesanan

Sinkronkan pesanan e-commerce dengan Brevo untuk menghitung poin loyalitas secara otomatis, memperbarui tier pelanggan, dan memicu kampanye pemasaran yang dipersonalisasi.

Mulai cepat

Pembuatan pesanan dasar

POST https://api.brevo.com/v3/ecommerce/orders
Content-Type: application/json
api-key: YOUR_API_KEY
{
"id": "ORD-2024-001",
"email": "[email protected]",
"billing": {
"address": "123 Main St",
"city": "New York",
"country": "US",
"phone": "+1234567890"
},
"products": [
{
"id": "PROD-123",
"name": "Premium Widget",
"quantity": 2,
"price": 149.99,
"category": ["Electronics", "Gadgets"]
}
],
"revenue": 309.97,
"date": "2024-01-25T14:30:00Z"
}

Respons

{
"id": "ORD-2024-001",
"created": true,
"loyaltyPointsAwarded": 310
}

Integrasi loyalitas Tajo

Pesanan dengan perhitungan loyalitas

{
"id": "ORD-2024-001",
"email": "[email protected]",
"customerId": "CUST-12345",
"loyaltyId": "LYL-2024-001",
"billing": {
"name": "John Doe",
"address": "123 Main St",
"city": "New York",
"state": "NY",
"country": "US",
"zipCode": "10001",
"phone": "+1234567890"
},
"shipping": {
"name": "John Doe",
"address": "456 Oak Ave",
"city": "Brooklyn",
"state": "NY",
"country": "US",
"zipCode": "11201",
"method": "Standard Shipping",
"cost": 9.99
},
"products": [
{
"id": "PROD-123",
"name": "Smart Watch Pro",
"variant": "Black/42mm",
"sku": "SW-PRO-BLK-42",
"quantity": 1,
"price": 299.99,
"category": ["Electronics", "Wearables"],
"brand": "TechBrand",
"loyaltyPointsEarned": 300,
"loyaltyMultiplier": 1.0
},
{
"id": "PROD-456",
"name": "Wireless Charger",
"sku": "WC-FAST-01",
"quantity": 1,
"price": 49.99,
"category": ["Electronics", "Accessories"],
"loyaltyPointsEarned": 50,
"loyaltyMultiplier": 1.0
}
],
"financial": {
"subtotal": 349.98,
"shipping": 9.99,
"tax": 28.00,
"discount": 35.00,
"total": 352.97,
"currency": "USD",
"paymentMethod": "Credit Card",
"paymentStatus": "Completed"
},
"loyalty": {
"pointsEarned": 353,
"bonusPoints": 50,
"pointsMultiplier": 1.2,
"tierBefore": "Silver",
"tierAfter": "Gold",
"tierUpgraded": true,
"totalPointsBalance": 2853,
"couponUsed": "SAVE10",
"couponDiscount": 35.00
},
"metadata": {
"source": "Website",
"campaign": "Summer Sale",
"referrer": "Google Ads",
"userAgent": "Mobile App",
"firstPurchase": false,
"returningCustomer": true
},
"date": "2024-01-25T14:30:00Z",
"status": "Completed"
}

Fitur loyalitas lanjutan

Pesanan dengan bonus ulang tahun

{
"loyalty": {
"pointsEarned": 200,
"birthdayBonus": 500,
"bonusReason": "Birthday Month",
"totalBonusPoints": 500,
"pointsMultiplier": 2.0,
"specialOffer": "Double Points Week"
}
}

Pesanan dari referal

{
"loyalty": {
"pointsEarned": 150,
"referralBonus": 250,
"referredBy": "CUST-67890",
"referralCode": "REF-FRIEND50",
"firstPurchaseBonus": 100
},
"metadata": {
"isReferralOrder": true,
"referralSource": "Friend Referral"
}
}

Pesanan langganan

{
"subscription": {
"id": "SUB-2024-001",
"type": "Monthly",
"frequency": 30,
"nextBilling": "2024-02-25",
"isRecurring": true
},
"loyalty": {
"pointsEarned": 100,
"subscriptionBonus": 50,
"loyaltyMultiplier": 1.1
}
}

Kategori produk untuk loyalitas

Pengali poin berbasis kategori

{
"products": [
{
"id": "PROD-LUXURY-001",
"category": ["Luxury", "Fashion"],
"loyaltyMultiplier": 2.0,
"loyaltyPointsEarned": 400
},
{
"id": "PROD-ECO-001",
"category": ["Eco-Friendly", "Sustainable"],
"loyaltyMultiplier": 1.5,
"loyaltyBonus": "Eco Warrior"
}
]
}

Pembaruan status pesanan

Pemenuhan pesanan

{
"id": "ORD-2024-001",
"status": "Shipped",
"tracking": {
"number": "TRK123456789",
"carrier": "UPS",
"url": "https://tracking.ups.com/TRK123456789"
},
"fulfillment": {
"date": "2024-01-26T10:00:00Z",
"warehouse": "NYC-01",
"method": "Ground Shipping"
}
}

Penyelesaian pesanan

{
"id": "ORD-2024-001",
"status": "Delivered",
"delivery": {
"date": "2024-01-28T16:30:00Z",
"signature": "Customer",
"location": "Front Door"
},
"loyalty": {
"reviewIncentive": 25,
"reviewIncentiveExpiry": "2024-02-28"
}
}

Pemrosesan pesanan secara batch

Buat beberapa pesanan sekaligus untuk sinkronisasi massal:

{
"orders": [
{
"id": "ORD-2024-001",
"email": "[email protected]",
"products": [...],
"revenue": 199.99
},
{
"id": "ORD-2024-002",
"email": "[email protected]",
"products": [...],
"revenue": 299.99
}
]
}

Penanganan error

{
"code": "duplicate_order",
"message": "Order ID already exists",
"details": {
"orderId": "ORD-2024-001",
"existingDate": "2024-01-25T14:30:00Z"
}
}
{
"code": "invalid_customer",
"message": "Customer email not found",
"details": {
"email": "[email protected]",
"suggestion": "Create contact first"
}
}

Integrasi Webhook

Siapkan Webhook untuk menyinkronkan perubahan status pesanan:

{
"webhookUrl": "https://your-tajo-app.com/webhooks/brevo",
"events": [
"order.created",
"order.updated",
"order.shipped",
"order.delivered",
"loyalty.points.awarded"
]
}

Praktik terbaik untuk Tajo

  1. Sinkronisasi real-time: Buat pesanan segera setelah checkout
  2. Data lengkap: Sertakan semua informasi yang relevan dengan loyalitas
  3. Pembaruan status: Jaga status pesanan tetap mutakhir agar pelacakan akurat
  4. Pemulihan error: Tangani pesanan duplikat dan pelanggan yang tidak ditemukan dengan baik
  5. Perhitungan poin: Pastikan perhitungan poin loyalitas sesuai dengan sistem Anda
  6. Segmentasi pelanggan: Gunakan data pesanan untuk kampanye yang tertarget

Analitik & pelaporan

Lacak metrik utama:

  • Tren nilai pesanan
  • Tingkat penukaran poin loyalitas
  • Nilai seumur hidup pelanggan
  • Pola kenaikan tier
  • Efektivitas kampanye

Langkah berikutnya

  • Memperbarui status pesanan
  • Menyiapkan program loyalitas
  • Mengonfigurasi aturan poin
  • Membuat kategori produk

Ajukan akses awal

Masukkan nama depan serta email atau nomor telepon Anda. Kami akan menghubungi Anda dengan detail akses Tajo.

deteksi otomatis
Asisten AI

Halo! Tanyakan apa saja tentang dokumentasi.