# Recharge

Recharge helps ecommerce businesses by offering subscriptions and recurring billing for their customers.

For more information about the API, see [Recharge Payments API](https://developer.rechargepayments.com/).

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#Schema) section for a list of objects available for replication.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

To generate the access token:

1. Make sure you have a Shopify account. You need it to access your Recharge information.
2. Log into your Shopify account, select Apps, and then click your Recharge application.
3. Go to the Tools & apps page.
4. Click API tokens.
5. Click Create an API token.
6. On the Create an API token page:
   * In the Details section, enter a Token nickname and Contact email into their respective fields.
   * In the Permission section, select the Read Access scope for each permission.
7. Click Save.
8. Copy the token.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Fill in the required connection properties.

2. Provide a name for the connection in Connection name.

3. Select Open connection metadata to define metadata for the connection when it has been created.

4. Click Create.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| Access Token | Access token. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### addresses

The `addresses` table contains info about the addresses (shipping locations) a customer has. A subscription is tied to a given address, but a customer can have multiple addresses.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/addresses/list_addresses "Opens in new tab: Recharge API method") |

addresses table foreign keys

| Join addresses with | on |
| --- | --- |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>addresses.id = charges.address_id<br>```<br><br>```<br>addresses.customer_id = charges.customer_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>addresses.id = onetimes.address_id<br>```<br><br>```<br>addresses.customer_id = onetimes.customer_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>addresses.id = orders.address_id<br>```<br><br>```<br>addresses.customer_id = orders.customer_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>addresses.id = subscriptions.address_id<br>```<br><br>```<br>addresses.customer_id = subscriptions.customer_id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#customers) | ```<br>addresses.customer_id = customers.id<br>``` |
| [discounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#discounts) | ```<br>addresses.discount_id = discounts.id<br>``` |

addresses table schema

| **address1**<br><br><br>STRING |
| --- |
| **address2**<br><br><br>STRING |
| **cart\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **cart\_note**<br><br><br>STRING |
| **city**<br><br><br>STRING |
| **company**<br><br><br>STRING |
| **country**<br><br><br>STRING |
| **country\_code**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **customer\_id**<br><br><br>INTEGER |
| **discount\_id**<br><br><br>INTEGER |
| **discounts**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>id</b>: INTEGER</li></ul> |
| **first\_name**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **note\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **order\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **order\_note**<br><br><br>STRING |
| **original\_shipping\_lines**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>price</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **payment\_method\_id**<br><br><br>INTEGER |
| **phone**<br><br><br>STRING |
| **presentment\_currency**<br><br><br>STRING |
| **province**<br><br><br>STRING |
| **shipping\_lines\_override**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>price</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **updated\_at**<br><br><br>DATE-TIME |
| **zip**<br><br><br>STRING |

### charges

The `charges` table contains info about charges. A charge is a placeholder for an upcoming charge once the charge is processed successfully.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/charges/charge_list "Opens in new tab: Recharge API method") |

charges table foreign keys

| Join charges with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>charges.address_id = addresses.id<br>```<br><br>```<br>charges.customer_id = addresses.customer_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>charges.address_id = onetimes.address_id<br>```<br><br>```<br>charges.customer_id = onetimes.customer_id<br>```<br><br>```<br>charges.line_items.shopify_product_id = onetimes.shopify_product_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>charges.address_id = orders.address_id<br>```<br><br>```<br>charges.id = orders.charge_id<br>```<br><br>```<br>charges.customer_id = orders.customer_id<br>```<br><br>```<br>charges.line_items.shopify_product_id = orders.line_items.shopify_product_id<br>```<br><br>```<br>charges.line_items.subscription_id = orders.line_items.subscription_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>charges.address_id = subscriptions.address_id<br>```<br><br>```<br>charges.customer_id = subscriptions.customer_id<br>```<br><br>```<br>charges.line_items.shopify_product_id = subscriptions.shopify_product_id<br>```<br><br>```<br>charges.line_items.subscription_id = subscriptions.id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#customers) | ```<br>charges.customer_id = customers.id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#products) | ```<br>charges.line_items.shopify_product_id = products.id<br>``` |

