# Recurly (v1)

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

## Recurly integration summary

Stitch’s Recurly integration replicates data using the [Recurly Partner API (v2018-08-09)](https://partner-docs.recurly.com/v2018-08-09#section/Getting-Started). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#schema) section for a list of objects available for replication.

## Recurly feature snapshot

A high-level look at Stitch's Recurly (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 June 13, 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-recurly](https://github.com/singer-io/tap-recurly) |  |  |
| **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 Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **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 Recurly

### Recurly setup requirements

To set up Recurly in Stitch, you need:

* **Admin or Manager permissions in Recurly.** These permissions are required to create an API key for Stitch.

### Step 1: Generate a Recurly API key

Information note **Note**: You must have Admin or Manager permissions in Recurly to complete this step.

In this step, you’ll create an API key for Stitch.

1. Sign into your Recurly account.
2. Click **Admin &gt; Users** in the sidenav.
3. On the **Users** page, click the **Configure API Access** button at the top of the page. Thsi will open the **API Credentials** page.
4. Click the **Add Private API Key** button. The **Add Private API Key** page will display.
5. Fill in the fields as follows:
   * **Key Name**: Enter a name for the API key. For example: `Stitch`
   * **Notes**: Enter any notes you want about the API key.
6. Click **Save Changes**.

Leave this page open for now - you’ll need it to complete the setup in Stitch.

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

5. In the **API Key** field, paste the Recurly API key you created in [Step 1](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#generate-api-key).

6. In the **Recurly Subdomain** field, enter your Recurly subdomain. For example: If the full URL of the subdomain were `stitchdata.recurly.com`, you’d only enter `stitchdata` into this field.

7. In the **Quota Limit** field, enter the percentage of the API rate limit you want to allocate to the integration. For example: A value of `30` would be `30%` of the rate limit. Refer to [Recurly’s documentation](https://dev.recurly.com/docs/rate-limits) for more info.

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

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

Recurly 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 and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#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 and columns
* All tables and columns

For Recurly integrations, you can select:

1. **Individual tables and columns**

2. **All tables and columns**

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. To track a column, click the **checkbox** next to the column’s name. A blue checkmark means the column is set to replicate.

4. Repeat this process for all the tables and columns you want to replicate.

5. 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 Recurly, 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.

## Recurly 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 Recurly 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.

### accounts

The `accounts` table contains info about the customer accounts in your Recurly account. Account objects store the history of the customer, billing info, etc.

### Custom fields

Stitch’s Recurly integration supports replicating custom fields for accounts objects.

| **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** | [Recurly documentation](https://dev.recurly.com/docs/account-object "Opens in new tab: Recurly documentation")<br><br><br>[accounts schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/accounts.json "Opens in new tab: accounts schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_accounts "Opens in new tab: Recurly API method") |

accounts table foreign keys

| Join accounts with | on |
| --- | --- |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>accounts.id = adjustments.account.id<br>```<br><br>```<br>accounts.parent_account_id = adjustments.account.id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = adjustments.account.id<br>```<br><br>```<br>accounts.id = adjustments.account.parent_account_id<br>```<br><br>```<br>accounts.parent_account_id = adjustments.account.parent_account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = adjustments.account.parent_account_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>accounts.id = billing_info.account_id<br>```<br><br>```<br>accounts.parent_account_id = billing_info.account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = billing_info.account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>accounts.id = coupon_redemptions.account_id<br>```<br><br>```<br>accounts.parent_account_id = coupon_redemptions.account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = coupon_redemptions.account_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>accounts.id = invoices.account.id<br>```<br><br>```<br>accounts.parent_account_id = invoices.account.id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = invoices.account.id<br>```<br><br>```<br>accounts.id = invoices.account.parent_account_id<br>```<br><br>```<br>accounts.parent_account_id = invoices.account.parent_account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = invoices.account.parent_account_id<br>```<br><br>```<br>accounts.id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>accounts.parent_account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>accounts.id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>accounts.parent_account_id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = invoices.line_items.data.shipping_addresses.account_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>accounts.id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>accounts.parent_account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = subscriptions.shipping_address.account_id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>accounts.id = transactions.account.id<br>```<br><br>```<br>accounts.parent_account_id = transactions.account.id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = transactions.account.id<br>```<br><br>```<br>accounts.id = transactions.account.parent_account_id<br>```<br><br>```<br>accounts.parent_account_id = transactions.account.parent_account_id<br>```<br><br>```<br>accounts.shipping_addresses.account_id = transactions.account.parent_account_id<br>``` |

accounts table schema

| **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 address<br><br><table> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **bill\_to**<br><br><br>STRING |
| **billing\_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 billing\_info<br><br><table> <tr> <td> <p> <strong>								account_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								address							</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 address</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								company							</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>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								fraud							</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 fraud</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								decision							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								risk_rules_triggered							</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>								score							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								payment_method							</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 payment_method</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								exp_month							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								exp_year							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first_six							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_four							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								updated_by							</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 updated_by</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								country							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								valid							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								vat_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **cc\_emails**<br><br><br>STRING |
| **code**<br><br><br>STRING |
| **company**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_fields**<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 custom\_fields<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> |
| **deleted\_at**<br><br><br>DATE-TIME |
| **email**<br><br><br>STRING |
| **exemption\_certificate**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **hosted\_login\_token**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **last\_name**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **parent\_account\_id**<br><br><br>STRING |
| **preferred\_locale**<br><br><br>STRING |
| **shipping\_addresses**<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 shipping\_addresses<br><br><table> <tr> <td> <p> <strong>								account_id							</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							</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>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								nickname							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								vat_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **state**<br><br><br>STRING |
| **tax\_exempt**<br><br><br>BOOLEAN |
| **updated\_at**<br><br><br>DATE-TIME |
| **username**<br><br><br>STRING |
| **vat\_number**<br><br><br>STRING |

### adjustments

The `adjustments` table contains info about adjustments, which are credits and charges associated with your customers.

| **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** | [Recurly documentation](https://dev.recurly.com/docs/adjustment-object "Opens in new tab: Recurly documentation")<br><br><br>[adjustments schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/adjustments.json "Opens in new tab: adjustments schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_account_line_items "Opens in new tab: Recurly API method") |

adjustments table foreign keys

| Join adjustments with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>adjustments.account.id = accounts.id<br>```<br><br>```<br>adjustments.account.parent_account_id = accounts.id<br>```<br><br>```<br>adjustments.account.id = accounts.parent_account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = accounts.parent_account_id<br>```<br><br>```<br>adjustments.account.id = accounts.shipping_addresses.account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = accounts.shipping_addresses.account_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>adjustments.account.id = billing_info.account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = billing_info.account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>adjustments.account.id = coupon_redemptions.account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = coupon_redemptions.account_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>adjustments.account.id = invoices.account.id<br>```<br><br>```<br>adjustments.account.parent_account_id = invoices.account.id<br>```<br><br>```<br>adjustments.account.id = invoices.account.parent_account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = invoices.account.parent_account_id<br>```<br><br>```<br>adjustments.account.id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>adjustments.account.parent_account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>adjustments.account.id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>adjustments.invoice_id = invoices.id<br>```<br><br>```<br>adjustments.invoice_id = invoices.credit_payments.applied_to_invoice.id<br>```<br><br>```<br>adjustments.invoice_id = invoices.credit_payments.original_invoice.id<br>```<br><br>```<br>adjustments.invoice_id = invoices.credit_payments.refund_transaction.invoice.id<br>```<br><br>```<br>adjustments.invoice_id = invoices.credit_payments.refund_transaction.voided_by_invoice.id<br>```<br><br>```<br>adjustments.invoice_id = invoices.line_items.data.invoice_id<br>```<br><br>```<br>adjustments.invoice_id = invoices.subscription_ids<br>```<br><br>```<br>adjustments.plan_id = invoices.line_items.data.plan_id<br>```<br><br>```<br>adjustments.add_on_id = invoices.line_items.data.add_on_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>adjustments.account.id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>adjustments.plan_id = subscriptions.pending_change.plan.id<br>```<br><br>```<br>adjustments.add_on_id = subscriptions.add_ons.add_on.id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>adjustments.account.id = transactions.account.id<br>```<br><br>```<br>adjustments.account.parent_account_id = transactions.account.id<br>```<br><br>```<br>adjustments.account.id = transactions.account.parent_account_id<br>```<br><br>```<br>adjustments.account.parent_account_id = transactions.account.parent_account_id<br>```<br><br>```<br>adjustments.invoice_id = transactions.invoice.id<br>```<br><br>```<br>adjustments.invoice_id = transactions.voided_by_invoice.id<br>``` |
| [plans](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans) | ```<br>adjustments.plan_id = plans.id<br>``` |
| [plans_add_ons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans-add-ons) | ```<br>adjustments.plan_id = plans_add_ons.plan_id<br>```<br><br>```<br>adjustments.add_on_id = plans_add_ons.id<br>``` |

adjustments table schema

| **account**<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 account<br><br><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **accounting\_code**<br><br><br>STRING |
| **add\_on\_code**<br><br><br>STRING |
| **add\_on\_id**<br><br><br>STRING |
| **amount**<br><br><br>NUMBER |
| **created\_at**<br><br><br>DATE-TIME |
| **credit\_applied**<br><br><br>NUMBER |
| **credit\_reason\_code**<br><br><br>STRING |
| **currency**<br><br><br>STRING |
| **description**<br><br><br>STRING |
| **discount**<br><br><br>NUMBER |
| **end\_date**<br><br><br>DATE-TIME |
| **id**<br><br><br>STRING |
| **invoice\_id**<br><br><br>STRING |
| **invoice\_number**<br><br><br>STRING |
| **legacy\_category**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **origin**<br><br><br>STRING |
| **original\_line\_item\_invoice\_id**<br><br><br>STRING |
| **plan\_code**<br><br><br>STRING |
| **plan\_id**<br><br><br>STRING |
| **previous\_line\_item\_id**<br><br><br>STRING |
| **product\_code**<br><br><br>STRING |
| **proration\_rate**<br><br><br>NUMBER |
| **quantity**<br><br><br>INTEGER |
| **refund**<br><br><br>BOOLEAN |
| **refunded\_quantity**<br><br><br>INTEGER |
| **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>								account_id							</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							</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>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								nickname							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								vat_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **start\_date**<br><br><br>DATE-TIME |
| **state**<br><br><br>STRING |
| **subscription\_id**<br><br><br>STRING |
| **subtotal**<br><br><br>NUMBER |
| **tax**<br><br><br>NUMBER |
| **tax\_code**<br><br><br>STRING |
| **tax\_exempt**<br><br><br>BOOLEAN |
| **tax\_info**<br><br><br>STRING |
| **taxable**<br><br><br>BOOLEAN |
| **type**<br><br><br>STRING |
| **unit\_amount**<br><br><br>NUMBER |
| **updated\_at**<br><br><br>DATE-TIME |
| **uuid**<br><br><br>STRING |

### billing\_info

The `billing_info` table contains info about the billing information for [`accounts`](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts).

**Note**: To replicate this table, you must also have the [`accounts`](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) table set to replicate.

### Custom fields

Stitch’s Recurly integration supports replicating custom fields for billing info objects.

| **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)** | account\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [billing_info schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/billing_info.json "Opens in new tab: billing_info schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/get_billing_info "Opens in new tab: Recurly API method") |

billing\_info table foreign keys

| Join billing\_info with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>billing_info.account_id = accounts.id<br>```<br><br>```<br>billing_info.account_id = accounts.parent_account_id<br>```<br><br>```<br>billing_info.account_id = accounts.shipping_addresses.account_id<br>``` |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>billing_info.account_id = adjustments.account.id<br>```<br><br>```<br>billing_info.account_id = adjustments.account.parent_account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>billing_info.account_id = coupon_redemptions.account_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>billing_info.account_id = invoices.account.id<br>```<br><br>```<br>billing_info.account_id = invoices.account.parent_account_id<br>```<br><br>```<br>billing_info.account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>billing_info.account_id = invoices.line_items.data.shipping_addresses.account_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>billing_info.account_id = subscriptions.shipping_address.account_id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>billing_info.account_id = transactions.account.id<br>```<br><br>```<br>billing_info.account_id = transactions.account.parent_account_id<br>``` |

billing\_info table schema

| **account\_id**<br><br><br>STRING |
| --- |
| **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 address<br><br><table> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **company**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_fields**<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 custom\_fields<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> |
| **exemption\_certificate**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **fraud**<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 fraud<br><br><table> <tr> <td> <p> <strong>								decision							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								risk_rules_triggered							</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>								score							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **id**<br><br><br>STRING |
| **last\_name**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **payment\_method**<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 payment\_method<br><br><table> <tr> <td> <p> <strong>								account_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								exp_month							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								exp_year							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first_six							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_four							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								routing_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								routing_number_bank							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **updated\_at**<br><br><br>DATE-TIME |
| **updated\_by**<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 updated\_by<br><br><table> <tr> <td> <p> <strong>								country							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **valid**<br><br><br>BOOLEAN |
| **vat\_number**<br><br><br>STRING |

### coupon\_redemptions

The `coupon_redemptions` table contains info about the coupons redeemed in your Recurly account.

**Note**: In order to replicate this table, you must also set the following tables to replicate:

* [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts)
* [subscription](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscription)
* [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices)

| **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 |
|  | accounts<br><br>subscription<br><br>invoices |
| **Useful links** | [coupon_redemptions schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/coupon_redemptions.json "Opens in new tab: coupon_redemptions schema on GitHub")<br><br><br>[Recurly API method](https://recurly.com/developers/api/v2018-08-09/index.html#operation/list_account_coupon_redemptions "Opens in new tab: Recurly API method") |

coupon\_redemptions table foreign keys

| Join coupon\_redemptions with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>coupon_redemptions.account_id = accounts.id<br>```<br><br>```<br>coupon_redemptions.account_id = accounts.parent_account_id<br>```<br><br>```<br>coupon_redemptions.account_id = accounts.shipping_addresses.account_id<br>``` |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>coupon_redemptions.account_id = adjustments.account.id<br>```<br><br>```<br>coupon_redemptions.account_id = adjustments.account.parent_account_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>coupon_redemptions.account_id = billing_info.account_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>coupon_redemptions.account_id = invoices.account.id<br>```<br><br>```<br>coupon_redemptions.account_id = invoices.account.parent_account_id<br>```<br><br>```<br>coupon_redemptions.account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>coupon_redemptions.account_id = invoices.line_items.data.shipping_addresses.account_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>coupon_redemptions.account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>coupon_redemptions.coupon.id = subscriptions.coupon_redemptions.coupon.id<br>```<br><br>```<br>coupon_redemptions.id = subscriptions.coupon_redemptions.id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>coupon_redemptions.account_id = transactions.account.id<br>```<br><br>```<br>coupon_redemptions.account_id = transactions.account.parent_account_id<br>``` |
| [coupons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupons) | ```<br>coupon_redemptions.coupon.id = coupons.id<br>``` |

coupon\_redemptions table schema

| **account**<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 account<br><br><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **account\_id**<br><br><br>STRING |
| **coupon**<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 coupon<br><br><table> <tr> <td> <p> <strong>								applies_to_all_plans							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								applies_to_non_plan_charges							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								coupon_type							</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>								discount							</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 discount</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								currencies							</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 currencies</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								percent							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								trial							</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 trial</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								length							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								unit							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								duration							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								expired_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								free_trial_amount							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								free_trial_unit							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								hosted_page_description							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								invoice_description							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_redemptions							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								max_redemptions_per_account							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plans							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plans_names							</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> </td> </tr> <tr> <td> <p> <strong>								redeem_by							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								redemption_resource							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								temporal_amount							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								temporal_unit							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unique_coupon_codes_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **discounted**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **removed\_at**<br><br><br>DATE-TIME |
| **state**<br><br><br>STRING |
| **unique\_code\_template**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### coupons

The `coupons` table contains info about the coupons available in your Recurly 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** | [coupons schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/coupons.json "Opens in new tab: coupons schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_coupons "Opens in new tab: Recurly API method") |

coupons table foreign keys

| Join coupons with | on |
| --- | --- |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>coupons.id = coupon_redemptions.coupon.id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>coupons.id = subscriptions.coupon_redemptions.coupon.id<br>``` |

coupons table schema

| **applies\_to\_all\_plans**<br><br><br>BOOLEAN |
| --- |
| **applies\_to\_non\_plan\_charges**<br><br><br>BOOLEAN |
| **code**<br><br><br>STRING |
| **coupon\_type**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **discount**<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 discount<br><br><table> <tr> <td> <p> <strong>								currencies							</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 currencies</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								percent							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								trial							</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 trial</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								length							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								unit							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **duration**<br><br><br>STRING |
| **expired\_at**<br><br><br>DATE-TIME |
| **free\_trial\_amount**<br><br><br>INTEGER |
| **free\_trial\_unit**<br><br><br>STRING |
| **hosted\_page\_description**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **invoice\_description**<br><br><br>STRING |
| **max\_redemptions**<br><br><br>INTEGER |
| **max\_redemptions\_per\_account**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **plans**<br><br><br>ARRAY, STRING<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 plans<br><br><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **plans\_names**<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;. |
| **redeem\_by**<br><br><br>DATE-TIME |
| **redemption\_resource**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **temporal\_amount**<br><br><br>INTEGER |
| **temporal\_unit**<br><br><br>STRING |
| **unique\_coupon\_codes\_count**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>DATE-TIME |

### invoices

The `invoices` table contains info about the invoices in your Recurly 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** | [invoices schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/invoices.json "Opens in new tab: invoices schema on GitHub")<br><br><br>[Recurly API method](https://recurly.com/developers/api/v2018-08-09/index.html#operation/list_account_invoices "Opens in new tab: Recurly API method") |

invoices table foreign keys

| Join invoices with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>invoices.account.id = accounts.id<br>```<br><br>```<br>invoices.account.parent_account_id = accounts.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = accounts.id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = accounts.id<br>```<br><br>```<br>invoices.account.id = accounts.parent_account_id<br>```<br><br>```<br>invoices.account.parent_account_id = accounts.parent_account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = accounts.parent_account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = accounts.parent_account_id<br>```<br><br>```<br>invoices.account.id = accounts.shipping_addresses.account_id<br>```<br><br>```<br>invoices.account.parent_account_id = accounts.shipping_addresses.account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = accounts.shipping_addresses.account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = accounts.shipping_addresses.account_id<br>``` |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>invoices.account.id = adjustments.account.id<br>```<br><br>```<br>invoices.account.parent_account_id = adjustments.account.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = adjustments.account.id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = adjustments.account.id<br>```<br><br>```<br>invoices.account.id = adjustments.account.parent_account_id<br>```<br><br>```<br>invoices.account.parent_account_id = adjustments.account.parent_account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = adjustments.account.parent_account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = adjustments.account.parent_account_id<br>```<br><br>```<br>invoices.id = adjustments.invoice_id<br>```<br><br>```<br>invoices.credit_payments.applied_to_invoice.id = adjustments.invoice_id<br>```<br><br>```<br>invoices.credit_payments.original_invoice.id = adjustments.invoice_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.invoice.id = adjustments.invoice_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.voided_by_invoice.id = adjustments.invoice_id<br>```<br><br>```<br>invoices.line_items.data.invoice_id = adjustments.invoice_id<br>```<br><br>```<br>invoices.subscription_ids = adjustments.invoice_id<br>```<br><br>```<br>invoices.line_items.data.plan_id = adjustments.plan_id<br>```<br><br>```<br>invoices.line_items.data.add_on_id = adjustments.add_on_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>invoices.account.id = billing_info.account_id<br>```<br><br>```<br>invoices.account.parent_account_id = billing_info.account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = billing_info.account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = billing_info.account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>invoices.account.id = coupon_redemptions.account_id<br>```<br><br>```<br>invoices.account.parent_account_id = coupon_redemptions.account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = coupon_redemptions.account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = coupon_redemptions.account_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>invoices.account.id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>invoices.account.parent_account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>invoices.line_items.data.plan_id = subscriptions.pending_change.plan.id<br>```<br><br>```<br>invoices.line_items.data.add_on_id = subscriptions.add_ons.add_on.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.subscription_ids = subscriptions.id<br>```<br><br>```<br>invoices.line_items.data.subscription_id = subscriptions.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.subscription_ids = subscriptions.add_ons.subscription_id<br>```<br><br>```<br>invoices.line_items.data.subscription_id = subscriptions.add_ons.subscription_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.subscription_ids = subscriptions.pending_change.add_ons.subscription_id<br>```<br><br>```<br>invoices.line_items.data.subscription_id = subscriptions.pending_change.add_ons.subscription_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.subscription_ids = subscriptions.pending_change.subscription_id<br>```<br><br>```<br>invoices.line_items.data.subscription_id = subscriptions.pending_change.subscription_id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>invoices.account.id = transactions.account.id<br>```<br><br>```<br>invoices.account.parent_account_id = transactions.account.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = transactions.account.id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = transactions.account.id<br>```<br><br>```<br>invoices.account.id = transactions.account.parent_account_id<br>```<br><br>```<br>invoices.account.parent_account_id = transactions.account.parent_account_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.account.id = transactions.account.parent_account_id<br>```<br><br>```<br>invoices.line_items.data.shipping_addresses.account_id = transactions.account.parent_account_id<br>```<br><br>```<br>invoices.id = transactions.invoice.id<br>```<br><br>```<br>invoices.credit_payments.applied_to_invoice.id = transactions.invoice.id<br>```<br><br>```<br>invoices.credit_payments.original_invoice.id = transactions.invoice.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.invoice.id = transactions.invoice.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.voided_by_invoice.id = transactions.invoice.id<br>```<br><br>```<br>invoices.line_items.data.invoice_id = transactions.invoice.id<br>```<br><br>```<br>invoices.subscription_ids = transactions.invoice.id<br>```<br><br>```<br>invoices.id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.credit_payments.applied_to_invoice.id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.credit_payments.original_invoice.id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.invoice.id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.voided_by_invoice.id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.line_items.data.invoice_id = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.subscription_ids = transactions.voided_by_invoice.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.subscription_ids = transactions.subscription_ids<br>```<br><br>```<br>invoices.line_items.data.subscription_id = transactions.subscription_ids<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.id = transactions.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.original_transaction_id = transactions.id<br>```<br><br>```<br>invoices.transactions.id = transactions.id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.id = transactions.original_transaction_id<br>```<br><br>```<br>invoices.credit_payments.refund_transaction.original_transaction_id = transactions.original_transaction_id<br>```<br><br>```<br>invoices.transactions.id = transactions.original_transaction_id<br>``` |
| [plans](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans) | ```<br>invoices.line_items.data.plan_id = plans.id<br>``` |
| [plans_add_ons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans-add-ons) | ```<br>invoices.line_items.data.plan_id = plans_add_ons.plan_id<br>```<br><br>```<br>invoices.line_items.data.add_on_id = plans_add_ons.id<br>``` |

invoices table schema

| **account**<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 account<br><br><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **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 address<br><br><table> <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							</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>								name_on_account							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **balance**<br><br><br>NUMBER |
| **closed\_at**<br><br><br>DATE-TIME |
| **collection\_method**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **credit\_payments**<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 credit\_payments<br><br><table> <tr> <td> <p> <strong>								account							</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 account</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								action							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								applied_to_invoice							</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 applied_to_invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_credit_payment_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_invoice							</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 original_invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								refund_transaction							</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 refund_transaction</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								account							</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 account</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								avs_check							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								billing_address							</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 billing_address</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								collected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								collection_method							</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>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								customer_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								customer_message_locale							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								cvv_check							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_approval_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_reference							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_time							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_values							</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>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								invoice							</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 invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								ip_address_country							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip_address_v4							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								origin							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_transaction_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								payment_gateway							</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 payment_gateway</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								payment_method							</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 payment_method</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								exp_month							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								exp_year							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first_six							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_four							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								refunded							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								status_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								status_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_ids							</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> </td> </tr> <tr> <td> <p> <strong>								success							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								uuid							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								voided_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								voided_by_invoice							</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 voided_by_invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								uuid							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								voided_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **currency**<br><br><br>STRING |
| **customer\_notes**<br><br><br>STRING |
| **discount**<br><br><br>NUMBER |
| **due\_at**<br><br><br>DATE-TIME |
| **id**<br><br><br>STRING |
| **line\_items**<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 line\_items<br><br><table> <tr> <td> <p> <strong>								data							</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 data</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								account							</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 account</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								accounting_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								add_on_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								add_on_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								credit_applied							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								credit_reason_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								description							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								discount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								end_date							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								invoice_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								invoice_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								legacy_category							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								origin							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_line_item_invoice_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plan_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plan_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								previous_line_item_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								product_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								proration_rate							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								refund							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								refunded_quantity							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								shipping_addresses							</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 shipping_addresses</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								account_id							</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							</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>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								nickname							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								vat_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								start_date							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subtotal							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								tax							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								tax_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								tax_exempt							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								tax_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 tax_info</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								rate							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								taxable							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</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>								uuid							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								has_more							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								next							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **net\_terms**<br><br><br>NUMBER |
| **number**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **origin**<br><br><br>STRING |
| **paid**<br><br><br>NUMBER |
| **po\_number**<br><br><br>STRING |
| **previous\_invoice\_id**<br><br><br>STRING |
| **refundable\_amount**<br><br><br>NUMBER |
| **state**<br><br><br>STRING |
| **subscription\_ids**<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;. |
| **subtotal**<br><br><br>NUMBER |
| **tax**<br><br><br>NUMBER |
| **tax\_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 tax\_info<br><br><table> <tr> <td> <p> <strong>								rate							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **terms\_and\_conditions**<br><br><br>STRING |
| **total**<br><br><br>NUMBER |
| **transactions**<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 transactions<br><br><table> <tr> <td> <p> <strong>								account							</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 account</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								avs_check							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								billing_address							</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 billing_address</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								collected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								collection_method							</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>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								customer_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								customer_message_locale							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								cvv_check							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_approval_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_reference							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_time							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								gateway_response_values							</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>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								invoice							</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 invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								ip_address_country							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip_address_v4							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								origin							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_transaction_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								payment_gateway							</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 payment_gateway</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								payment_method							</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 payment_method</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								exp_month							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								exp_year							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first_six							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_four							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								refunded							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								status_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								status_message							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_ids							</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> </td> </tr> <tr> <td> <p> <strong>								success							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								uuid							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								voided_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								voided_by_invoice							</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 voided_by_invoice</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **vat\_number**<br><br><br>STRING |
| **vat\_reverse\_charge\_notes**<br><br><br>STRING |

### plans

The `plans` table contains info about the plans in your Recurly account. A plan tells Recurly how much to charge customers.

| **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** | [plans schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/plans.json "Opens in new tab: plans schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_plans "Opens in new tab: Recurly API method") |

plans table foreign keys

| Join plans with | on |
| --- | --- |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>plans.id = adjustments.plan_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>plans.id = invoices.line_items.data.plan_id<br>``` |
| [plans_add_ons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans-add-ons) | ```<br>plans.id = plans_add_ons.plan_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>plans.id = subscriptions.pending_change.plan.id<br>``` |

plans table schema

| **accounting\_code**<br><br><br>STRING |
| --- |
| **auto\_renew**<br><br><br>BOOLEAN |
| **code**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **currencies**<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 currencies<br><br><table> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								setup_fee							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> </table> |
| **deleted\_at**<br><br><br>DATE-TIME |
| **description**<br><br><br>STRING |
| **hosted\_pages**<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 hosted\_pages<br><br><table> <tr> <td> <p> <strong>								bypass_confirmation							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								cancel_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								display_quantity							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								success_url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **id**<br><br><br>STRING |
| **interval\_length**<br><br><br>INTEGER |
| **interval\_unit**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **setup\_fee\_accounting\_code**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **tax\_code**<br><br><br>STRING |
| **tax\_exempt**<br><br><br>BOOLEAN |
| **total\_billing\_cycles**<br><br><br>INTEGER |
| **trial\_length**<br><br><br>INTEGER |
| **trial\_unit**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### plans\_add\_ons

The `plans_add_ons` table contains info about the add-ons in your Recurly account. An add-on is a charge billed each billing period in addition to a subscription’s base charge.

**Note**: To replicate this table, you must also have the [`plans`](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans) table set to replicate.

| **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** | [plans_add_ons schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/plans_add_ons.json "Opens in new tab: plans_add_ons schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_plan_add_ons "Opens in new tab: Recurly API method") |

plans\_add\_ons table foreign keys

| Join plans\_add\_ons with | on |
| --- | --- |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>plans_add_ons.plan_id = adjustments.plan_id<br>```<br><br>```<br>plans_add_ons.id = adjustments.add_on_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>plans_add_ons.plan_id = invoices.line_items.data.plan_id<br>```<br><br>```<br>plans_add_ons.id = invoices.line_items.data.add_on_id<br>``` |
| [plans](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans) | ```<br>plans_add_ons.plan_id = plans.id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>plans_add_ons.plan_id = subscriptions.pending_change.plan.id<br>```<br><br>```<br>plans_add_ons.id = subscriptions.add_ons.add_on.id<br>``` |

plans\_add\_ons table schema

| **accounting\_code**<br><br><br>STRING |
| --- |
| **code**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **currencies**<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 currencies<br><br><table> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> </table> |
| **default\_quantity**<br><br><br>INTEGER |
| **deleted\_at**<br><br><br>DATE-TIME |
| **display\_quantity**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **plan\_id**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **tax\_code**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### subscriptions

The `subscriptions` table contains info about the subscriptions in your Recurly account. Subscriptions are created when your customers subscribe to one of your plans. The customer’s subscription tells Recurly when and how much to bill the customer.

### Custom fields

Stitch’s Recurly integration supports replicating custom fields for subscription objects.

| **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** | [subscriptions schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/subscriptions.json "Opens in new tab: subscriptions schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_subscriptions "Opens in new tab: Recurly API method") |

subscriptions table foreign keys

| Join subscriptions with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>subscriptions.shipping_address.account_id = accounts.id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = accounts.parent_account_id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = accounts.shipping_addresses.account_id<br>``` |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>subscriptions.shipping_address.account_id = adjustments.account.id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = adjustments.account.parent_account_id<br>```<br><br>```<br>subscriptions.pending_change.plan.id = adjustments.plan_id<br>```<br><br>```<br>subscriptions.add_ons.add_on.id = adjustments.add_on_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>subscriptions.shipping_address.account_id = billing_info.account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>subscriptions.shipping_address.account_id = coupon_redemptions.account_id<br>```<br><br>```<br>subscriptions.coupon_redemptions.coupon.id = coupon_redemptions.coupon.id<br>```<br><br>```<br>subscriptions.coupon_redemptions.id = coupon_redemptions.id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>subscriptions.shipping_address.account_id = invoices.account.id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = invoices.account.parent_account_id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>subscriptions.pending_change.plan.id = invoices.line_items.data.plan_id<br>```<br><br>```<br>subscriptions.add_ons.add_on.id = invoices.line_items.data.add_on_id<br>```<br><br>```<br>subscriptions.id = invoices.credit_payments.refund_transaction.subscription_ids<br>```<br><br>```<br>subscriptions.add_ons.subscription_id = invoices.credit_payments.refund_transaction.subscription_ids<br>```<br><br>```<br>subscriptions.pending_change.add_ons.subscription_id = invoices.credit_payments.refund_transaction.subscription_ids<br>```<br><br>```<br>subscriptions.pending_change.subscription_id = invoices.credit_payments.refund_transaction.subscription_ids<br>```<br><br>```<br>subscriptions.id = invoices.line_items.data.subscription_id<br>```<br><br>```<br>subscriptions.add_ons.subscription_id = invoices.line_items.data.subscription_id<br>```<br><br>```<br>subscriptions.pending_change.add_ons.subscription_id = invoices.line_items.data.subscription_id<br>```<br><br>```<br>subscriptions.pending_change.subscription_id = invoices.line_items.data.subscription_id<br>``` |
| [transactions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#transactions) | ```<br>subscriptions.shipping_address.account_id = transactions.account.id<br>```<br><br>```<br>subscriptions.shipping_address.account_id = transactions.account.parent_account_id<br>```<br><br>```<br>subscriptions.id = transactions.subscription_ids<br>```<br><br>```<br>subscriptions.add_ons.subscription_id = transactions.subscription_ids<br>```<br><br>```<br>subscriptions.pending_change.add_ons.subscription_id = transactions.subscription_ids<br>```<br><br>```<br>subscriptions.pending_change.subscription_id = transactions.subscription_ids<br>``` |
| [coupons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupons) | ```<br>subscriptions.coupon_redemptions.coupon.id = coupons.id<br>``` |
| [plans](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans) | ```<br>subscriptions.pending_change.plan.id = plans.id<br>``` |
| [plans_add_ons](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#plans-add-ons) | ```<br>subscriptions.pending_change.plan.id = plans_add_ons.plan_id<br>```<br><br>```<br>subscriptions.add_ons.add_on.id = plans_add_ons.id<br>``` |

subscriptions table schema

| **account**<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 account<br><br><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **activated\_at**<br><br><br>DATE-TIME |
| **add\_ons**<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 add\_ons<br><br><table> <tr> <td> <p> <strong>								add_on							</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 add_on</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								accounting_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								expired_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **add\_ons\_total**<br><br><br>NUMBER |
| **auto\_renew**<br><br><br>BOOLEAN |
| **bank\_account\_authorized\_at**<br><br><br>DATE-TIME |
| **canceled\_at**<br><br><br>DATE-TIME |
| **collection\_method**<br><br><br>STRING |
| **coupon\_redemptions**<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 coupon\_redemptions<br><br><table> <tr> <td> <p> <strong>								coupon							</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 coupon</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								coupon_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								discount							</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 discount</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								currencies							</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 currencies</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								percent							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								trial							</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 trial</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								length							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								unit							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								expired_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								discounted							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **current\_period\_ends\_at**<br><br><br>DATE-TIME |
| **current\_period\_started\_at**<br><br><br>DATE-TIME |
| **current\_term\_ends\_at**<br><br><br>DATE-TIME |
| **current\_term\_started\_at**<br><br><br>DATE-TIME |
| **custom\_fields**<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 custom\_fields<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> |
| **customer\_notes**<br><br><br>STRING |
| **expiration\_reason**<br><br><br>STRING |
| **expires\_at**<br><br><br>DATE-TIME |
| **id**<br><br><br>STRING |
| **net\_terms**<br><br><br>INTEGER |
| **object**<br><br><br>STRING |
| **paused\_at**<br><br><br>DATE-TIME |
| **pending\_change**<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 pending\_change<br><br><table> <tr> <td> <p> <strong>								activate_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								activated							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								add_ons							</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 add_ons</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								add_on							</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 add_on</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								accounting_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								expired_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								deleted_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plan							</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 plan</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								quantity							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								subscription_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								unit_amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **plan**<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 plan<br><br><table> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **po\_number**<br><br><br>STRING |
| **quantity**<br><br><br>INTEGER |
| **remaining\_billing\_cycles**<br><br><br>INTEGER |
| **remaining\_pause\_cycles**<br><br><br>INTEGER |
| **renewal\_billing\_cycles**<br><br><br>INTEGER |
| **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>								account_id							</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							</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>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								nickname							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								vat_number							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **state**<br><br><br>STRING |
| **subtotal**<br><br><br>NUMBER |
| **terms\_and\_conditions**<br><br><br>STRING |
| **total\_billing\_cycles**<br><br><br>INTEGER |
| **trial\_ends\_at**<br><br><br>DATE-TIME |
| **trial\_started\_at**<br><br><br>DATE-TIME |
| **unit\_amount**<br><br><br>NUMBER |
| **updated\_at**<br><br><br>DATE-TIME |
| **uuid**<br><br><br>STRING |

### transactions

The `transactions` table contains info about the transactions in your Recurly 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)** | collected\_at |
| **Useful links** | [transactions schema on GitHub](https://github.com/singer-io/tap-recurly/blob/master/tap_recurly/schemas/transactions.json "Opens in new tab: transactions schema on GitHub")<br><br><br>[Recurly API method](https://partner-docs.recurly.com/v2018-08-09#operation/list_transactions "Opens in new tab: Recurly API method") |

transactions table foreign keys

| Join transactions with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#accounts) | ```<br>transactions.account.id = accounts.id<br>```<br><br>```<br>transactions.account.parent_account_id = accounts.id<br>```<br><br>```<br>transactions.account.id = accounts.parent_account_id<br>```<br><br>```<br>transactions.account.parent_account_id = accounts.parent_account_id<br>```<br><br>```<br>transactions.account.id = accounts.shipping_addresses.account_id<br>```<br><br>```<br>transactions.account.parent_account_id = accounts.shipping_addresses.account_id<br>``` |
| [adjustments](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#adjustments) | ```<br>transactions.account.id = adjustments.account.id<br>```<br><br>```<br>transactions.account.parent_account_id = adjustments.account.id<br>```<br><br>```<br>transactions.account.id = adjustments.account.parent_account_id<br>```<br><br>```<br>transactions.account.parent_account_id = adjustments.account.parent_account_id<br>```<br><br>```<br>transactions.invoice.id = adjustments.invoice_id<br>```<br><br>```<br>transactions.voided_by_invoice.id = adjustments.invoice_id<br>``` |
| [billing_info](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#billing-info) | ```<br>transactions.account.id = billing_info.account_id<br>```<br><br>```<br>transactions.account.parent_account_id = billing_info.account_id<br>``` |
| [coupon_redemptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#coupon-redemptions) | ```<br>transactions.account.id = coupon_redemptions.account_id<br>```<br><br>```<br>transactions.account.parent_account_id = coupon_redemptions.account_id<br>``` |
| [invoices](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#invoices) | ```<br>transactions.account.id = invoices.account.id<br>```<br><br>```<br>transactions.account.parent_account_id = invoices.account.id<br>```<br><br>```<br>transactions.account.id = invoices.account.parent_account_id<br>```<br><br>```<br>transactions.account.parent_account_id = invoices.account.parent_account_id<br>```<br><br>```<br>transactions.account.id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>transactions.account.parent_account_id = invoices.credit_payments.refund_transaction.account.id<br>```<br><br>```<br>transactions.account.id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>transactions.account.parent_account_id = invoices.line_items.data.shipping_addresses.account_id<br>```<br><br>```<br>transactions.invoice.id = invoices.id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.id<br>```<br><br>```<br>transactions.invoice.id = invoices.credit_payments.applied_to_invoice.id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.credit_payments.applied_to_invoice.id<br>```<br><br>```<br>transactions.invoice.id = invoices.credit_payments.original_invoice.id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.credit_payments.original_invoice.id<br>```<br><br>```<br>transactions.invoice.id = invoices.credit_payments.refund_transaction.invoice.id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.credit_payments.refund_transaction.invoice.id<br>```<br><br>```<br>transactions.invoice.id = invoices.credit_payments.refund_transaction.voided_by_invoice.id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.credit_payments.refund_transaction.voided_by_invoice.id<br>```<br><br>```<br>transactions.invoice.id = invoices.line_items.data.invoice_id<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.line_items.data.invoice_id<br>```<br><br>```<br>transactions.invoice.id = invoices.subscription_ids<br>```<br><br>```<br>transactions.voided_by_invoice.id = invoices.subscription_ids<br>```<br><br>```<br>transactions.subscription_ids = invoices.credit_payments.refund_transaction.subscription_ids<br>```<br><br>```<br>transactions.subscription_ids = invoices.line_items.data.subscription_id<br>```<br><br>```<br>transactions.id = invoices.credit_payments.refund_transaction.id<br>```<br><br>```<br>transactions.original_transaction_id = invoices.credit_payments.refund_transaction.id<br>```<br><br>```<br>transactions.id = invoices.credit_payments.refund_transaction.original_transaction_id<br>```<br><br>```<br>transactions.original_transaction_id = invoices.credit_payments.refund_transaction.original_transaction_id<br>```<br><br>```<br>transactions.id = invoices.transactions.id<br>```<br><br>```<br>transactions.original_transaction_id = invoices.transactions.id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/stitch/integrations/saas/recurly/v1#subscriptions) | ```<br>transactions.account.id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>transactions.account.parent_account_id = subscriptions.shipping_address.account_id<br>```<br><br>```<br>transactions.subscription_ids = subscriptions.id<br>```<br><br>```<br>transactions.subscription_ids = subscriptions.add_ons.subscription_id<br>```<br><br>```<br>transactions.subscription_ids = subscriptions.pending_change.add_ons.subscription_id<br>```<br><br>```<br>transactions.subscription_ids = subscriptions.pending_change.subscription_id<br>``` |

transactions table schema

| **account**<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 account<br><br><table> <tr> <td> <p> <strong>								bill_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_account_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **amount**<br><br><br>NUMBER |
| **avs\_check**<br><br><br>STRING |
| **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>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country							</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							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								region							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								street2							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **collected\_at**<br><br><br>DATE-TIME |
| **collection\_method**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **customer\_message**<br><br><br>STRING |
| **customer\_message\_locale**<br><br><br>STRING |
| **cvv\_check**<br><br><br>STRING |
| **gateway\_approval\_code**<br><br><br>STRING |
| **gateway\_message**<br><br><br>STRING |
| **gateway\_reference**<br><br><br>STRING |
| **gateway\_response\_code**<br><br><br>STRING |
| **gateway\_response\_time**<br><br><br>NUMBER |
| **gateway\_response\_values**<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 gateway\_response\_values<br><br><table> <tr> <td> <p> <strong>								amount							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								amount_refunded							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								card_fingerprint							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								currency							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								description							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								livemode							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **id**<br><br><br>STRING |
| **invoice**<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 invoice<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **ip\_address\_country**<br><br><br>STRING |
| **ip\_address\_v4**<br><br><br>STRING |
| **object**<br><br><br>STRING |
| **origin**<br><br><br>STRING |
| **original\_transaction\_id**<br><br><br>STRING |
| **payment\_gateway**<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 payment\_gateway<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **payment\_method**<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 payment\_method<br><br><table> <tr> <td> <p> <strong>								card_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								exp_month							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								exp_year							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first_six							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_four							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **refunded**<br><br><br>BOOLEAN |
| **status**<br><br><br>STRING |
| **status\_code**<br><br><br>STRING |
| **status\_message**<br><br><br>STRING |
| **subscription\_ids**<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;. |
| **success**<br><br><br>BOOLEAN |
| **type**<br><br><br>STRING |
| **uuid**<br><br><br>STRING |
| **voided\_at**<br><br><br>DATE-TIME |
| **voided\_by\_invoice**<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 voided\_by\_invoice<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								object							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |