How to Leverage Friendbuy's Fivetran Integration
With Friendbuy and Fivetran together, you can seamlessly extract, transform and load referral and loyalty program data into your data warehouse.
The Fivetran platform manages the world’s largest workloads with numerous database replication methods (including change data capture) to power your real-time, low-impact data movement.
How to Set up the Friendbuy and Fivetran Integration
Prerequisites
To connect Friendbuy to Fivetran, you need a Fivetran account.
Setup instructions
- Log in to your Friendbuy account.
- In the Developer Center section, go to the API Keys tab and make a note of the API Key. You will need it to configure Fivetran.

- Go to the Friendbuy Code tab and make a note of the Secret Key. You will also need it to configure Fivetran.

- In Fivetran's connector setup form, enter your chosen Destination schema name.
- Enter the API Key and API Secret you found in Steps 1 and 2.
- Click Save & Test. Fivetran will take it from here and sync your Friendbuy data.
Features
FEATURE NAME | SUPPORTED | NOTES |
Yes | All tables | |
Custom data | ||
Yes | Column level | |
Yes | ||
Yes | Connector level | |
History | ||
Yes | ||
Priority-first sync | ||
Fivetran data models | ||
Private networking |
Sync Overview
To capture new records, Fivetran will incrementally sync the following tables:
CLICKDISTRIBUTED_ADVOCATE_REWARDDISTRIBUTED_FRIEND_INCENTIVEEMAIL_CAPTUREPURCHASESHARESIGNUPWIDGET_VIEW
Schema information
Legend
🔑 = primary key
➤ = foreign key relation
⇱ = external link
DISTRIBUTED_FRIEND_INCENTIVE ⇱ | friend_email 🔑 campaign_id ▶ WIDGET_VIEW referral_code ▶ SHARE advocate_name campaign_name coupon_code friend_name incentive_amount incentive_type trigger |
DISTRIBUTED_ADVOCATE_REWARD ⇱ | fivetran_id 🔑 campaign_id ▶ WIDGET_VIEW referral_code ▶ SHARE advocate_customer_id advocate_name friend_customer_id reward_amount reward_type trigger |
CLICK ⇱ | destination_url 🔑 campaign_id ▶ WIDGET_VIEW referral_code ▶ SHARE advocate_name |
PURCHASE ⇱ | order_id 🔑 campaign_id ▶ WIDGET_VIEW referral_code ▶ SHARE advocate_email advocate_name amount customer_id coupon_code name new_customer |
PURCHASE_PRODUCT ⇱ | index 🔑 order_id ▶ PURCHASE name price quantity sku |
EMAIL_CAPTURE ⇱ | fivetran_id 🔑 campaign_id ▶ WIDGET_VIEW campaign_name created_on email_capture_type ip_address name newsletter_opt_in |
WIDGET_VIEW ⇱ | campaign_id 🔑 created_on 🔑 customer_id ▶ SIGNUP campaign_name ip_address user_agent widget_name widget_type |
SHARE ⇱ | created_on 🔑 referral_code 🔑 campaign_id ▶ WIDGET_VIEW advocate_email channel |
LEDGER_HEAD ⇱ | currency 🔑 customer_id 🔑 ▶ SIGNUP current_balance |
SIGNUP ⇱ | created_on 🔑 customer_id 🔑 campaign_id ▶ WIDGET_VIEW referral_code ▶ SHARE advocate_customer_id advocate_email advocate_name campaign_name channel name new_customer user_agent |