Connect commercetools to Friendbuy to launch advocate and referred-friend flows with referral widgets, reward and promo code automation, attribution tracking, and fraud controls.
• Customer identifiers (email, customer ID, and optionally device or session identifiers) are mapped between Friendbuy and Commercetools to associate advocates and referred friends with storefront behavior.
• Referral events from Friendbuy (advocate share, friend click, signup, and conversion) are correlated with Commercetools carts and orders using promo codes, link parameters, and order metadata.
• Order data is sent to Friendbuy on placement and on key status changes, enabling reward eligibility checks based on order value, currency, discounts, and cancellations.
• Promo codes generated in Friendbuy are validated against Commercetools discount code rules, with ownership defined to avoid code collisions across channels and campaigns.
• Reward issuance and redemption states are tracked as immutable events, and mapped to Commercetools customer records or order custom fields for support-friendly auditing.
• Fraud and self-referral controls are enforced through rule evaluation on event streams, with flagged conversions logged for review and reward holds or reversals.
.png)
We pass Friendbuy referral IDs and promo codes into commercetools cart and order data, then return order and customer outcomes for accurate reward issuance and attribution.
Typical sync includes customer identifiers, referral clicks, advocate and friend status, promo code redemptions, order totals, refunds, and reward events for clean reporting.
Yes, we map Friendbuy campaigns to commercetools stores, currencies, and locales, so widgets, codes, and rewards follow the right storefront rules.
We implement rule checks on cart and order events, then trigger Friendbuy rewards only when conditions are met, such as net order value, shipment, or return windows.
We configure Friendbuy fraud controls and add server-side validation in commercetools to detect self-referrals, repeated accounts, and suspicious redemption patterns.




