# Yotpo (v2)

Information note **Yotpo extraction is supported by Stitch**   
This integration is powered by [Singer's](https://www.singer.io/) Yotpo tap and certified by Stitch. [Check out and contribute to the repo on GitHub](https://github.com/singer-io/tap-yotpo).  
  
For support, contact [Support](https://community.qlik.com/t5/Support/ct-p/qlikSupport).

## Yotpo integration summary

Stitch’s Yotpo integration replicates data using the [Yotpo Core API](https://apidocs.yotpo.com/reference). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#schema) section for a list of objects available for replication.

## Yotpo feature snapshot

A high-level look at Stitch's Yotpo (v2) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on September 20, 2019 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Stitch](https://community.qlik.com/t5/Support/ct-p/qlikSupport) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | [singer-io/tap-yotpo](https://github.com/singer-io/tap-yotpo) |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Remove icon<br><br>Column selection is not supported for this integration. All available columns in tables set to replicate will be selected.<br><br><br>Unsupported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting Yotpo

### Yotpo setup requirements

To set up Yotpo in Stitch, you need:

* **To be the Account Administrator in Yotpo.** [This is required](https://support.yotpo.com/en/article/finding-your-app-key-and-your-secret-key) to access your Yotpo API credentials.

### Step 1: Retrieve your Yotpo API credentials

Information note **Note**: You must be the Yotpo Account Administrator to complete this step.

1. Sign into your [Yotpo account](https://yap.yotpo.com/#/login).

2. Click the user menu (person icon) in the top right corner.

3. Click **Account Settings**.

4. On the **Account Settings** page, click the **Store** tab.

5. Locate the **API Credentials** section:

   ![The API Credentials section in Yotpo, highlighted](https://help.qlik.com/en-US/stitch/images/integrations/yotpo-api-credentials.png)The API Credentials section in Yotpo, highlightedThe API Credentials section in Yotpo, highlighted

6. The **App Key** field contains your **API Key**, and the **Secret Key** is your **API Secret**.

Leave this page open for now - you’ll need it to complete the next step.

### Step 2: Add Yotpo as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **Yotpo** icon.

4. 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 Yotpo” would create a schema called `stitch_yotpo` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **Yotpo API Key** field, paste the value from the **App Key** field in your Yotpo account.

6. In the **Yotpo API Secret** field, paste the value from the **Secret Key** field in your Yotpo account.

### Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your Yotpo 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 Yotpo’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 4: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Yotpo integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (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](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Step 5: Set objects to replicate

Information note **Is an object missing or not replicating?** Verify that the object meets the requirements for [selection](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#selection-requirements) and [replication](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#replication-requirements).

The last step is to select the tables you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#schema)

**Note**: If a replication job is currently in progress, new selections won’t be used until the next job starts.

* Selection options
* Individual tables
* All tables

For Yotpo integrations, you can select:

1. **Individual tables**

2. **All tables**

Click the tabs to view instructions for each selection method.

1. In the integration’s **Tables to Replicate tab**, locate a table you want to replicate.

2. To track a table, click the **checkbox** next to the table’s name. A blue checkmark means the table is set to replicate.

3. Repeat this process for all the tables you want to replicate.

4. When finished, click the **Finalize Your Selections** button at the bottom of the screen to save your selections.

Information note **Important**: Using the **Select All** feature will overwrite any previous selections. However, selections aren’t final until **Finalize Your Selections** is clicked. Clicking **Cancel** will restore your previous selections. Refer to the [Select All guide](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#set-all-data-to-replicate) for more info about this feature.

1. Click into the integration from the Stitch Dashboard page.

2. Click the **Tables to Replicate** tab.

3. In the list of tables, click the box next to the **Table Names** column.

4. In the menu that displays, click **Track all Tables and Fields**:

   ![The Track all Tables and Fields menu in the Tables to Replicate tab](https://help.qlik.com/en-US/stitch/images/replication/select-all-tables-menu.png)The Track all Tables and Fields menu in the Tables to Replicate tabThe Track all Tables and Fields menu in the Tables to Replicate tab

5. Click the **Finalize Your Selections** button at the bottom of the page to save your data selections.

### Initial and historical replication jobs

After you finish setting up Yotpo, 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.**

Information note

**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](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) 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.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## Yotpo replication

Every time Stitch runs a replication job for Yotpo, the last 30 days’ worth of data will be replicated.

This is applicable to all tables in the integration.

Stitch replicates data in this way to account for updates made to existing records within the default attribution window of 30 days, thus ensuring you won’t make decisions based on stale (or false) data. **As a result, you may see a higher number of replicated rows than what’s being generated in Yotpo**.

Setting the Replication Frequency to a higher frequency - like 30 minutes - can result in re-replicating recent data and contribute to greater row usage. Replicating fewer tables or selecting a lower frequency can help keep your row count low.

Refer to the documentation for each of these tables in the next section for more info.

### Attribution window examples

In the tabs below are examples of attribution windows behave during historical (initial) and ongoing replication jobs.

* Historical and full re-replications
* Ongoing replications

For historical and full re-replications of Yotpo data, Stitch will query for and extract data newer than or equal to the date defined in the **Start Date** field in the Integration Settings page.

The **Start Date**, in conjunction with the **Attribution Window**, defines the minimum date Stitch should query for when extracting historical data. This is calculated as:

`Start Date - Attribution Window = Minimum Extraction Date`

**Example**

During the initial set up, the **Start Date** field is set to `06/03/2017`, or `June 3, 2017`.

To account for the Attribution Window, Stitch would calculate the **Minimum Extraction Date** value as: `2017-07-03 00:00:00 - 30 days = 2017-06-03 00:00:00`

If you were to write a SQL query using this date for the `reviews` table, it might look like this:

```
  SELECT *
    FROM yotpo.reviews
   WHERE created_at >= '2017-06-03 00:00:00'   /* Min. Extraction Date */
ORDER BY created_at
```

For ongoing replication jobs, Stitch will query for and extract data using the last saved maximum value in the table’s Replication Key column and the Attribution Window for the table.

**Note:** This applies to every replication job that takes place after the historical replication job.

**Example**

The last maximum saved Replication Key value for the `reviews` table is `2017-10-01 00:00:00`.

To account for the Attribution Window of 30 days, we’d subtract this from the last maximum saved Replication Key value:

`2017-10-01 00:00:00 - 30 days = 2017-09-01 00:00:00`

In this case, Stitch would query for and extract data that is newer than or equal to `2017-09-01 00:00:00` and older than or equal to `2017-10-01 00:00:00`.

If this were a SQL query, it might look like this:

```
  SELECT *
    FROM reviews
   WHERE created_at >= '2017-09-01 00:00:00'
                              /* max Replication Key value - Attribution Window */
     AND created_at <= '2017-10-01 00:00:00'
                              /* max Replication Key value from previous job */
ORDER BY created_at
```

## Yotpo table reference

Information note

**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 2** of this integration.

This is the latest version of the Yotpo integration.

Information note

**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` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### collections

The `collections` table contains data about your store’s product groupings - collections - in your Yotpo account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | yotpo\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [Yotpo documentation](https://core-api.yotpo.com/reference/collections "Opens in new tab: Yotpo documentation")<br><br><br>[collections schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/collections.json "Opens in new tab: collections schema on GitHub")<br><br><br>[Yotpo API method](https://core-api.yotpo.com/reference/retrieve-collections "Opens in new tab: Yotpo API method") |

collections table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **external\_id**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **yotpo\_id**<br><br><br>INTEGER |

### emails

The `emails` table contains data about every email sent from Yotpo.

#### Attribution window

When Stitch replicates data for this table, it will use an attribution window of 30 days to fetch updated email statistics such as opens, clicks, etc. This means that every time a replication job runs, the last 30 days’ worth of data will be replicated for this table.

Refer to the [Replication](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#replication) section for more info and examples of how the attribution window is used to query for data.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | email\_address<br><br>email\_sent\_timestamp |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | email\_sent\_timestamp |
| **Useful links** | [Yotpo documentation](https://apidocs.yotpo.com/v1.0/reference#email-analytics-intro "Opens in new tab: Yotpo documentation")<br><br><br>[emails schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/emails.json "Opens in new tab: emails schema on GitHub")<br><br><br>[Yotpo API method](https://apidocs.yotpo.com/v1.0/reference#raw-data "Opens in new tab: Yotpo API method") |

emails table foreign keys

| Join emails with | on |
| --- | --- |
| [unsubscribers](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#unsubscribers) | ```<br>emails.email_address = unsubscribers.user_email<br>``` |

emails table schema

| **arrived\_early\_timestamp**<br><br><br>DATE-TIME |
| --- |
| **clicked\_through\_timestamp**<br><br><br>DATE-TIME |
| **content\_creation\_timestamp**<br><br><br>DATE-TIME |
| **coupon\_code**<br><br><br>STRING |
| **email\_address**<br><br><br>STRING |
| **email\_sent\_timestamp**<br><br><br>DATE-TIME |
| **email\_type**<br><br><br>STRING |
| **failed\_timestamp**<br><br><br>DATE-TIME |
| **invalid\_address\_timestamp**<br><br><br>DATE-TIME |
| **marked\_spam\_timestamp**<br><br><br>DATE-TIME |
| **opened\_timestamp**<br><br><br>DATE-TIME |
| **order\_id**<br><br><br>STRING |
| **order\_timestamp**<br><br><br>DATE-TIME |
| **platform**<br><br><br>STRING |
| **product\_id**<br><br><br>STRING |
| **reminder\_num**<br><br><br>NUMBER |
| **review\_form**<br><br><br>STRING |
| **review\_type**<br><br><br>STRING |
| **sku**<br><br><br>STRING |
| **trr\_bundle\_id**<br><br><br>STRING |
| **trr\_bundle\_subject**<br><br><br>STRING |
| **unsubscribed\_timestamp**<br><br><br>DATE-TIME |

### order\_fulfillments

The `order_fulfillments` table contains data about fulfilled store orders in your Yotpo account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [Yotpo documentation](https://core-api.yotpo.com/reference/order-fulfillments "Opens in new tab: Yotpo documentation")<br><br><br>[order_fulfillments schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/order_fulfillments.json "Opens in new tab: order_fulfillments schema on GitHub")<br><br><br>[Yotpo API method](https://core-api.yotpo.com/reference/retrieve-order-fulfillments "Opens in new tab: Yotpo API method") |

order\_fulfillments table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **external\_id**<br><br><br>STRING |
| **fulfilled\_items**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand fulfilled\_items<br><br><table> <tr> <td> <p> <strong>								external_product_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								yotpo_product_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **fulfillment\_date**<br><br><br>DATE-TIME |
| **id**<br><br><br>INTEGER |
| **order\_id**<br><br><br>STRING |
| **shipment\_info**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand shipment\_info<br><br><table> <tr> <td> <p> <strong>								shipment_status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **status**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### orders

The `orders` table contains data about orders in your Yotpo account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | yotpo\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | order\_date |
| **Useful links** | [Yotpo documentation](https://core-api.yotpo.com/reference/orders "Opens in new tab: Yotpo documentation")<br><br><br>[orders schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/orders.json "Opens in new tab: orders schema on GitHub")<br><br><br>[Yotpo API method](https://core-api.yotpo.com/reference/retrieve-orders "Opens in new tab: Yotpo API method") |

orders table schema

| **billing\_address**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand billing\_address<br><br><table> <tr> <td> <p> <strong>								address1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								address2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								province_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								zip							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **cancellation**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand cancellation<br><br><table> <tr> <td> <p> <strong>								cancellation_date							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **checkout\_token**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **custom\_properties**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **customer**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand customer<br><br><table> <tr> <td> <p> <strong>								accepts_email_marketing							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								accepts_sms_marketing							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								custom_properties							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								external_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **external\_id**<br><br><br>STRING |
| **fulfillments**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand fulfillments<br><br><table> <tr> <td> <p> <strong>								external_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								fulfilled_items							</strong> </p> <p>							ARRAY																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand fulfilled_items</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								external_product_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								fulfillment_date							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								shipment_info							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand shipment_info</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								shipment_status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tracking_url							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **landing\_site\_url**<br><br><br>STRING |
| **line\_items**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand line\_items<br><br><table> <tr> <td> <p> <strong>								coupon_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								custom_properties							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> </td> </tr> <tr> <td> <p> <strong>								external_product_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								product_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								subtotal_price							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								total_price							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								yotpo_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **order\_date**<br><br><br>DATE-TIME |
| **order\_name**<br><br><br>STRING |
| **payment\_method**<br><br><br>STRING |
| **payment\_status**<br><br><br>STRING |
| **shipping\_address**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand shipping\_address<br><br><table> <tr> <td> <p> <strong>								address1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								address2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								province_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								zip							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **source**<br><br><br>STRING |
| **subtotal\_price**<br><br><br>NUMBER |
| **total\_price**<br><br><br>NUMBER |
| **updated\_at**<br><br><br>DATE-TIME |
| **yotpo\_id**<br><br><br>INTEGER |

### product\_reviews

The `product_reviews` table contains data about reviews for a certain product.

**Note**: This table is similar to the `reviews` table, but also contains custom fields. If you don’t have or need custom product fields, you may only want to replicate the `reviews` table to prevent redundant data.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | created\_at |
| **Useful links** | [Yotpo documentation](https://apidocs.yotpo.com/reference/about-storefront-reviews "Opens in new tab: Yotpo documentation")<br><br><br>[product_reviews schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/product_reviews.json "Opens in new tab: product_reviews schema on GitHub")<br><br><br>[Yotpo API method](https://apidocs.yotpo.com/reference/retrieve-reviews-for-a-product "Opens in new tab: Yotpo API method") |

product\_reviews table foreign keys

| Join product\_reviews with | on |
| --- | --- |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#products) | ```<br>product_reviews.product_id = products.yotpo_id<br>``` |
| [reviews](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#reviews) | ```<br>product_reviews.source_review_id = reviews.id<br>``` |

product\_reviews table schema

| **comment**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand comment<br><br><table> <tr> <td> <p> <strong>								comments_avatar							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								content							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								display_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| --- |
| **content**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_fields**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **deleted**<br><br><br>BOOLEAN |
| **domain\_key**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **images\_data**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand images\_data<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								original_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								thumb_url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **name**<br><br><br>STRING |
| **product\_id**<br><br><br>INTEGER |
| **product\_yotpo\_id**<br><br><br>STRING |
| **score**<br><br><br>NUMBER |
| **sentiment**<br><br><br>NUMBER |
| **source\_review\_id**<br><br><br>NUMBER |
| **title**<br><br><br>STRING |
| **user**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand user<br><br><table> <tr> <td> <p> <strong>								display_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								is_social_connected							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								social_image							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								user_type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **verified\_buyer**<br><br><br>BOOLEAN |
| **votes\_down**<br><br><br>INTEGER |
| **votes\_up**<br><br><br>INTEGER |

### product\_variants

The `product_variants` table contains data about product variations in your Yotpo account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | yotpo\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [Yotpo documentation](https://core-api.yotpo.com/reference/product-variants "Opens in new tab: Yotpo documentation")<br><br><br>[product_variants schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/product_variants.json "Opens in new tab: product_variants schema on GitHub")<br><br><br>[Yotpo API method](https://core-api.yotpo.com/reference/retrieve-product-variants "Opens in new tab: Yotpo API method") |

product\_variants table schema

| **compare\_at\_price**<br><br><br>NUMBER |
| --- |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **description**<br><br><br>STRING |
| **external\_id**<br><br><br>STRING |
| **gtins**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand gtins<br><br><table> <tr> <td> <p> <strong>								declared_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **image\_url**<br><br><br>STRING |
| **inventory\_quantity**<br><br><br>INTEGER |
| **is\_discontinued**<br><br><br>BOOLEAN |
| **is\_valid\_url\_format**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **options**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand options<br><br><table> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **price**<br><br><br>NUMBER |
| **sku**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **yotpo\_id**<br><br><br>INTEGER |
| **yotpo\_product\_id**<br><br><br>INTEGER |

### products

The `products` table contains data about products in your Yotpo account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | yotpo\_id |
| **Useful links** | [Yotpo documentation](https://apidocs.yotpo.com/reference#introduction-to-products "Opens in new tab: Yotpo documentation")<br><br><br>[products schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/products.json "Opens in new tab: products schema on GitHub")<br><br><br>[Yotpo API method](https://apidocs.yotpo.com/reference#retrieve-all-products "Opens in new tab: Yotpo API method") |

products table foreign keys

| Join products with | on |
| --- | --- |
| [product_reviews](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#product-reviews) | ```<br>products.yotpo_id = product_reviews.product_id<br>``` |

products table schema

| **brand**<br><br><br>STRING |
| --- |
| **compare\_at\_price**<br><br><br>NUMBER |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **custom\_properties**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **description**<br><br><br>STRING |
| **external\_created\_at**<br><br><br>DATE-TIME |
| **external\_id**<br><br><br>STRING |
| **external\_updated\_at**<br><br><br>DATE-TIME |
| **group\_name**<br><br><br>STRING |
| **gtins**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand gtins<br><br><table> <tr> <td> <p> <strong>								declared_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								detected_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **handle**<br><br><br>STRING |
| **image\_url**<br><br><br>STRING |
| **inventory\_quantity**<br><br><br>INTEGER |
| **is\_discontinued**<br><br><br>BOOLEAN |
| **is\_valid\_url\_format**<br><br><br>BOOLEAN |
| **mpn**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **price**<br><br><br>NUMBER |
| **sku**<br><br><br>STRING |
| **status**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **yotpo\_id**<br><br><br>INTEGER |

### reviews

The `reviews` table contains data about reviews.

**Note**: This table is similar to the `product_reviews` table, but doesn’t contain custom fields. If you have or need custom fields, you may want to only replicate the `product_reviews` table to prevent redundant data.

#### Attribution window

When Stitch replicates data for this table, it will use an attribution window of 30 days to fetch updated (or deleted) reviews. This means that every time a replication job runs, the last 30 days’ worth of data will be replicated for this table.

Refer to the [Replication](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#replication) section for more info and examples of how the attribution window is used to query for data.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [Yotpo documentation](https://apidocs.yotpo.com/reference#section-what-are-reviews "Opens in new tab: Yotpo documentation")<br><br><br>[reviews schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/reviews.json "Opens in new tab: reviews schema on GitHub")<br><br><br>[Yotpo API method](https://apidocs.yotpo.com/reference#retrieve-all-reviews "Opens in new tab: Yotpo API method") |

reviews table foreign keys

| Join reviews with | on |
| --- | --- |
| [product_reviews](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#product-reviews) | ```<br>reviews.id = product_reviews.source_review_id<br>``` |

reviews table schema

| **archived**<br><br><br>BOOLEAN |
| --- |
| **content**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **deleted**<br><br><br>BOOLEAN |
| **email**<br><br><br>STRING |
| **escalated**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **reviewer\_type**<br><br><br>STRING |
| **score**<br><br><br>NUMBER |
| **sentiment**<br><br><br>NUMBER |
| **sku**<br><br><br>STRING |
| **title**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **user\_reference**<br><br><br>STRING |
| **votes\_down**<br><br><br>NUMBER |
| **votes\_up**<br><br><br>NUMBER |

### unsubscribers

The `unsubscribers` table contains data about customers who unsubscribed from one of Yotpo’s emails.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [Yotpo documentation](https://apidocs.yotpo.com/reference#introduction-to-unsubscribers "Opens in new tab: Yotpo documentation")<br><br><br>[unsubscribers schema on GitHub](https://github.com/singer-io/tap-yotpo/tree/master/tap_yotpo/schemas/unsubscribers.json "Opens in new tab: unsubscribers schema on GitHub")<br><br><br>[Yotpo API method](https://apidocs.yotpo.com/reference#retrieve-a-list-of-unsubscribers "Opens in new tab: Yotpo API method") |

unsubscribers table foreign keys

| Join unsubscribers with | on |
| --- | --- |
| [emails](https://help.qlik.com/en-US/stitch/integrations/saas/yotpo#emails) | ```<br>unsubscribers.user_email = emails.email_address<br>``` |

unsubscribers table schema

| **email\_type\_id**<br><br><br>NUMBER |
| --- |
| **id**<br><br><br>INTEGER |
| **unsubscirbed\_by\_name**<br><br><br>STRING |
| **user\_email**<br><br><br>STRING |