charges table schema

| **address\_id**<br><br><br>INTEGER |
| --- |
| **analytics\_data**<br><br><br>OBJECT<br><br>This is a nested data structure: **utm\_params**, ARRAY, which is also a nested data structure<br><br><ul><li><b>utm_campaign</b>: STRING</li><li><b>utm_content</b>: STRING</li><li><b>utm_data_source</b>: STRING</li><li><b>utm_medium</b>: STRING</li><li><b>utm_source</b>: STRING</li><li><b>utm_term</b>: STRING</li><li><b>utm_timestamp</b>: STRING</li></ul> |
| **billing\_address**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>address1</b>: STRING</li><li><b>address2</b>: STRING</li><li><b>city</b>: STRING</li><li><b>company</b>: STRING</li><li><b>country</b>: STRING</li><li><b>country_code</b>: STRING</li><li><b>first_name</b>: STRING</li><li><b>last_name</b>: STRING</li><li><b>phone</b>: STRING</li><li><b>province</b>: STRING</li><li><b>zip</b>: STRING</li></ul> |
| **browser\_ip**<br><br><br>STRING |
| **client\_details**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>browser_ip</b>: STRING</li><li><b>user_agent</b>: STRING</li></ul> |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **customer**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>email</b>: STRING</li><li><b>external_customer_id</b>: OBJECT, which is also a nested data structure:                                                <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>hash</b>: STRING</li><li><b>id</b>: INTEGER</li></ul> |
| **customer\_hash**<br><br><br>STRING |
| **customer\_id**<br><br><br>INTEGER |
| **discount\_codes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>amount</b>: STRING</li><li><b>code</b>: STRING</li><li><b>id</b>: INTEGER</li><li><b>value</b>: NUMBER</li><li><b>value_type</b>: STRING</li></ul> |
| **email**<br><br><br>STRING |
| **external\_order\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **external\_transaction\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **payment\_processor**, STRING. |
| **first\_name**<br><br><br>STRING |
| **has\_uncommited\_changes**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **line\_items**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>external_product_id</b>, OBJECT, which is also a nested data structure:            <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>external_product_id</b>, OBJECT, which is also a nested data structure:        <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>grams</b>: INTEGER</li><li><b>handle</b>: STRING</li><li><b>images</b>: OBJECT <ul><li><b>large</b>: STRING</li><li><b>medium</b>: STRING</li><li><b>original</b>: STRING</li><li><b>small</b>: STRING</li><li><b>sort_order</b>: INTEGER</li></ul></li><li><b>price</b>: STRING</li><li><b>properties</b>: ARRAY, which is also a nested data structure:<ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul></li><li><b>purchase_item_id</b>: INTEGER</li><li><b>purchase_item_type</b>: STRING</li><li><b>quantity</b>: STRING</li><li><b>shopify_product_id</b>: STRING</li><li><b>shopify_variant_id</b>: STRING</li><li><b>sku</b>: STRING</li><li><b>subscription_id</b>: INTEGER</li><li><b>tax_due</b>: STRING</li><li><b>tax_lines</b>: ARRAY, which is also a nested data structure:<ul><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: STRING</li></ul></li><li><b>taxable</b>: BOOLEAN</li><li><b>taxable_amount</b>: STRING</li><li><b>title</b>: STRING</li><li><b>total_price</b>: STRING</li><li><b>unit_price</b>: STRING</li><li><b>unit_price_includes_tax</b>: BOOLEAN</li><li><b>variant_title</b>: BOOLEAN</li></ul> |
| **note**<br><br><br>STRING |
| **note\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **order\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **orders\_count**<br><br><br>INTEGER |
| **payment\_processor**<br><br><br>STRING |
| **processed\_at**<br><br><br>DATE-TIME |
| **processor\_name**<br><br><br>STRING |
| **retry\_date**<br><br><br>DATE-TIME |
| **scheduled\_at**<br><br><br>DATE-TIME |
| **shipments\_count**<br><br><br>INTEGER |
| **shipping\_address**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>address1</b>: STRING</li><li><b>address2</b>: STRING</li><li><b>city</b>: STRING</li><li><b>company</b>: STRING</li><li><b>country</b>: STRING</li><li><b>country_code</b>: STRING</li><li><b>first_name</b>: STRING</li><li><b>last_name</b>: STRING</li><li><b>phone</b>: STRING</li><li><b>province</b>: STRING</li><li><b>zip</b>: STRING</li></ul> |
| **shipping\_lines**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>price</b>: STRING</li><li><b>source</b>: STRING</li><li><b>tax_lines</b>: ARRAY, which is also a nested data structure:                                        <ul><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: STRING</li></ul></li><li><b>taxable</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **shopify\_order\_id**<br><br><br>STRING |
| **status**<br><br><br>STRING |
| **sub\_total**<br><br><br>STRING |
| **subtotal\_price**<br><br><br>STRING |
| **tags**<br><br><br>STRING |
| **tax\_lines**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **taxable**<br><br><br>BOOLEAN |
| **total\_discounts**<br><br><br>STRING |
| **total\_line\_items\_price**<br><br><br>STRING |
| **total\_price**<br><br><br>STRING |
| **total\_refunds**<br><br><br>STRING |
| **total\_tax**<br><br><br>STRING |
| **total\_weight**<br><br><br>INTEGER |
| **total\_weight\_grams**<br><br><br>INTEGER |
| **transaction\_id**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### collections

The `collections` table contains info about your collections.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/collection_products "Opens in new tab: Recharge API method") |

collections table foreign keys

| Join collections with | on |
| --- | --- |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#products) | ```<br>collections.id = products.collection_id<br>``` |

collections table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **description**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **sort\_order**<br><br><br>STRING |
| **title**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### customers

The `customers` table contains info about customer accounts with a store.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/customers/customers_list "Opens in new tab: Recharge API method") |

customers table foreign keys

| Join customers with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>customers.id = addresses.customer_id<br>``` |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>customers.id = charges.customer_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>customers.id = onetimes.customer_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>customers.id = orders.customer_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>customers.id = subscriptions.customer_id<br>``` |

customers table schema

| **analytics\_data**<br><br><br>OBJECT<br><br>This is a nested data structure: **utm\_params**, ARRAY, which is also a nested data structure:<br><br><ul><li><b>utm_campaign</b>: STRING</li><li><b>utm_content</b>: STRING</li><li><b>utm_data_source</b>: STRING</li><li><b>utm_medium</b>: STRING</li><li><b>utm_source</b>: STRING</li><li><b>utm_term</b>: STRING</li><li><b>utm_timestamp</b>: STRING</li></ul> |
| --- |
| **billing\_address1**<br><br><br>STRING |
| **billing\_address2**<br><br><br>STRING |
| **billing\_city**<br><br><br>STRING |
| **billing\_company**<br><br><br>STRING |
| **billing\_country**<br><br><br>STRING |
| **billing\_phone**<br><br><br>STRING |
| **billing\_province**<br><br><br>STRING |
| **billing\_zip**<br><br><br>STRING |
| **braintree\_customer\_token**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **email**<br><br><br>STRING |
| **external\_customer\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**: STRING |
| **first\_charge\_processed\_at**<br><br><br>DATE-TIME |
| **first\_name**<br><br><br>STRING |
| **has\_card\_error\_in\_dunning**<br><br><br>BOOLEAN |
| **has\_payment\_method\_in\_dunning**<br><br><br>BOOLEAN |
| **has\_valid\_payment\_method**<br><br><br>BOOLEAN |
| **hash**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **number\_active\_subscriptions**<br><br><br>INTEGER |
| **number\_subscriptions**<br><br><br>INTEGER |
| **paypal\_customer\_token**<br><br><br>STRING |
| **processor\_type**<br><br><br>STRING |
| **reason\_payment\_method\_not\_valid**<br><br><br>STRING |
| **status**<br><br><br>STRING |
| **subscriptions\_active\_count**<br><br><br>INTEGER |
| **subscriptions\_total\_count**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>DATE-TIME |

