How to sync your Shopify Orders and Line Items to BigQuery

SyncRange makes it simple to export Shopify data (orders and their line items) into Google BigQuery for analytics and backup.

Overview: SyncRange + Shopify + BigQuery

SyncRange is a no-code data connector that automates exporting e-commerce data to destinations including Google BigQuery. Connecting Shopify to BigQuery via SyncRange lets you combine sales data with other datasets, run complex SQL queries, and create dashboards in tools like Looker Studio. BigQuery is ideal for large volumes and analytics (it can handle millions of rows, complex joins, and supports machine learning), whereas spreadsheets hit limits.

Exporting Shopify orders (and their associated line items) to BigQuery unlocks benefits such as real-time sales reporting, inventory insights, and reliable backups. You can recover deleted records and join orders with marketing or finance data for deeper analysis.

SyncRange automates the data flow, keeping your warehouse up-to-date without manual CSV downloads

Prerequisites

Before you begin, ensure you have the following:

Setting Up the Sync in SyncRange

  1. Create the Export: In SyncRange, go to Export Builder and click Create New Export. Choose Shopify as the data source, and select your connected Shopify store. For destination, pick your BigQuery connector and target dataset.
  2. Configure Date Range: Choose how much history to fetch on the first run. For example, use Maximum (10 years) to pull all available orders and line items initially. After that, use Since last export with a daily schedule for incremental updates. (Note: “Since last export” ensures each run only adds orders that arrived since the previous run.)
  3. Select Data Tabs: SyncRange presents separate tabs for each data type. Enable the Orders and Line Items tabs to export those tables. (You can enable other tabs like Customers or Products if needed.) Each tab can be configured independently.
  4. Choose Columns: For each tab, click Select Columns and pick the fields you need. SyncRange exposes all Shopify fields, including nested objects (e.g. addresses) and arrays (e.g. discount codes) as JSON if desired. For example, on the Orders tab you might select Order ID, Order Number, Date, Customer Email, Total Price, Currency, Financial Status, Fulfilment Status, etc.. On the Line Items tab, pick Line Item ID, Order ID, Line Item Name, Quantity, Price, SKU, Variant ID, Product ID, Discount Amount, Tax, Currency, etc.. Use the “Select All”/“Deselect All” buttons or search box as needed.
  5. Data Handling (Append vs Replace): For Orders and Line Items, use Append mode with incremental dates to build a historical log. Append mode adds new rows each run, leaving old data intact. (Append is ideal for time-series data like orders; use Replace only if you need to fully refresh static tables.) For example, after the initial full load, subsequent runs should use Append and “Since last export” to capture new orders each day.
  6. Save & Test Run: Save the export configuration. Then click Run Export Now to pull data immediately. SyncRange will extract the selected Shopify orders and line items and load them into your BigQuery tables. Verify the tables in BigQuery: you should see rows inserted. Once confirmed, schedule the export (e.g. daily at 2am) to keep it automating.
  7. Scheduling: Under Schedules, set the frequency (e.g. daily, or multiple times per day) to refresh. SyncRange will then automatically run the export on your schedule, appending new orders to BigQuery without manual intervention.

Available Shopify Fields

Below are the main fields you can export for Orders and Line Items. SyncRange makes every Shopify field available, including nested objects and arrays (often as JSON). Use these to guide your BigQuery schema.

Shopify Order Fields

Field NameTypeExampleNotes/Nested
idinteger123456789Shopify’s unique order ID (int64).
name (order number)string#1001The order’s human-readable number.
emailstring[email protected]Customer email.
created_attimestamp2026-05-10T14:53:00ZOrder creation time (ISO 8601 UTC).
updated_attimestamp2026-05-11T02:15:00ZLast update time.
total_pricestring/NUMERIC"299.97" / 299.97Order total (numeric string).
subtotal_pricestring/NUMERIC"279.97"Total before taxes/discounts.
total_taxstring/NUMERIC"20.00"Total tax amount.
currencystringUSD, AUDCurrency code.
financial_statusstringpaid, pendingPayment status.
fulfillment_statusstring/nullfulfilled, nullAll items fulfilled?
location_idinteger98765432Shopify location (if multi-location store).
customer_idinteger654321Linked customer ID.
customer_first_namestringJaneCustomer name (if fetched).
customer_last_namestringDoe
shipping_addressobject–Nested object (address fields below)
shipping_address1string123 Main StStreet address.
shipping_citystringSydney
shipping_postal_codestring2000
shipping_countrystringAustralia
billing_addressobject–Nested billing address (similar fields).
tagsstringVIP, WholesaleComma-separated tags.
discount_codesstringSUMMER20Codes applied (comma-separated list).
discount_codes (JSON)string["SUMMER20"]JSON array of codes (for parsing).
sourcestringwebSource channel of order.
notestringUrgent orderMerchant notes.
note_attributesstring (JSON)[{"key":"gift","value":"yes"}]JSON array of order meta attributes.
shipping_linesobject/array–Array of shipping charge objects.
tax_linesobject/array–Array of applied tax objects.

Shopify Line Item Fields

Field NameTypeExampleNotes/Nested
idinteger987654321Unique line item ID.
order_idinteger123456789Parent order’s ID (foreign key).
order_namestring#1001Parent order’s name (for easy joins).
titlestringWidget AProduct name.
product_idinteger345678Shopify product ID (if linked).
variant_idinteger7654321Product variant ID.
skustringWIDGET-A-REDSKU code.
quantityinteger2Qty of this item in the order.
pricestring/NUMERIC"49.99" / 49.99Unit price (string).
currencystringUSDCurrency code.
total_pricestring/NUMERIC"99.98"Price * quantity.
total_discountstring/NUMERIC"10.00"Total discount on this line.
fulfillment_statusstring/nullfulfilled / nullIf this line item is fulfilled.
tax_linesobject/array–Array of tax line objects (e.g. rate, title).
discount_allocationsobject/array–Applied discounts array.
propertiesobject/array–Custom line-item properties (e.g. engraving).
variant_titlestringLarge / RedName of the variant.
vendorstringMySupplierVendor of the product.
namestringWidget A (Large, Red)Combined title + variant.
admin_graphql_api_idstringgid://shopify/LineItem/...Internal global ID.

Recommended BigQuery Schema

In BigQuery, you can let SyncRange auto-detect the schema or define a custom schema. Here are general recommendations:

Mapping Patterns & Transformations

When moving data from Shopify to BigQuery, common patterns include:

SyncRange also supports advanced features like automatically splitting comma-lists into JSON arrays, which is useful when you have multi-value fields (e.g. multiple discount codes or customer segments). This ensures your queries in BigQuery can treat them consistently (via PARSE_JSON).

Use Cases & Analytics Examples

Troubleshooting and Best Practices

Launch Checklist

Before going live, ensure you have:

Once everything is configured, SyncRange will handle ongoing syncs in the background. Your BigQuery tables will stay current with minimal effort. You can then focus on analysing the data and growing your business without manual exports.

Start syncing your ecommerce data in minutes Start free today. No credit card required.