# Revinate (v1)

Information note **Revinate is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) Revinate tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-revinate) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## Revinate integration summary

Stitch’s Revinate integration replicates data using the [Revinate Porter API](https://porter.revinate.com/documentation). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#schema) section for a list of objects available for replication.

## Revinate feature snapshot

A high-level look at Stitch's Revinate (v1) 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 February 13, 2019 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **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-revinate](https://github.com/singer-io/tap-revinate) |  |  |
| **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 Remove icon<br><br>Table selection is not supported for this integration. All available table and fields will be automatically selected for replication.<br><br><br>Unsupported | **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 Remove icon<br><br>As this integration doesn't support table or column selection, all available tables and columns are automatically replicated.<br><br><br>Unsupported |  |  |
| **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 Revinate

### Revinate setup requirements

To set up Revinate in Stitch, you need:

* **A Revinate account with API access.** Reach out to your Revinate sales representative or account manager to obtain the correct permissions.

* **A Revinate API token and secret**. To obtain these credentials, reach out to your Revinate sales representative or account manager.

### Step 1: Add Revinate 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 **Revinate** 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 Revinate” would create a schema called `stitch_revinate` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **Username** field, enter your Revinate username.

6. In the **API Key** field, paste your Revinate API key. Your Revinate API token must be obtained through [your Revinate sales representative or account manager](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#setup-requirements).

7. In the **API Secret** field, paste your Revinate API secret. Your Revinate API secret must be obtained through [your Revinate sales representative or account manager](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#setup-requirements).

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

The Sync Historical Data setting defines the starting date for your Revinate 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 Revinate’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 3: 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.

Revinate 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.

### Initial and historical replication jobs

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

## Revinate replication

### Extraction overview

When Stitch runs a replication job for Revinate, a few things will happen:

1. First, Stitch will get all the hotels that the [authenticating user](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to.
2. Stitch will [replicate review snapshot data](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#replicate-review-snapshots) (`hotel_reviews_snapshot`, `hotel_reviews_snapshot_by_site`, `hotel_reviews_snapshot_by_time`) for the hotel.
3. Stitch will replicate data about the hotel (`hotels`).
4. Stitch will repeat steps 2-3 until review snapshot and hotel data has been replicated for all accessible hotels.
5. Stitch will replicate review data (`reviews`) based on the last saved `updated_at` value, which is the table’s Replication Key.

### Replicating review snapshots

When Stitch extracts review snapshot data, it will do so using an **Attribution Window** of **1 week**. This means that during each replication job, Stitch will replicate snapshot data for that last completed week. For example: If the integration is scheduled to run every 30 minutes, then snapshot data for the last week will be replicated every 30 minutes.

This is applicable to the `hotel_reviews_snapshot`, `hotel_reviews_snapshot_by_site`, and `hotel_reviews_snapshot_by_time` tables.

## Revinate 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 1** of this integration.

This is the latest version of the Revinate 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.

### hotel\_reviews\_snapshot

The `hotel_reviews_snapshot` table contains snapshot summary stats of reviews for the last completed week, segmented by hotel.

**Note**: Stitch will only replicate review snapshot data for the hotels that the user whose API key is used to [authenticate the integration](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to. If you’re missing records, verify that the authenticating user has access to those hotels in Revinate.

#### Replication

During each replication job, snapshot data for the last completed week will be replicated. This means that if the integration is scheduled to run every 30 minutes, then snapshot data for the last week will be replicated every 30 minutes.

| **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)** | hotel\_id<br><br>snapshot\_start\_date |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | snapshot\_start\_date |
| **Useful links** | [hotel_reviews_snapshot schema on GitHub](https://github.com/singer-io/tap-revinate/blob/master/tap_revinate/schemas.py#L26 "Opens in new tab: hotel_reviews_snapshot schema on GitHub")<br><br><br>[Revinate API method](https://porter.revinate.com/documentation#hotels "Opens in new tab: Revinate API method") |

hotel\_reviews\_snapshot table foreign keys

| Join hotel\_reviews\_snapshot with | on |
| --- | --- |
| [hotel_reviews_snapshot_by_site](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-site) | ```<br>hotel_reviews_snapshot.hotel_id = hotel_reviews_snapshot_by_site.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_time](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-time) | ```<br>hotel_reviews_snapshot.hotel_id = hotel_reviews_snapshot_by_time.hotel_id<br>``` |
| [hotels](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotels) | ```<br>hotel_reviews_snapshot.hotel_id = hotels.hotel_id<br>``` |
| [reviews](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#reviews) | ```<br>hotel_reviews_snapshot.hotel_id = reviews.hotel_id<br>``` |

hotel\_reviews\_snapshot table schema

| **aggregate\_average\_rating**<br><br><br>NUMBER |
| --- |
| **aggregate\_new\_reviews**<br><br><br>NUMBER |
| **aggregate\_pos\_reviews\_pct**<br><br><br>NUMBER |
| **aggregate\_trip\_advisor\_marke\_ranking\_pctl**<br><br><br>NUMBER |
| **aggregate\_trip\_advisor\_market\_ranking**<br><br><br>INTEGER |
| **aggregate\_trip\_advisor\_market\_size**<br><br><br>INTEGER |
| **aggregate\_values\_json**<br><br><br>STRING |
| **hotel\_id**<br><br><br>INTEGER |
| **hotel\_reviews\_snapshot\_json**<br><br><br>STRING |
| **hotel\_reviews\_snapshot\_url**<br><br><br>STRING |
| **links\_json**<br><br><br>STRING |
| **snapshot\_end\_date**<br><br><br>INTEGER |
| **snapshot\_start\_date**<br><br><br>INTEGER |
| **values\_by\_review\_site\_json**<br><br><br>STRING |
| **values\_by\_time\_json**<br><br><br>STRING |

### hotel\_reviews\_snapshot\_by\_site

The `hotel_reviews_snapshot_by_site` table contains snapshot summary stats of reviews for the last completed week, segmented by hotel and review site.

**Note**: Stitch will only replicate review snapshot data for the hotels that the user whose API key is used to [authenticate the integration](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to. If you’re missing records, verify that the authenticating user has access to those hotels in Revinate.

#### Replication

During each replication job, snapshot data for the last completed week will be replicated. This means that if the integration is scheduled to run every 30 minutes, then snapshot data for the last week will be replicated every 30 minutes.

| **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)** | hotel\_id<br><br>review\_site\_id<br><br>snapshot\_start\_date |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | snapshot\_start\_date |
| **Useful links** | [Revinate documentation](https://porter.revinate.com/documentation#review-sites "Opens in new tab: Revinate documentation")<br><br><br>[hotel_reviews_snapshot_by_site schema on GitHub](https://github.com/singer-io/tap-revinate/blob/master/tap_revinate/schemas.py#L47 "Opens in new tab: hotel_reviews_snapshot_by_site schema on GitHub")<br><br><br>[Revinate API method](https://porter.revinate.com/documentation#hotels "Opens in new tab: Revinate API method") |

hotel\_reviews\_snapshot\_by\_site table foreign keys

| Join hotel\_reviews\_snapshot\_by\_site with | on |
| --- | --- |
| [hotel_reviews_snapshot](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot) | ```<br>hotel_reviews_snapshot_by_site.hotel_id = hotel_reviews_snapshot.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_time](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-time) | ```<br>hotel_reviews_snapshot_by_site.hotel_id = hotel_reviews_snapshot_by_time.hotel_id<br>``` |
| [hotels](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotels) | ```<br>hotel_reviews_snapshot_by_site.hotel_id = hotels.hotel_id<br>``` |
| [reviews](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#reviews) | ```<br>hotel_reviews_snapshot_by_site.hotel_id = reviews.hotel_id<br>```<br><br>```<br>hotel_reviews_snapshot_by_site.review_site_id = reviews.review_site_id<br>``` |

hotel\_reviews\_snapshot\_by\_site table schema

| **hotel\_id**<br><br><br>INTEGER |
| --- |
| **hotel\_reviews\_snapshot\_url**<br><br><br>STRING |
| **review\_site\_id**<br><br><br>INTEGER |
| **review\_site\_json**<br><br><br>STRING |
| **review\_site\_main\_url**<br><br><br>STRING |
| **review\_site\_name**<br><br><br>STRING |
| **review\_site\_slug**<br><br><br>STRING |
| **review\_site\_url**<br><br><br>STRING |
| **site\_average\_rating**<br><br><br>NUMBER |
| **site\_json**<br><br><br>STRING |
| **site\_new\_reviews**<br><br><br>INTEGER |
| **site\_pos\_reviews\_pct**<br><br><br>NUMBER |
| **site\_trip\_advisor\_market\_ranking**<br><br><br>INTEGER |
| **site\_trip\_advisor\_market\_ranking\_pctl**<br><br><br>NUMBER |
| **site\_trip\_advisor\_market\_size**<br><br><br>INTEGER |
| **snapshot\_end\_date**<br><br><br>INTEGER |
| **snapshot\_start\_date**<br><br><br>INTEGER |

### hotel\_reviews\_snapshot\_by\_time

The `hotel_reviews_snapshot_by_time` table contains snapshot summary stats of reviews for the last completed week, segmented by hotel and time.

**Note**: Stitch will only replicate review snapshot data for the hotels that the user whose API key is used to [authenticate the integration](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to. If you’re missing records, verify that the authenticating user has access to those hotels in Revinate.

#### Replication

During each replication job, snapshot data for the last completed week will be replicated. This means that if the integration is scheduled to run every 30 minutes, then snapshot data for the last week will be replicated every 30 minutes.

| **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)** | hotel\_id<br><br>unix\_time |
| **Useful links** | [Revinate documentation](https://porter.revinate.com/documentation#review-sites "Opens in new tab: Revinate documentation")<br><br><br>[hotel_reviews_snapshot_by_time schema on GitHub](https://github.com/singer-io/tap-revinate/blob/master/tap_revinate/schemas.py#L70 "Opens in new tab: hotel_reviews_snapshot_by_time schema on GitHub")<br><br><br>[Revinate API method](https://porter.revinate.com/documentation#hotels "Opens in new tab: Revinate API method") |

hotel\_reviews\_snapshot\_by\_time table foreign keys

| Join hotel\_reviews\_snapshot\_by\_time with | on |
| --- | --- |
| [hotel_reviews_snapshot](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot) | ```<br>hotel_reviews_snapshot_by_time.hotel_id = hotel_reviews_snapshot.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_site](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-site) | ```<br>hotel_reviews_snapshot_by_time.hotel_id = hotel_reviews_snapshot_by_site.hotel_id<br>``` |
| [hotels](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotels) | ```<br>hotel_reviews_snapshot_by_time.hotel_id = hotels.hotel_id<br>``` |
| [reviews](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#reviews) | ```<br>hotel_reviews_snapshot_by_time.hotel_id = reviews.hotel_id<br>``` |

hotel\_reviews\_snapshot\_by\_time table schema

| **hotel\_id**<br><br><br>INTEGER |
| --- |
| **hotel\_reviews\_snapshot\_url**<br><br><br>STRING |
| **snapshot\_average\_rating**<br><br><br>NUMBER |
| **snapshot\_new\_reviews**<br><br><br>NUMBER |
| **snapshot\_pos\_reviews\_pct**<br><br><br>NUMBER |
| **snapshot\_trip\_advisor\_market\_ranking**<br><br><br>INTEGER |
| **snapshot\_trip\_advisor\_market\_ranking\_pctl**<br><br><br>NUMBER |
| **snapshot\_trip\_advisor\_market\_size**<br><br><br>INTEGER |
| **time\_period\_json**<br><br><br>STRING |
| **unix\_time**<br><br><br>INTEGER |

### hotels

The `hotels` table contains info about the hotels in your Revinate account.

**Note**: Stitch will only replicate data for the hotels that the user whose API key is used to [authenticate the integration](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to. If you’re missing records, verify that the authenticating user has access to those hotels in Revinate.

| **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)** | hotel\_id |
| **Useful links** | [hotels schema on GitHub](https://github.com/singer-io/tap-revinate/blob/master/tap_revinate/schemas.py#L1 "Opens in new tab: hotels schema on GitHub")<br><br><br>[Revinate API method](https://porter.revinate.com/documentation#hotels "Opens in new tab: Revinate API method") |

hotels table foreign keys

| Join hotels with | on |
| --- | --- |
| [hotel_reviews_snapshot](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot) | ```<br>hotels.hotel_id = hotel_reviews_snapshot.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_site](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-site) | ```<br>hotels.hotel_id = hotel_reviews_snapshot_by_site.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_time](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-time) | ```<br>hotels.hotel_id = hotel_reviews_snapshot_by_time.hotel_id<br>``` |
| [reviews](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#reviews) | ```<br>hotels.hotel_id = reviews.hotel_id<br>``` |

hotels table schema

| **account\_type**<br><br><br>STRING |
| --- |
| **address1**<br><br><br>STRING |
| **address2**<br><br><br>STRING |
| **city**<br><br><br>STRING |
| **country**<br><br><br>STRING |
| **hotel\_id**<br><br><br>INTEGER |
| **hotel\_json**<br><br><br>STRING |
| **hotel\_reviews\_snapshot\_url**<br><br><br>STRING |
| **hotel\_url**<br><br><br>STRING |
| **links\_json**<br><br><br>STRING |
| **logo**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **postal\_code**<br><br><br>STRING |
| **revinate\_login\_uri**<br><br><br>STRING |
| **revinate\_purchase\_uri**<br><br><br>STRING |
| **slug**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **trip\_advisor\_id**<br><br><br>INTEGER |
| **url**<br><br><br>STRING |

### reviews

The `table_name` table contains a subset of the latest reviews for the hotels in your Revinate account.

**Note**: Stitch will only replicate review data for the hotels that the user whose API key is used to [authenticate the integration](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#add-stitch-data-source) has access to. If you’re missing records, verify that the authenticating user has access to those hotels in Revinate.

| **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)** | review\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [Revinate API method](https://porter.revinate.com/documentation#reviews "Opens in new tab: Revinate API method") |

reviews table foreign keys

| Join reviews with | on |
| --- | --- |
| [hotel_reviews_snapshot](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot) | ```<br>reviews.hotel_id = hotel_reviews_snapshot.hotel_id<br>``` |
| [hotel_reviews_snapshot_by_site](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-site) | ```<br>reviews.hotel_id = hotel_reviews_snapshot_by_site.hotel_id<br>```<br><br>```<br>reviews.review_site_id = hotel_reviews_snapshot_by_site.review_site_id<br>``` |
| [hotel_reviews_snapshot_by_time](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotel-reviews-snapshot-by-time) | ```<br>reviews.hotel_id = hotel_reviews_snapshot_by_time.hotel_id<br>``` |
| [hotels](https://help.qlik.com/en-US/stitch/integrations/saas/revinate#hotels) | ```<br>reviews.hotel_id = hotels.hotel_id<br>``` |

reviews table schema

| **author**<br><br><br>STRING |
| --- |
| **author\_location**<br><br><br>STRING |
| **body**<br><br><br>STRING |
| **crawled\_url**<br><br><br>STRING |
| **date\_collected**<br><br><br>INTEGER |
| **date\_review**<br><br><br>INTEGER |
| **guest\_stay\_json**<br><br><br>STRING |
| **hotel\_id**<br><br><br>INTEGER |
| **hotel\_url**<br><br><br>STRING |
| **language\_english\_name**<br><br><br>STRING |
| **language\_id**<br><br><br>INTEGER |
| **language\_json**<br><br><br>STRING |
| **language\_name**<br><br><br>STRING |
| **language\_slug**<br><br><br>STRING |
| **language\_url**<br><br><br>STRING |
| **links\_json**<br><br><br>STRING |
| **nps**<br><br><br>INTEGER |
| **rating**<br><br><br>NUMBER |
| **response\_json**<br><br><br>STRING |
| **review\_id**<br><br><br>INTEGER |
| **review\_json**<br><br><br>STRING |
| **review\_site\_id**<br><br><br>INTEGER |
| **review\_site\_json**<br><br><br>STRING |
| **review\_site\_main\_url**<br><br><br>STRING |
| **review\_site\_name**<br><br><br>STRING |
| **review\_site\_slug**<br><br><br>STRING |
| **review\_site\_url**<br><br><br>STRING |
| **review\_url**<br><br><br>STRING |
| **subratings\_cleanliness**<br><br><br>NUMBER |
| **subratings\_hotel\_condition**<br><br><br>NUMBER |
| **subratings\_json**<br><br><br>STRING |
| **subratings\_rooms**<br><br><br>NUMBER |
| **subratings\_service**<br><br><br>NUMBER |
| **survey\_topics\_json**<br><br><br>STRING |
| **title**<br><br><br>STRING |
| **trip\_type**<br><br><br>STRING |
| **updated\_at**<br><br><br>INTEGER |