Schema · Entity relationship diagram
Shopify Checkouts & Discounts tables and relationships
Abandoned checkouts with line items, discount codes, tax lines and custom attributes, and every discount (code and automatic: basic, buy X get Y, free shipping, app) with its redeem codes and usage. Tables and columns are named after the Shopify Admin API and share one shopify schema with Shopify Orders, Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Analytics.
ConnectPaste an API key
Default schema
shopifySource API docshelp.shopify.com
DestinationsAmazon Redshift, Google BigQuery, Snowflake, PostgreSQL, Amazon S3
- The six Shopify connectors load into one
shopifyschema. The others: Shopify Orders, Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Analytics. Dashed boxes are their tables. - Tables and columns are named after the Shopify Admin GraphQL API (2026-07): a table per object (
Order→orders, itslineItems→order_line_items), a column per field path in snake_case (totalPriceSet.shopMoney.amount→total_price_set_shop_money_amount). Ids are the number in Shopify's global id, so they join across connectors. - Lists inside an object (tags, tax lines, custom attributes ...) are child tables keyed by the parent id and
index, replaced as a set whenever the parent changes._jsdata_syncedis the load time;_jsdata_deletedis always false. - Checkout names, phone numbers and street addresses load empty unless you turn on personal data. Checkouts later completed or deleted in Shopify drop out of Shopify's list, so older rows are not updated any more.
- The discounts applied to each order are in Shopify Orders (order_discount_applications, order_line_item_discount_allocations, order_discount_codes).
Primary keyForeign keyReferencesJoins on (not a key)
Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.
Table reference
7 tables · click a table for its columnsabandoned_checkouts65 columns · Abandoned checkoutsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| name | varchar(65535) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| completed_at | timestamp | ||
| note | varchar(65535) | ||
| abandoned_checkout_url | varchar(65535) | ||
| taxes_included | boolean | ||
| customer_idReferences customers.id. | bigint | FK | References customers.id. |
| subtotal_price_set_shop_money_amount | decimal(38,9) | ||
| subtotal_price_set_shop_money_currency_code | varchar(256) | ||
| subtotal_price_set_presentment_money_amount | decimal(38,9) | ||
| subtotal_price_set_presentment_money_currency_code | varchar(256) | ||
| total_price_set_shop_money_amount | decimal(38,9) | ||
| total_price_set_shop_money_currency_code | varchar(256) | ||
| total_price_set_presentment_money_amount | decimal(38,9) | ||
| total_price_set_presentment_money_currency_code | varchar(256) | ||
| total_tax_set_shop_money_amount | decimal(38,9) | ||
| total_tax_set_shop_money_currency_code | varchar(256) | ||
| total_tax_set_presentment_money_amount | decimal(38,9) | ||
| total_tax_set_presentment_money_currency_code | varchar(256) | ||
| total_discount_set_shop_money_amount | decimal(38,9) | ||
| total_discount_set_shop_money_currency_code | varchar(256) | ||
| total_discount_set_presentment_money_amount | decimal(38,9) | ||
| total_discount_set_presentment_money_currency_code | varchar(256) | ||
| total_line_items_price_set_shop_money_amount | decimal(38,9) | ||
| total_line_items_price_set_shop_money_currency_code | varchar(256) | ||
| total_line_items_price_set_presentment_money_amount | decimal(38,9) | ||
| total_line_items_price_set_presentment_money_currency_code | varchar(256) | ||
| total_duties_set_shop_money_amount | decimal(38,9) | ||
| total_duties_set_shop_money_currency_code | varchar(256) | ||
| total_duties_set_presentment_money_amount | decimal(38,9) | ||
| total_duties_set_presentment_money_currency_code | varchar(256) | ||
| shipping_address_first_name | varchar(65535) | ||
| shipping_address_last_name | varchar(65535) | ||
| shipping_address_name | varchar(65535) | ||
| shipping_address_company | varchar(65535) | ||
| shipping_address_address1 | varchar(65535) | ||
| shipping_address_address2 | varchar(65535) | ||
| shipping_address_city | varchar(65535) | ||
| shipping_address_province | varchar(65535) | ||
| shipping_address_province_code | varchar(65535) | ||
| shipping_address_country | varchar(65535) | ||
| shipping_address_country_code_v2 | varchar(256) | ||
| shipping_address_zip | varchar(65535) | ||
| shipping_address_phone | varchar(65535) | ||
| shipping_address_latitude | decimal(38,9) | ||
| shipping_address_longitude | decimal(38,9) | ||
| billing_address_first_name | varchar(65535) | ||
| billing_address_last_name | varchar(65535) | ||
| billing_address_name | varchar(65535) | ||
| billing_address_company | varchar(65535) | ||
| billing_address_address1 | varchar(65535) | ||
| billing_address_address2 | varchar(65535) | ||
| billing_address_city | varchar(65535) | ||
| billing_address_province | varchar(65535) | ||
| billing_address_province_code | varchar(65535) | ||
| billing_address_country | varchar(65535) | ||
| billing_address_country_code_v2 | varchar(256) | ||
| billing_address_zip | varchar(65535) | ||
| billing_address_phone | varchar(65535) | ||
| billing_address_latitude | decimal(38,9) | ||
| billing_address_longitude | decimal(38,9) | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
abandoned_checkout_discount_codes5 columns · Abandoned checkoutsshow in diagram
Primary key: abandoned_checkout_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| abandoned_checkout_idPrimary key (with index). References abandoned_checkouts.id. | bigint | PK FK | Primary key (with index). References abandoned_checkouts.id. |
| indexPrimary key (with abandoned_checkout_id). | bigint | PK | Primary key (with abandoned_checkout_id). |
| code | varchar(65535) | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
abandoned_checkout_custom_attributes6 columns · Abandoned checkoutsshow in diagram
Primary key: abandoned_checkout_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| abandoned_checkout_idPrimary key (with index). References abandoned_checkouts.id. | bigint | PK FK | Primary key (with index). References abandoned_checkouts.id. |
| indexPrimary key (with abandoned_checkout_id). | bigint | PK | Primary key (with abandoned_checkout_id). |
| key | varchar(65535) | ||
| value | varchar(65535) | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
abandoned_checkout_tax_lines13 columns · Abandoned checkoutsshow in diagram
Primary key: abandoned_checkout_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| abandoned_checkout_idPrimary key (with index). References abandoned_checkouts.id. | bigint | PK FK | Primary key (with index). References abandoned_checkouts.id. |
| indexPrimary key (with abandoned_checkout_id). | bigint | PK | Primary key (with abandoned_checkout_id). |
| title | varchar(65535) | ||
| rate | decimal(38,9) | ||
| rate_percentage | decimal(38,9) | ||
| source | varchar(65535) | ||
| channel_liable | boolean | ||
| price_set_shop_money_amount | decimal(38,9) | ||
| price_set_shop_money_currency_code | varchar(256) | ||
| price_set_presentment_money_amount | decimal(38,9) | ||
| price_set_presentment_money_currency_code | varchar(256) | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
abandoned_checkout_line_items28 columns · Abandoned checkoutsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| abandoned_checkout_idReferences abandoned_checkouts.id. | bigint | FK | References abandoned_checkouts.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| title | varchar(65535) | ||
| variant_title | varchar(65535) | ||
| sku | varchar(65535) | ||
| quantity | bigint | ||
| product_id | bigint | ||
| variant_id | bigint | ||
| original_unit_price_set_shop_money_amount | decimal(38,9) | ||
| original_unit_price_set_shop_money_currency_code | varchar(256) | ||
| original_unit_price_set_presentment_money_amount | decimal(38,9) | ||
| original_unit_price_set_presentment_money_currency_code | varchar(256) | ||
| original_total_price_set_shop_money_amount | decimal(38,9) | ||
| original_total_price_set_shop_money_currency_code | varchar(256) | ||
| original_total_price_set_presentment_money_amount | decimal(38,9) | ||
| original_total_price_set_presentment_money_currency_code | varchar(256) | ||
| discounted_unit_price_set_shop_money_amount | decimal(38,9) | ||
| discounted_unit_price_set_shop_money_currency_code | varchar(256) | ||
| discounted_unit_price_set_presentment_money_amount | decimal(38,9) | ||
| discounted_unit_price_set_presentment_money_currency_code | varchar(256) | ||
| discounted_total_price_set_shop_money_amount | decimal(38,9) | ||
| discounted_total_price_set_shop_money_currency_code | varchar(256) | ||
| discounted_total_price_set_presentment_money_amount | decimal(38,9) | ||
| discounted_total_price_set_presentment_money_currency_code | varchar(256) | ||
| custom_attributes | varchar(65535) | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
discounts23 columns · Discountsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| discount_typenameDiscountCodeBasic, DiscountCodeBxgy, DiscountCodeFreeShipping, DiscountCodeApp or the DiscountAutomatic* equivalent. | varchar(256) | DiscountCodeBasic, DiscountCodeBxgy, DiscountCodeFreeShipping, DiscountCodeApp or the DiscountAutomatic* equivalent. | |
| discount_title | varchar(65535) | ||
| discount_status | varchar(256) | ||
| discount_summary | varchar(65535) | ||
| discount_starts_at | timestamp | ||
| discount_ends_at | timestamp | ||
| discount_created_at | timestamp | ||
| discount_updated_at | timestamp | ||
| discount_async_usage_count | bigint | ||
| discount_customer_gets_value_typename | varchar(256) | ||
| discount_customer_gets_value_percentage | decimal(38,9) | ||
| discount_customer_gets_value_amount_amount | decimal(38,9) | ||
| discount_customer_gets_value_amount_currency_code | varchar(256) | ||
| discount_customer_gets_value_applies_on_each_item | boolean | ||
| discount_total_sales_amount | decimal(38,9) | ||
| discount_total_sales_currency_code | varchar(256) | ||
| discount_usage_limit | bigint | ||
| discount_applies_once_per_customer | boolean | ||
| discount_codes_count_count | bigint | ||
| discount_uses_per_order_limit | bigint | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
discount_redeem_codes7 columns · Discountsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| discount_idReferences discounts.id. | bigint | FK | References discounts.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| code | varchar(65535) | ||
| async_usage_count | bigint | ||
| _jsdata_deletedTrue when the record was deleted at the source. | boolean | True when the record was deleted at the source. | |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |