This integration is powered by Singer's Referral SaaSquatch tap. For support, visit the GitHub repo or join the Singer Slack.
Referral SaaSquatch integration summary
Stitch’s Referral SaaSquatch integration replicates data using the Referral SaaSquatch REST API. Refer to the Schema section for a list of objects available for replication.
Referral SaaSquatch feature snapshot
A high-level look at Stitch's Referral SaaSquatch (v1) integration, including release status, useful links, and the features supported in Stitch.
STITCH | |||
Release status |
Released on March 1, 2017 |
Supported by | |
Stitch plan |
Standard |
API availability |
Available |
Singer GitHub repository | |||
REPLICATION SETTINGS | |||
Anchor Scheduling |
Supported |
Advanced Scheduling |
Supported |
Table-level reset |
Unsupported |
Configurable Replication Methods |
Unsupported |
DATA SELECTION | |||
Table selection |
Unsupported |
Column selection |
Unsupported |
Select all |
Unsupported |
||
TRANSPARENCY | |||
Extraction Logs |
Supported |
Loading Reports |
Supported |
Connecting Referral SaaSquatch
Step 1: Retrieve your Referral SaaSquatch API credentials
- Sign into your Referral SaaSquatch account.
- In the Setup section of the left nav tab, click the Install option.
- In this page, locate the Tenant Alias and API Key fields.
- In the API Key field, click the Click to Reveal link to reveal your API Key.
Leave this page open for now - you’ll need it to complete the setup in Stitch.
Step 2: Add Referral SaaSquatch as a Stitch data source
- Sign into your Stitch account.
-
On the Stitch Dashboard page, click the Add Integration button.
-
Click the Referral SaaSquatch icon.
-
Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.
For example, the name “Stitch Referral SaaSquatch” would create a schema called
stitch_referral_saasquatch
in the destination. Note: Schema names cannot be changed after you save the integration. - In the Tenant Alias field, paste your Referral SaaSquatch Tenant Alias.
- In the API Key field, paste your Referral SaaSquatch API Key.
Step 3: Define the historical replication start date
The Sync Historical Data setting defines the starting date for your Referral SaaSquatch integration. This means that data equal to or newer than this date will be replicated to your data warehouse.
Change this setting if you want to replicate data beyond Referral SaaSquatch’s default setting of 1 year. For a detailed look at historical replication jobs, check out the Syncing Historical SaaS Data guide.
Step 4: Create a replication schedule
In the Replication Frequency section, you’ll create the integration’s replication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.
Referral SaaSquatch integrations support the following replication scheduling methods:
-
Advanced Scheduling using Cron (Advanced or Premium plans only)
To keep your row usage low, consider setting the integration to replicate less frequently. See the Understanding and Reducing Your Row Usage guide for tips on reducing your usage.
Initial and historical replication jobs
After you finish setting up Referral SaaSquatch, its Sync Status may show as Pending on either the Stitch Dashboard or in the Integration Details page.
For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial replication job for the integration. This may take some time to complete.
Initial replication jobs with Anchor Scheduling
If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the Anchor Scheduling documentation for more information.
Free historical data loads
The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.
Referral SaaSquatch table reference
Schemas and versioning
Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.
The schema and info displayed below is for version 1 of this integration.
This is the latest version of the Referral SaaSquatch integration.
Table and column names in your destination
Depending on your destination, table and column names may not appear as they are outlined below.
For example: Object names are lowercased in Redshift (CusTomERs
> customers
), while case is maintained in PostgreSQL destinations (CusTomERs
> CusTomERs
). Refer to the Loading Guide for your destination for more info.
referrals
The referrals
table contains info about all of the referrals in your Referral SaaSquatch tenant.
Key-based Incremental |
|
Primary Key |
id |
Useful links |
Join referrals with | on |
---|---|
reward_balances |
referrals.referredUser = reward_balances.userId referrals.referrerUser = reward_balances.userId referrals.referredAccount = reward_balances.accountId referrals.referrerAccount = reward_balances.accountId |
users |
referrals.referredUser = users.id referrals.referrerUser = users.id referrals.referredAccount = users.accountId referrals.referrerAccount = users.accountId |
dateConverted
DATE-TIME |
dateModerated
DATE-TIME |
dateReferralEnded
DATE-TIME |
dateReferralPaid
DATE-TIME |
dateReferralStarted
DATE-TIME |
id OBJECT |
programId STRING |
referredAccount STRING |
referredModerationStatus STRING |
referredReward STRING |
referredUser STRING |
referrerAccount STRING |
referrerModerationStatus STRING |
referrerReward STRING |
referrerUser STRING |
reward_balances
The reward_balances
table contains info about the balances for all rewards.
Key-based Incremental |
|
Primary Keys |
userId accountId |
Useful links |
Join reward_balances with | on |
---|---|
referrals |
reward_balances.userId = referrals.referredUser reward_balances.userId = referrals.referrerUser reward_balances.accountId = referrals.referredAccount reward_balances.accountId = referrals.referrerAccount |
users |
reward_balances.userId = users.id reward_balances.accountId = users.accountId |
accountId OBJECT |
amount INTEGER |
type STRING |
unit STRING |
userId OBJECT |
users
The users
table contains info about the users in your Referral SaaSquatch tenant.
Key-based Incremental |
|
Primary Keys |
id accountId |
Useful links |
Join users with | on |
---|---|
referrals |
users.id = referrals.referredUser users.id = referrals.referrerUser users.accountId = referrals.referredAccount users.accountId = referrals.referrerAccount |
reward_balances |
users.id = reward_balances.userId users.accountId = reward_balances.accountId |
accountId OBJECT |
dateCreated
DATE-TIME |
STRING |
emailHash STRING |
emailShareLink STRING |
facebookShareLink STRING |
firstName STRING |
firstSeenIP STRING |
id OBJECT |
imageUrl STRING |
lastName STRING |
lastSeenIP STRING |
linkedinShareLink STRING |
locale STRING |
referralSource STRING |
shareLink STRING |
twitterShareLink STRING |
Related | Troubleshooting |
Questions? Feedback?
Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.