Schema · Entity relationship diagram
Shopify Orders tables and relationships
Orders with line items, shipping lines, discount applications and allocations, tax lines, tags, discount codes and custom attributes; refunds (lines, shipping, adjustments); payment and tender transactions; fulfillments with tracking, fulfillment orders, events and fulfilled line items; the shop record. Tables and columns are named after the Shopify Admin API and share one shopify schema with Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Checkouts & Discounts, Shopify Analytics.
shopify- The six Shopify connectors load into one
shopifyschema. The others: Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Checkouts & Discounts, 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. - Emails, names, phone numbers, street addresses, IPs and order notes load empty unless you turn on personal data; customer ids, city, province and country are kept.
- fulfillment_orders, fulfillment_events and fulfillment_line_items need the app's fulfillment-order scopes; without read_third_party_fulfillment_orders, orders shipped by a 3PL are missing there (Shopify returns them silently incomplete). fulfillments comes from each order and is always complete.
Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.
Table reference
25 tables · click a table for its columnsorders175 columns · Ordersshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| name | varchar(65535) | ||
| number | bigint | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| processed_at | timestamp | ||
| cancelled_at | timestamp | ||
| closed_at | timestamp | ||
| cancel_reason | varchar(256) | ||
| cancellation_staff_note | varchar(65535) | ||
| varchar(65535) | |||
| phone | varchar(65535) | ||
| note | varchar(65535) | ||
| po_number | varchar(65535) | ||
| confirmation_number | varchar(65535) | ||
| source_name | varchar(65535) | ||
| source_identifier | varchar(65535) | ||
| customer_locale | varchar(65535) | ||
| client_ip | varchar(65535) | ||
| currency_code | varchar(256) | ||
| presentment_currency_code | varchar(256) | ||
| taxes_included | boolean | ||
| tax_exempt | boolean | ||
| duties_included | boolean | ||
| test | boolean | ||
| confirmed | boolean | ||
| closed | boolean | ||
| edited | boolean | ||
| display_financial_status | varchar(256) | ||
| display_fulfillment_status | varchar(256) | ||
| subtotal_line_items_quantity | bigint | ||
| current_subtotal_line_items_quantity | bigint | ||
| total_weight | bigint | ||
| discount_code | varchar(65535) | ||
| payment_gateway_names | varchar(65535) | ||
| customer_idReferences customers.id. | bigint | FK | References customers.id. |
| app_id | bigint | ||
| app_name | varchar(65535) | ||
| retail_location_idReferences locations.id. | bigint | FK | References locations.id. |
| 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) | ||
| customer_journey_summary_customer_order_index | bigint | ||
| customer_journey_summary_days_to_conversion | bigint | ||
| customer_journey_summary_first_visit_id | bigint | ||
| customer_journey_summary_first_visit_occurred_at | timestamp | ||
| customer_journey_summary_first_visit_source | varchar(65535) | ||
| customer_journey_summary_first_visit_source_type | varchar(256) | ||
| customer_journey_summary_first_visit_source_description | varchar(65535) | ||
| customer_journey_summary_first_visit_landing_page | varchar(65535) | ||
| customer_journey_summary_first_visit_referrer_url | varchar(65535) | ||
| customer_journey_summary_first_visit_referral_code | varchar(65535) | ||
| customer_journey_summary_first_visit_utm_parameters_source | varchar(65535) | ||
| customer_journey_summary_first_visit_utm_parameters_medium | varchar(65535) | ||
| customer_journey_summary_first_visit_utm_parameters_campaign | varchar(65535) | ||
| customer_journey_summary_first_visit_utm_parameters_content | varchar(65535) | ||
| customer_journey_summary_first_visit_utm_parameters_term | varchar(65535) | ||
| customer_journey_summary_last_visit_id | bigint | ||
| customer_journey_summary_last_visit_occurred_at | timestamp | ||
| customer_journey_summary_last_visit_source | varchar(65535) | ||
| customer_journey_summary_last_visit_source_type | varchar(256) | ||
| customer_journey_summary_last_visit_source_description | varchar(65535) | ||
| customer_journey_summary_last_visit_landing_page | varchar(65535) | ||
| customer_journey_summary_last_visit_referrer_url | varchar(65535) | ||
| customer_journey_summary_last_visit_referral_code | varchar(65535) | ||
| customer_journey_summary_last_visit_utm_parameters_source | varchar(65535) | ||
| customer_journey_summary_last_visit_utm_parameters_medium | varchar(65535) | ||
| customer_journey_summary_last_visit_utm_parameters_campaign | varchar(65535) | ||
| customer_journey_summary_last_visit_utm_parameters_content | varchar(65535) | ||
| customer_journey_summary_last_visit_utm_parameters_term | varchar(65535) | ||
| 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_discounts_set_shop_money_amount | decimal(38,9) | ||
| total_discounts_set_shop_money_currency_code | varchar(256) | ||
| total_discounts_set_presentment_money_amount | decimal(38,9) | ||
| total_discounts_set_presentment_money_currency_code | varchar(256) | ||
| total_shipping_price_set_shop_money_amount | decimal(38,9) | ||
| total_shipping_price_set_shop_money_currency_code | varchar(256) | ||
| total_shipping_price_set_presentment_money_amount | decimal(38,9) | ||
| total_shipping_price_set_presentment_money_currency_code | varchar(256) | ||
| total_tip_received_set_shop_money_amount | decimal(38,9) | ||
| total_tip_received_set_shop_money_currency_code | varchar(256) | ||
| total_tip_received_set_presentment_money_amount | decimal(38,9) | ||
| total_tip_received_set_presentment_money_currency_code | varchar(256) | ||
| total_refunded_set_shop_money_amount | decimal(38,9) | ||
| total_refunded_set_shop_money_currency_code | varchar(256) | ||
| total_refunded_set_presentment_money_amount | decimal(38,9) | ||
| total_refunded_set_presentment_money_currency_code | varchar(256) | ||
| total_refunded_shipping_set_shop_money_amount | decimal(38,9) | ||
| total_refunded_shipping_set_shop_money_currency_code | varchar(256) | ||
| total_refunded_shipping_set_presentment_money_amount | decimal(38,9) | ||
| total_refunded_shipping_set_presentment_money_currency_code | varchar(256) | ||
| total_received_set_shop_money_amount | decimal(38,9) | ||
| total_received_set_shop_money_currency_code | varchar(256) | ||
| total_received_set_presentment_money_amount | decimal(38,9) | ||
| total_received_set_presentment_money_currency_code | varchar(256) | ||
| total_outstanding_set_shop_money_amount | decimal(38,9) | ||
| total_outstanding_set_shop_money_currency_code | varchar(256) | ||
| total_outstanding_set_presentment_money_amount | decimal(38,9) | ||
| total_outstanding_set_presentment_money_currency_code | varchar(256) | ||
| net_payment_set_shop_money_amount | decimal(38,9) | ||
| net_payment_set_shop_money_currency_code | varchar(256) | ||
| net_payment_set_presentment_money_amount | decimal(38,9) | ||
| net_payment_set_presentment_money_currency_code | varchar(256) | ||
| cart_discount_amount_set_shop_money_amount | decimal(38,9) | ||
| cart_discount_amount_set_shop_money_currency_code | varchar(256) | ||
| cart_discount_amount_set_presentment_money_amount | decimal(38,9) | ||
| cart_discount_amount_set_presentment_money_currency_code | varchar(256) | ||
| current_subtotal_price_set_shop_money_amount | decimal(38,9) | ||
| current_subtotal_price_set_shop_money_currency_code | varchar(256) | ||
| current_subtotal_price_set_presentment_money_amount | decimal(38,9) | ||
| current_subtotal_price_set_presentment_money_currency_code | varchar(256) | ||
| current_total_price_set_shop_money_amount | decimal(38,9) | ||
| current_total_price_set_shop_money_currency_code | varchar(256) | ||
| current_total_price_set_presentment_money_amount | decimal(38,9) | ||
| current_total_price_set_presentment_money_currency_code | varchar(256) | ||
| current_total_tax_set_shop_money_amount | decimal(38,9) | ||
| current_total_tax_set_shop_money_currency_code | varchar(256) | ||
| current_total_tax_set_presentment_money_amount | decimal(38,9) | ||
| current_total_tax_set_presentment_money_currency_code | varchar(256) | ||
| current_total_discounts_set_shop_money_amount | decimal(38,9) | ||
| current_total_discounts_set_shop_money_currency_code | varchar(256) | ||
| current_total_discounts_set_presentment_money_amount | decimal(38,9) | ||
| current_total_discounts_set_presentment_money_currency_code | varchar(256) | ||
| current_shipping_price_set_shop_money_amount | decimal(38,9) | ||
| current_shipping_price_set_shop_money_currency_code | varchar(256) | ||
| current_shipping_price_set_presentment_money_amount | decimal(38,9) | ||
| current_shipping_price_set_presentment_money_currency_code | varchar(256) | ||
| current_total_duties_set_shop_money_amount | decimal(38,9) | ||
| current_total_duties_set_shop_money_currency_code | varchar(256) | ||
| current_total_duties_set_presentment_money_amount | decimal(38,9) | ||
| current_total_duties_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) | ||
| _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. |
order_discount_codes5 columns · Ordersshow in diagram
Primary key: order_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| order_idPrimary key (with index). References orders.id. | bigint | PK FK | Primary key (with index). References orders.id. |
| indexPrimary key (with order_id). | bigint | PK | Primary key (with order_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. |
order_custom_attributes6 columns · Ordersshow in diagram
Primary key: order_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| order_idPrimary key (with index). References orders.id. | bigint | PK FK | Primary key (with index). References orders.id. |
| indexPrimary key (with order_id). | bigint | PK | Primary key (with order_id). |
| key | varchar(65535) | ||
| valueCart / checkout attribute value; values whose key looks personal (email, phone, name, address) are blanked unless personal data is included. | varchar(65535) | Cart / checkout attribute value; values whose key looks personal (email, phone, name, address) are blanked unless personal data is included. | |
| _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. |
order_tax_lines13 columns · Ordersshow in diagram
Primary key: order_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| order_idPrimary key (with index). References orders.id. | bigint | PK FK | Primary key (with index). References orders.id. |
| indexPrimary key (with order_id). | bigint | PK | Primary key (with order_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. |
shop24 columns · Ordersshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| name | varchar(65535) | ||
| varchar(65535) | |||
| contact_email | varchar(65535) | ||
| myshopify_domain | varchar(65535) | ||
| url | varchar(65535) | ||
| currency_code | varchar(256) | ||
| enabled_presentment_currencies | varchar(65535) | ||
| iana_timezone | varchar(65535) | ||
| timezone_offset | varchar(65535) | ||
| taxes_included | boolean | ||
| tax_shipping | boolean | ||
| weight_unit | varchar(256) | ||
| unit_system | varchar(256) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| shop_owner_name | varchar(65535) | ||
| plan_public_display_name | varchar(65535) | ||
| plan_shopify_plus | boolean | ||
| plan_partner_development | boolean | ||
| primary_domain_host | varchar(65535) | ||
| primary_domain_url | 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. |
order_line_items42 columns · Line items & shippingshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| name | varchar(65535) | ||
| title | varchar(65535) | ||
| variant_title | varchar(65535) | ||
| sku | varchar(65535) | ||
| vendor | varchar(65535) | ||
| quantity | bigint | ||
| current_quantityQuantity after removals and edits; line items removed from an order keep their row. | bigint | Quantity after removals and edits; line items removed from an order keep their row. | |
| unfulfilled_quantity | bigint | ||
| refundable_quantity | bigint | ||
| non_fulfillable_quantity | bigint | ||
| requires_shipping | boolean | ||
| taxable | boolean | ||
| is_gift_card | boolean | ||
| product_id | bigint | ||
| variant_idReferences product_variants.id. | bigint | FK | References product_variants.id. |
| selling_plan_name | varchar(65535) | ||
| selling_plan_selling_plan_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_set_shop_money_amount | decimal(38,9) | ||
| original_total_set_shop_money_currency_code | varchar(256) | ||
| original_total_set_presentment_money_amount | decimal(38,9) | ||
| original_total_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_set_shop_money_amount | decimal(38,9) | ||
| discounted_total_set_shop_money_currency_code | varchar(256) | ||
| discounted_total_set_presentment_money_amount | decimal(38,9) | ||
| discounted_total_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) | ||
| _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. |
order_line_item_tax_lines13 columns · Line items & shippingshow in diagram
Primary key: line_item_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| line_item_idPrimary key (with index). References order_line_items.id. | bigint | PK FK | Primary key (with index). References order_line_items.id. |
| indexPrimary key (with line_item_id). | bigint | PK | Primary key (with line_item_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. |
order_line_item_discount_allocations9 columns · Line items & shippingshow in diagram
Primary key: line_item_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| line_item_idPrimary key (with index). References order_line_items.id. | bigint | PK FK | Primary key (with index). References order_line_items.id. |
| indexPrimary key (with line_item_id). | bigint | PK | Primary key (with line_item_id). |
| allocated_amount_set_shop_money_amount | decimal(38,9) | ||
| allocated_amount_set_shop_money_currency_code | varchar(256) | ||
| allocated_amount_set_presentment_money_amount | decimal(38,9) | ||
| allocated_amount_set_presentment_money_currency_code | varchar(256) | ||
| discount_application_indexJoins to order_discount_applications.index (Together with the order: the allocation belongs to the order's discount application with this index.). | bigint | FK | Joins to order_discount_applications.index (Together with the order: the allocation belongs to the order's discount application with this index.). |
| _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. |
order_line_item_custom_attributes6 columns · Line items & shippingshow in diagram
Primary key: line_item_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| line_item_idPrimary key (with index). References order_line_items.id. | bigint | PK FK | Primary key (with index). References order_line_items.id. |
| indexPrimary key (with line_item_id). | bigint | PK | Primary key (with line_item_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. |
order_shipping_lines24 columns · Line items & shippingshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| title | varchar(65535) | ||
| code | varchar(65535) | ||
| source | varchar(65535) | ||
| carrier_identifier | varchar(65535) | ||
| delivery_category | varchar(65535) | ||
| custom | boolean | ||
| is_removed | boolean | ||
| original_price_set_shop_money_amount | decimal(38,9) | ||
| original_price_set_shop_money_currency_code | varchar(256) | ||
| original_price_set_presentment_money_amount | decimal(38,9) | ||
| original_price_set_presentment_money_currency_code | varchar(256) | ||
| discounted_price_set_shop_money_amount | decimal(38,9) | ||
| discounted_price_set_shop_money_currency_code | varchar(256) | ||
| discounted_price_set_presentment_money_amount | decimal(38,9) | ||
| discounted_price_set_presentment_money_currency_code | varchar(256) | ||
| current_discounted_price_set_shop_money_amount | decimal(38,9) | ||
| current_discounted_price_set_shop_money_currency_code | varchar(256) | ||
| current_discounted_price_set_presentment_money_amount | decimal(38,9) | ||
| current_discounted_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. |
order_shipping_line_tax_lines13 columns · Line items & shippingshow in diagram
Primary key: shipping_line_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| shipping_line_idPrimary key (with index). References order_shipping_lines.id. | bigint | PK FK | Primary key (with index). References order_shipping_lines.id. |
| indexPrimary key (with shipping_line_id). | bigint | PK | Primary key (with shipping_line_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. |
order_discount_applications15 columns · Line items & shippingshow in diagram
Primary key: order_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| order_idPrimary key (with index). References orders.id. | bigint | PK FK | Primary key (with index). References orders.id. |
| typename | varchar(256) | ||
| indexPrimary key (with order_id). | bigint | PK | Primary key (with order_id). |
| allocation_method | varchar(256) | ||
| target_selection | varchar(256) | ||
| target_type | varchar(256) | ||
| value_typename | varchar(256) | ||
| value_amount | decimal(38,9) | ||
| value_currency_code | varchar(256) | ||
| value_percentage | decimal(38,9) | ||
| code | varchar(65535) | ||
| title | varchar(65535) | ||
| description | 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. |
refunds13 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| index | bigint | ||
| idPrimary key. | bigint | PK | Primary key. |
| created_at | timestamp | ||
| updated_at | timestamp | ||
| processed_at | timestamp | ||
| note | varchar(65535) | ||
| total_refunded_set_shop_money_amount | decimal(38,9) | ||
| total_refunded_set_shop_money_currency_code | varchar(256) | ||
| total_refunded_set_presentment_money_amount | decimal(38,9) | ||
| total_refunded_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. |
order_transactions29 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| index | bigint | ||
| idPrimary key. | bigint | PK | Primary key. |
| kind | varchar(256) | ||
| status | varchar(256) | ||
| gateway | varchar(65535) | ||
| formatted_gateway | varchar(65535) | ||
| test | boolean | ||
| error_code | varchar(256) | ||
| created_at | timestamp | ||
| processed_at | timestamp | ||
| authorization_expires_at | timestamp | ||
| payment_id | varchar(65535) | ||
| account_number | varchar(65535) | ||
| manual_payment_gateway | boolean | ||
| amount_set_shop_money_amount | decimal(38,9) | ||
| amount_set_shop_money_currency_code | varchar(256) | ||
| amount_set_presentment_money_amount | decimal(38,9) | ||
| amount_set_presentment_money_currency_code | varchar(256) | ||
| parent_transaction_id | bigint | ||
| payment_details_typename | varchar(256) | ||
| payment_details_company | varchar(65535) | ||
| payment_details_bin | varchar(65535) | ||
| payment_details_wallet | varchar(256) | ||
| payment_details_name | varchar(65535) | ||
| payment_details_number | varchar(65535) | ||
| receipt_jsonThe payment gateway receipt (JSON); personal-looking keys are removed unless personal data is included. | varchar(65535) | The payment gateway receipt (JSON); personal-looking keys are removed unless personal data is included. | |
| _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. |
refund_line_items21 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| refund_idReferences refunds.id. | bigint | FK | References refunds.id. |
| idPrimary key. | bigint | PK | Primary key. |
| quantity | bigint | ||
| restock_type | varchar(256) | ||
| restocked | boolean | ||
| location_id | bigint | ||
| line_item_idReferences order_line_items.id. | bigint | FK | References order_line_items.id. |
| 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) | ||
| subtotal_set_shop_money_amount | decimal(38,9) | ||
| subtotal_set_shop_money_currency_code | varchar(256) | ||
| subtotal_set_presentment_money_amount | decimal(38,9) | ||
| subtotal_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) | ||
| _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. |
refund_shipping_lines15 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| refund_idReferences refunds.id. | bigint | FK | References refunds.id. |
| idPrimary key. | bigint | PK | Primary key. |
| shipping_line_idReferences order_shipping_lines.id. | bigint | FK | References order_shipping_lines.id. |
| shipping_line_title | varchar(65535) | ||
| shipping_line_code | varchar(65535) | ||
| subtotal_amount_set_shop_money_amount | decimal(38,9) | ||
| subtotal_amount_set_shop_money_currency_code | varchar(256) | ||
| subtotal_amount_set_presentment_money_amount | decimal(38,9) | ||
| subtotal_amount_set_presentment_money_currency_code | varchar(256) | ||
| tax_amount_set_shop_money_amount | decimal(38,9) | ||
| tax_amount_set_shop_money_currency_code | varchar(256) | ||
| tax_amount_set_presentment_money_amount | decimal(38,9) | ||
| tax_amount_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. |
order_adjustments13 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| refund_idReferences refunds.id. | bigint | FK | References refunds.id. |
| idPrimary key. | bigint | PK | Primary key. |
| reason | varchar(256) | ||
| amount_set_shop_money_amount | decimal(38,9) | ||
| amount_set_shop_money_currency_code | varchar(256) | ||
| amount_set_presentment_money_amount | decimal(38,9) | ||
| amount_set_presentment_money_currency_code | varchar(256) | ||
| tax_amount_set_shop_money_amount | decimal(38,9) | ||
| tax_amount_set_shop_money_currency_code | varchar(256) | ||
| tax_amount_set_presentment_money_amount | decimal(38,9) | ||
| tax_amount_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. |
refund_transactions4 columns · Refunds & paymentsshow in diagram
Primary key: refund_id, transaction_id
| Column | Type | Key | Description |
|---|---|---|---|
| refund_idPrimary key (with transaction_id). References refunds.id. | bigint | PK FK | Primary key (with transaction_id). References refunds.id. |
| transaction_idPrimary key (with refund_id). References order_transactions.id. | bigint | PK FK | Primary key (with refund_id). References order_transactions.id. |
| _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. |
tender_transactions13 columns · Refunds & paymentsshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| processed_at | timestamp | ||
| test | boolean | ||
| payment_method | varchar(65535) | ||
| remote_reference | varchar(65535) | ||
| amount_amount | decimal(38,9) | ||
| amount_currency_code | varchar(256) | ||
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| transaction_details_typename | varchar(256) | ||
| transaction_details_credit_card_company | varchar(65535) | ||
| transaction_details_credit_card_number | 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. |
fulfillments18 columns · Fulfillmentshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| index | bigint | ||
| idPrimary key. | bigint | PK | Primary key. |
| name | varchar(65535) | ||
| status | varchar(256) | ||
| display_status | varchar(256) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| delivered_at | timestamp | ||
| in_transit_at | timestamp | ||
| estimated_delivery_at | timestamp | ||
| total_quantity | bigint | ||
| requires_shipping | boolean | ||
| location_idReferences locations.id. | bigint | FK | References locations.id. |
| service_id | bigint | ||
| service_service_name | 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. |
fulfillment_tracking_info7 columns · Fulfillmentshow in diagram
Primary key: fulfillment_id, index
| Column | Type | Key | Description |
|---|---|---|---|
| fulfillment_idPrimary key (with index). References fulfillments.id. | bigint | PK FK | Primary key (with index). References fulfillments.id. |
| indexPrimary key (with fulfillment_id). | bigint | PK | Primary key (with fulfillment_id). |
| company | varchar(65535) | ||
| number | varchar(65535) | ||
| url | 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. |
fulfillment_orders15 columns · Fulfillmentshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | bigint | PK | Primary key. |
| status | varchar(256) | ||
| request_status | varchar(256) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| fulfill_at | timestamp | ||
| fulfill_by | timestamp | ||
| order_idReferences orders.id. | bigint | FK | References orders.id. |
| order_name | varchar(65535) | ||
| order_processed_at | timestamp | ||
| assigned_location_name | varchar(65535) | ||
| assigned_location_location_id | bigint | ||
| delivery_method_method_type | 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. |
fulfillment_events17 columns · Fulfillmentshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| fulfillment_idReferences fulfillments.id. | bigint | FK | References fulfillments.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| status | varchar(256) | ||
| happened_at | timestamp | ||
| created_at | timestamp | ||
| estimated_delivery_at | timestamp | ||
| message | varchar(65535) | ||
| address1 | varchar(65535) | ||
| city | varchar(65535) | ||
| province | varchar(65535) | ||
| country | varchar(65535) | ||
| zip | varchar(65535) | ||
| latitude | decimal(38,9) | ||
| 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. |
fulfillment_line_items15 columns · Fulfillmentshow in diagram
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| fulfillment_idReferences fulfillments.id. | bigint | FK | References fulfillments.id. |
| typename | varchar(256) | ||
| idPrimary key. | bigint | PK | Primary key. |
| quantity | bigint | ||
| line_item_idReferences order_line_items.id. | bigint | FK | References order_line_items.id. |
| original_total_set_shop_money_amount | decimal(38,9) | ||
| original_total_set_shop_money_currency_code | varchar(256) | ||
| original_total_set_presentment_money_amount | decimal(38,9) | ||
| original_total_set_presentment_money_currency_code | varchar(256) | ||
| discounted_total_set_shop_money_amount | decimal(38,9) | ||
| discounted_total_set_shop_money_currency_code | varchar(256) | ||
| discounted_total_set_presentment_money_amount | decimal(38,9) | ||
| discounted_total_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. |