### discounts

The `discounts` table contains info about discounts.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/discounts/discounts_list "Opens in new tab: Recharge API method") |

discounts table foreign keys

| Join discounts with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>discounts.id = addresses.discount_id<br>``` |

discounts table schema

| **applies\_to**<br><br><br>OBJECT<br><br>This is a nested data structure:**ids**: ARRAY, which is also a nested data structure:<br><br><ul><li><b>purchase_item_type</b>: STRING</li><li><b>resource</b>: STRING</li></ul> |
| --- |
| **applies\_to\_id**<br><br><br>INTEGER |
| **applies\_to\_product\_type**<br><br><br>STRING |
| **applies\_to\_resource**<br><br><br>STRING |
| **channel\_settings**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>api</b>, OBJECT, which is also a nested data structure:				<ul><li><b>can_apply</b>: BOOLEAN</li></ul></li><li><b>checkout_page</b>: OBJECT, which is also a nested data structure:				<ul><li><b>can_apply</b>: BOOLEAN</li></ul></li><li><b>customer_portal</b>: OBJECT, which is also a nested data structure:                   <ul><li><b>can_apply</b>: BOOLEAN</li></ul></li><li><b>merchant_portal</b>: OBJECT, which is also a nested data structure:                                <ul><li><b>can_apply</b>: BOOLEAN</li></ul></li></ul> |
| **code**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **duration**<br><br><br>STRING |
| **duration\_usage\_limit**<br><br><br>INTEGER |
| **ends\_at**<br><br><br>DATE-TIME |
| **external\_discount\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**: STRING. |
| **first\_time\_customer\_restriction**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **once\_per\_customer**<br><br><br>BOOLEAN |
| **prerequisite\_subtotal\_min**<br><br><br>STRING |
| **starts\_at**<br><br><br>DATE-TIME |
| **status**<br><br><br>STRING |
| **times\_used**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>DATE-TIME |
| **usage\_limit**<br><br><br>INTEGER |
| **usage\_limits**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>first_time_customer_restriction</b>: BOOLEAN</li><li><b>max_subsequent_redemptions</b>: INTEGER</li><li><b>one_application_per_customer</b>: STRING</li></ul> |
| **value**<br><br><br>STRING |
| **value\_type**<br><br><br>STRING |

### metafields\_customer

The `metafields_customer` table contains info about metafields related to customers.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/metafields/metafields_list "Opens in new tab: Recharge API method") |

metafields\_customer table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **description**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **key**<br><br><br>STRING |
| **namespace**<br><br><br>STRING |
| **owner\_id**<br><br><br>STRING |
| **owner\_resource**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **value**<br><br><br>STRING |
| **value\_type**<br><br><br>STRING |

### metafields\_store

The `metafields_store` table contains info about metafields related to stores.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/metafields/metafields_list "Opens in new tab: Recharge API method") |

metafields\_store table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **description**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **key**<br><br><br>STRING |
| **namespace**<br><br><br>STRING |
| **owner\_id**<br><br><br>STRING |
| **owner\_resource**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **value**<br><br><br>STRING |
| **value\_type**<br><br><br>STRING |

### metafields\_subscription

The `metafields_subscription` table contains info about metafields related to subscriptions.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/metafields/metafields_list "Opens in new tab: Recharge API method") |

metafields\_subscription table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **description**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **key**<br><br><br>STRING |
| **namespace**<br><br><br>STRING |
| **owner\_id**<br><br><br>STRING |
| **owner\_resource**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **value**<br><br><br>STRING |
| **value\_type**<br><br><br>STRING |

### onetimes

The `onetimes` table contains info about one time products.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/onetimes/onetimes_list "Opens in new tab: Recharge API method") |

onetimes table foreign keys

| Join onetimes with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>onetimes.address_id = addresses.id<br>```<br><br>```<br>onetimes.customer_id = addresses.customer_id<br>``` |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>onetimes.address_id = charges.address_id<br>```<br><br>```<br>onetimes.customer_id = charges.customer_id<br>```<br><br>```<br>onetimes.shopify_product_id = charges.line_items.shopify_product_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>onetimes.address_id = orders.address_id<br>```<br><br>```<br>onetimes.customer_id = orders.customer_id<br>```<br><br>```<br>onetimes.shopify_product_id = orders.line_items.shopify_product_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>onetimes.address_id = subscriptions.address_id<br>```<br><br>```<br>onetimes.customer_id = subscriptions.customer_id<br>```<br><br>```<br>onetimes.shopify_product_id = subscriptions.shopify_product_id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#customers) | ```<br>onetimes.customer_id = customers.id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#products) | ```<br>onetimes.shopify_product_id = products.id<br>``` |

