آرڈر بنائیں
ای کامرس آرڈرز کو Brevo کے ساتھ سنک کریں تاکہ لائلٹی پوائنٹس خودکار طور پر شمار ہوں، گاہکوں کے ٹیئرز اپ ڈیٹ ہوں اور ذاتی نوعیت کی مارکیٹنگ مہمات شروع ہوں۔
فوری آغاز
بنیادی آرڈر سازی
POST https://api.brevo.com/v3/ecommerce/ordersContent-Type: application/jsonapi-key: YOUR_API_KEY
{ "id": "ORD-2024-001", "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"}جواب
{ "id": "ORD-2024-001", "created": true, "loyaltyPointsAwarded": 310}Tajo لائلٹی انٹیگریشن
لائلٹی حساب کے ساتھ آرڈر
{ "id": "ORD-2024-001", "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"}جدید لائلٹی خصوصیات
سالگرہ کے بونس کا آرڈر
{ "loyalty": { "pointsEarned": 200, "birthdayBonus": 500, "bonusReason": "Birthday Month", "totalBonusPoints": 500, "pointsMultiplier": 2.0, "specialOffer": "Double Points Week" }}ریفرل آرڈر
{ "loyalty": { "pointsEarned": 150, "referralBonus": 250, "referredBy": "CUST-67890", "referralCode": "REF-FRIEND50", "firstPurchaseBonus": 100 }, "metadata": { "isReferralOrder": true, "referralSource": "Friend Referral" }}سبسکرپشن آرڈر
{ "subscription": { "id": "SUB-2024-001", "type": "Monthly", "frequency": 30, "nextBilling": "2024-02-25", "isRecurring": true }, "loyalty": { "pointsEarned": 100, "subscriptionBonus": 50, "loyaltyMultiplier": 1.1 }}لائلٹی کے لیے پروڈکٹ کیٹیگریز
کیٹیگری پر مبنی پوائنٹ ملٹی پلائرز
{ "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" } ]}آرڈر کی حیثیت کی اپ ڈیٹس
آرڈر کی تکمیل
{ "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" }}آرڈر کا اختتام
{ "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" }}بیچ آرڈر پروسیسنگ
بلک سنک کے لیے متعدد آرڈرز بنائیں:
{ "orders": [ { "id": "ORD-2024-001", "products": [...], "revenue": 199.99 }, { "id": "ORD-2024-002", "products": [...], "revenue": 299.99 } ]}ایرر ہینڈلنگ
{ "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": { "suggestion": "Create contact first" }}ویب ہکس انٹیگریشن
آرڈر کی حیثیت کی تبدیلیاں سنک کرنے کے لیے ویب ہکس سیٹ اپ کریں:
{ "webhookUrl": "https://your-tajo-app.com/webhooks/brevo", "events": [ "order.created", "order.updated", "order.shipped", "order.delivered", "loyalty.points.awarded" ]}Tajo کے لیے بہترین طریقے
- ریئل ٹائم سنک: چیک آؤٹ کے فوراً بعد آرڈرز بنائیں
- مکمل ڈیٹا: لائلٹی سے متعلق تمام معلومات شامل کریں
- حیثیت کی اپ ڈیٹس: درست ٹریکنگ کے لیے آرڈر کی حیثیت تازہ رکھیں
- ایرر سے بحالی: نقل شدہ آرڈرز اور غائب گاہکوں کو خوش اسلوبی سے سنبھالیں
- پوائنٹس کا حساب: تصدیق کریں کہ لائلٹی پوائنٹس کا حساب آپ کے سسٹم سے مطابقت رکھتا ہے
- گاہکوں کی سیگمنٹیشن: ہدف شدہ مہمات کے لیے آرڈر کا ڈیٹا استعمال کریں
اینالیٹکس اور رپورٹنگ
اہم میٹرکس ٹریک کریں:
- آرڈر کی قیمت کے رجحانات
- لائلٹی پوائنٹس کے استعمال کی شرح
- گاہک کی لائف ٹائم ویلیو
- ٹیئر اپ گریڈ کے پیٹرنز
- مہم کی مؤثریت
اگلے اقدامات
- آرڈر کی حیثیت اپ ڈیٹ کریں
- لائلٹی پروگرامز سیٹ اپ کریں
- پوائنٹ رولز کنفیگر کریں
- پروڈکٹ کیٹیگریز بنائیں