onetimes table schema

| **address\_id**<br><br><br>INTEGER |
| --- |
| **created\_at**<br><br><br>DATE-TIME |
| **customer\_id**<br><br><br>INTEGER |
| **external\_product\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **external\_variant\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **id**<br><br><br>INTEGER |
| **next\_charge\_scheduled\_at**<br><br><br>DATE-TIME |
| **price**<br><br><br>STRING |
| **product\_title**<br><br><br>STRING |
| **properties**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **quantity**<br><br><br>INTEGER |
| **recharge\_product\_id**<br><br><br>INTEGER |
| **shopify\_product\_id**<br><br><br>INTEGER |
| **shopify\_variant\_id**<br><br><br>INTEGER |
| **sku**<br><br><br>STRING |
| **sku\_override**<br><br><br>BOOLEAN |
| **status**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **variant\_title**<br><br><br>STRING |

### orders

The `orders` table contains info about orders. Orders are created after a charge is successfully processed.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/orders/orders_list "Opens in new tab: Recharge API method") |

orders table foreign keys

| Join orders with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>orders.address_id = addresses.id<br>```<br><br>```<br>orders.customer_id = addresses.customer_id<br>``` |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>orders.address_id = charges.address_id<br>```<br><br>```<br>orders.charge_id = charges.id<br>```<br><br>```<br>orders.customer_id = charges.customer_id<br>```<br><br>```<br>orders.line_items.shopify_product_id = charges.line_items.shopify_product_id<br>```<br><br>```<br>orders.line_items.subscription_id = charges.line_items.subscription_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>orders.address_id = onetimes.address_id<br>```<br><br>```<br>orders.customer_id = onetimes.customer_id<br>```<br><br>```<br>orders.line_items.shopify_product_id = onetimes.shopify_product_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>orders.address_id = subscriptions.address_id<br>```<br><br>```<br>orders.customer_id = subscriptions.customer_id<br>```<br><br>```<br>orders.line_items.shopify_product_id = subscriptions.shopify_product_id<br>```<br><br>```<br>orders.line_items.subscription_id = subscriptions.id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#customers) | ```<br>orders.customer_id = customers.id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#products) | ```<br>orders.line_items.shopify_product_id = products.id<br>``` |

orders table schema

| **address\_id**<br><br><br>INTEGER |
| --- |
| **address\_is\_active**<br><br><br>INTEGER |
| **billing\_address**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>address1</b>: STRING</li><li><b>address2</b>: STRING</li><li><b>city</b>: STRING</li><li><b>company</b>: STRING</li><li><b>country</b>: STRING</li><li><b>country_code</b>: STRING</li><li><b>first_name</b>: STRING</li><li><b>last_name</b>: STRING</li><li><b>phone</b>: STRING</li><li><b>province</b>: STRING</li><li><b>zip</b>: STRING</li></ul> |
| **charge**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>external_transaction_id</b> OBJECT, which is also a nested data structure:                                        <ul><li><b>payment_processor</b>: STRING</li></ul></li><li><b>id</b>: INTEGER</li></ul> |
| **charge\_id**<br><br><br>INTEGER |
| **charge\_status**<br><br><br>STRING |
| **client\_details**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>browser_ip</b>: STRING</li><li><b>user_agent</b>: STRING</li></ul> |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **customer**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>email</b>: STRING</li><li><b>external_customer_id</b>: OBJECT, which is also a nested data structure:                                        <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>hash</b>: STRING</li><li><b>id</b>: INTEGER</li></ul> |
| **customer\_id**<br><br><br>INTEGER |
| **discount\_codes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>amount</b>: STRING</li><li><b>code</b>: STRING</li><li><b>type</b>: STRING</li></ul> |
| **discounts**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>id</b>: INTEGER</li><li><b>value</b>: NUMBER</li><li><b>value_type</b>: STRING</li></ul> |
| **email**<br><br><br>STRING |
| **external\_cart\_token**<br><br><br>STRING |
| **external\_order\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **external\_order\_number**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **first\_name**<br><br><br>STRING |
| **hash**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **is\_prepaid**<br><br><br>BOOLEAN |
| **last\_name**<br><br><br>STRING |
| **line\_items**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>external_product_id</b>: OBJECT, which is also a nested data structure:                                        <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>external_variant_id</b>: OBJECT, which is also a nested data structure:                                        <ul><li><b>ecommerce</b>: STRING</li></ul></li><li><b>grams</b>: INTEGER</li><li><b>handle</b>: STRING</li><li><b>images</b>: OBJECT, which is also a nested data structure:                                        <ul><li><b>large</b>: STRING</li><li><b>medium</b>: STRING</li><li><b>original</b>: STRING</li><li><b>small</b>: STRING</li><li><b>sort_order</b>: INTEGER</li></ul></li><li><b>price</b>: NUMBER</li><li><b>properties</b>: ARRAY, which is also a nested data structure:                                        <ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul></li><li><b>purchase_item_id</b>: INTEGER</li><li><b>purchase_item_type</b>: STRING</li><li><b>quantity</b>: INTEGER</li><li><b>shopify_product_id</b>: STRING</li><li><b>shopify_variant_id</b>: STRING</li><li><b>sku</b>: STRING</li><li><b>sort_order</b>: INTEGER</li><li><b>subscription_id</b>: INTEGER</li><li><b>tax_due</b>: STRING</li><li><b>tax_lines</b>: ARRAY, which is also a nested data structure:                                        <ul><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: INTEGER</li></ul></li><li><b>taxable</b>: BOOLEAN</li><li><b>taxable_amount</b>: STRING</li><li><b>title</b>: STRING</li><li><b>total_price</b>: STRING</li><li><b>unit_price</b>: STRING</li><li><b>unit_price_includes_tax</b>: BOOLEAN</li><li><b>variant_title</b>: STRING</li></ul> |
| **note**<br><br><br>STRING |
| **note\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **order\_attributes**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **payment\_processor**<br><br><br>STRING |
| **processed\_at**<br><br><br>DATE-TIME |
| **scheduled\_at**<br><br><br>DATE-TIME |
| **shipped\_date**<br><br><br>DATE-TIME |
| **shipping\_address**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>address1</b>: STRING</li><li><b>address1</b>: STRING</li><li><b>city</b>: STRING</li><li><b>company</b>: STRING</li><li><b>country</b>: STRING</li><li><b>country_code</b>: STRING</li><li><b>first_name</b>: STRING</li><li><b>last_name</b>: STRING</li><li><b>phone</b>: STRING</li><li><b>province</b>: STRING</li><li><b>zip</b>: STRING</li></ul> |
| **shipping\_date**<br><br><br>DATE-TIME |
| **shipping\_lines**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>price</b>: STRING</li><li><b>source</b>: STRING</li><li><b>tax_lines</b>: ARRAY, which is also a nested data structre:                                        <ul><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: STRING</li></ul></li><li><b>taxable</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **shopify\_cart\_token**<br><br><br>STRING |
| **shopify\_customer\_id**<br><br><br>STRING |
| **shopify\_id**<br><br><br>STRING |
| **shopify\_order\_id**<br><br><br>STRING |
| **shopify\_order\_number**<br><br><br>INTEGER |
| **status**<br><br><br>STRING |
| **subtotal\_price**<br><br><br>STRING |
| **tags**<br><br><br>STRING |
| **tax\_lines**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>code</b>: STRING</li><li><b>price</b>: STRING</li><li><b>rate</b>: STRING</li><li><b>title</b>: STRING</li></ul> |
| **taxable**<br><br><br>BOOLEAN |
| **total\_discounts**<br><br><br>STRING |
| **total\_line\_items\_price**<br><br><br>NUMBER |
| **total\_price**<br><br><br>STRING |
| **total\_refunds**<br><br><br>STRING |
| **total\_tax**<br><br><br>STRING |
| **total\_weight**<br><br><br>INTEGER |
| **total\_weight\_grams**<br><br><br>INTEGER |
| **transaction\_id**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### products

The `products` table contains info about your products. This table uses the 2021-01 API version.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge documentation](https://developer.rechargepayments.com/2021-11/products/products_list)<br><br>[Recharge API method](https://developer.rechargepayments.com/2021-01/products/products_list "Opens in new tab: Recharge API method") |

products table foreign keys

| Join products with | on |
| --- | --- |
| [collections](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#collections) | ```<br>products.collection_id = collections.id<br>``` |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>products.id = charges.line_items.shopify_product_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>products.id = onetimes.shopify_product_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>products.id = orders.line_items.shopify_product_id<br>``` |
| [subscriptions](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#subscriptions) | ```<br>products.id = subscriptions.shopify_product_id<br>``` |

products table schema

| **collection\_id**<br><br><br>INTEGER |
| --- |
| **created\_at**<br><br><br>DATE-TIME |
| **discount\_amount**<br><br><br>NUMBER |
| **discount\_type**<br><br><br>STRING |
| **handle**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **images**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>large</b>: STRING</li><li><b>medium</b>: STRING</li><li><b>original</b>: STRING</li><li><b>small</b>: STRING</li></ul> |
| **product\_id**<br><br><br>INTEGER |
| **shopify\_product\_id**<br><br><br>INTEGER |
| **subscription\_defaults**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>charge_interval_frequency</b>: INTEGER</li><li><b>cutoff_day_of_month</b>: STRING</li><li><b>cutoff_day_of_week</b>: STRING</li><li><b>expire_after_specific_number_of_charges</b>: INTEGER</li><li><b>handle</b>: STRING</li><li><b>modifiable_properties</b>: ARRAY, which is also a nested data structure:                                        <ul><li><b>number_charges_until_expiration</b>: INTEGER</li><li><b>order_day_of_month</b>: STRING</li><li><b>order_day_of_week</b>: STRING</li><li><b>order_interval_frequency</b>: INTEGER</li><li><b>order_interval_frequency_options</b>: ARRAY                                        <ul><li><b>order_interval_unit</b>: STRING</li><li><b>storefront_purchase_options</b>: STRING</li></ul></li></ul></li></ul> |
| **title**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### store

The `store` table contains info about your store.

| **Replication Method&gt;** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/store/store_retrieve "Opens in new tab: Recharge API method") |

store table schema

| **checkout\_logo\_url**<br><br><br>STRING |
| --- |
| **checkout\_platform**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **currency**<br><br><br>STRING |
| **customer\_portal\_base\_url**<br><br><br>STRING |
| **default\_api\_version**<br><br><br>STRING |
| **domain**<br><br><br>STRING |
| **email**<br><br><br>STRING |
| **external\_platform**<br><br><br>STRING |
| **iana\_timezone**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **identifier**<br><br><br>STRING |
| **merchant\_portal\_base\_url**<br><br><br>STRING |
| **my\_shopify\_domain**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **phone**<br><br><br>STRING |
| **shop\_email**<br><br><br>STRING |
| **shop\_phone**<br><br><br>STRING |
| **timezone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>iana_name</b>: STRING</li><li><b>iana_timezone</b>: STRING</li><li><b>name</b>: STRING</li></ul> |
| **updated\_at**<br><br><br>DATE-TIME |
| **weight\_unit**<br><br><br>STRING |

### subscriptions

The `subscriptions` table contains info about subscriptions. Subscriptions are individual items that customers receive on a recurring basis.

| **Replication Method&gt;** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [Recharge API method](https://developer.rechargepayments.com/2021-11/subscriptions/subscriptions_list "Opens in new tab: Recharge API method") |

subscriptions table foreign keys

| Join subscriptions with | on |
| --- | --- |
| [addresses](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#addresses) | ```<br>subscriptions.address_id = addresses.id<br>```<br><br>```<br>subscriptions.customer_id = addresses.customer_id<br>``` |
| [charges](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#charges) | ```<br>subscriptions.address_id = charges.address_id<br>```<br><br>```<br>subscriptions.customer_id = charges.customer_id<br>```<br><br>```<br>subscriptions.shopify_product_id = charges.line_items.shopify_product_id<br>```<br><br>```<br>subscriptions.id = charges.line_items.subscription_id<br>``` |
| [onetimes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#onetimes) | ```<br>subscriptions.address_id = onetimes.address_id<br>```<br><br>```<br>subscriptions.customer_id = onetimes.customer_id<br>```<br><br>```<br>subscriptions.shopify_product_id = onetimes.shopify_product_id<br>``` |
| [orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#orders) | ```<br>subscriptions.address_id = orders.address_id<br>```<br><br>```<br>subscriptions.customer_id = orders.customer_id<br>```<br><br>```<br>subscriptions.shopify_product_id = orders.line_items.shopify_product_id<br>```<br><br>```<br>subscriptions.id = orders.line_items.subscription_id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#customers) | ```<br>subscriptions.customer_id = customers.id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Recharge.htm#products) | ```<br>subscriptions.shopify_product_id = products.id<br>``` |

subscriptions table schema

| **address\_id**<br><br><br>INTEGER |
| --- |
| **analytics\_data**<br><br><br>OBJECT<br><br>This is a nested data structure: **utm\_params**, ARRAY, which is also a nested data structure:<br><br><ul><li><b>utm_campaign</b>: STRING</li><li><b>utm_content</b>: STRING</li><li><b>utm_data_source</b>: STRING</li><li><b>utm_medium</b>: STRING</li><li><b>utm_source</b>: STRING</li><li><b>utm_term</b>: STRING</li><li><b>utm_timestamp</b>: STRING</li></ul> |
| **cancellation\_reason**<br><br><br>STRING |
| **cancellation\_reason\_comments**<br><br><br>STRING |
| **cancelled\_at**<br><br><br>DATE-TIME |
| **charge\_interval\_frequency**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **customer\_id**<br><br><br>INTEGER |
| **expire\_after\_specific\_number\_of\_charges**<br><br><br>INTEGER |
| **external\_product\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **external\_variant\_id**<br><br><br>OBJECT<br><br>This is a nested data structure: **ecommerce**, STRING. |
| **has\_queued\_charges**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **is\_prepaid**<br><br><br>BOOLEAN |
| **is\_skippable**<br><br><br>BOOLEAN |
| **is\_swappable**<br><br><br>BOOLEAN |
| **max\_retries\_reached**<br><br><br>BOOLEAN |
| **next\_charge\_scheduled\_at**<br><br><br>DATE-TIME |
| **order\_day\_of\_month**<br><br><br>STRING |
| **order\_day\_of\_week**<br><br><br>STRING |
| **order\_interval\_frequency**<br><br><br>STRING |
| **order\_interval\_unit**<br><br><br>STRING |
| **presentment\_currency**<br><br><br>STRING |
| **price**<br><br><br>STRING |
| **product\_title**<br><br><br>STRING |
| **properties**<br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>name</b>: STRING</li><li><b>value</b>: STRING</li></ul> |
| **quantity**<br><br><br>INTEGER |
| **recharge\_product\_id**<br><br><br>INTEGER |
| **shopify\_product\_id**<br><br><br>INTEGER |
| **shopify\_variant\_id**<br><br><br>INTEGER |
| **sku**<br><br><br>STRING |
| **sku\_override**<br><br><br>BOOLEAN |
| **status**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **variant\_title**<br><br><br>STRING |