✅ Now Live on Google Workspace Marketplace! Install Free in 1 Click ➔ • Early-Bird Lifetime Pro just $19 (use code EARLYBIRD).
PayloadFlatten
Install on Google Sheets
Multi-SKU • Line Items & Discounts

Flatten Shopify Line Items & Discounts in Google Sheets

Stop struggling with line_items[] arrays. Un-nest SKUs, quantities, fulfillment status, and discount codes into clear, readable columns in seconds.

Install Free on Google Marketplace ➔ Test Interactive Demo Below View Early-Bird ($19)
Runs on Google Apps Script Native =FLATTEN_JSON() formula Zero server maintenance

Live Interactive Simulator

Pre-loaded with sample payload: Shopify Order with Multiple Items & Promotional Code

Load sample:
Edit or paste your own
✅ Extracted 19 columns in 4ms
B1: =FLATTEN_JSON(A2:A)
order_namecreated_atcurrencysubtotal_pricetotal_discountstotal_priceline_items.0.skuline_items.0.titleline_items.0.quantityline_items.0.priceline_items.1.skuline_items.1.titleline_items.1.quantityline_items.1.pricediscount_applications.0.codediscount_applications.0.typediscount_applications.0.valuecustomer.emailcustomer.customer_tier
#109242026-10-14T14:32:00ZEUR240.0040.00200.00RUN-SHOE-M10AeroFlow Velocity Runners1160.00RUN-SOCK-3PKPerformance Ankle Socks 3-Pack240.00MARATHON20percentage20.0lukas.weber@berlin-tech.deVIP

Why Operators Choose PayloadFlatten

Stop burning manual engineering hours or expensive SaaS subscriptions on simple webhook parsing.

Brittle Regex & Column Duplication

  • ✕ Fragile REGEXEXTRACT formulas that break the moment a product title contains a comma.
  • ✕ Creating duplicate rows per item that artificially inflate total order revenue sums.
  • ✕ Losing discount code tracking when multiple discount applications are present.
  • ✕ Manual copy-pasting order details into inventory management spreadsheets.
Modern Client-Side

The PayloadFlatten Advantage

  • ✓ Indexed headers (e.g. line_items.0.sku, line_items.1.sku) preserve single-row order totals.
  • ✓ Separate columns for product titles, quantities, unit prices, and fulfillment status.
  • ✓ Full discount code visibility: Unpacks discount codes, percentage cuts, and coupon amounts.
  • ✓ Automated batch processing: Flatten 50+ incoming orders in under a second.

Simple, Transparent Pricing

No monthly retainers. No cloud relays. Own it for life.

Free Forever

For solo operators testing the formula.

$0 / lifetime
  • Native =FLATTEN_JSON() formula
  • Instant 30-second Apps Script setup
  • Up to 50 rows per batch run
  • 100% Google Apps Script privacy
Install Free from Marketplace ➔
Early-Bird Deal • 60% Off

Early-Bird Solo

Complete freedom for individual operators.

$19 $49 One-time payment

Use code EARLYBIRD at checkout

  • 1 Google Account license
  • Unlimited rows & runs (no cap)
  • Full recursive object & array un-nesting
  • Dot notation customization
  • Lifetime license key & updates
Claim $19 Solo License ➔

Team & Agency

For agencies managing client automations.

$49 $149 One-time payment

Multi-account agency license

  • Up to 5 Google Accounts
  • Unlimited rows, runs & sheets
  • Automated spreadsheet installable triggers
  • Commercial & client delivery allowed
  • Priority 1-on-1 email support
Get Team License ($49) ➔

Frequently Asked Questions

Common questions about Shopify line items JSON to Google Sheets and spreadsheet un-nesting.

How do I calculate total units sold across orders with varying line item counts?

Because PayloadFlatten generates predictable column keys (line_items.0.quantity, line_items.1.quantity, etc.), you can easily sum units using native Google Sheets formulas like =SUMIF(headers, "*quantity*", row_range).

Can I extract product custom attributes or variant titles?

Yes. If your line items include variant_title, properties (e.g. custom engraving or size), or vendor fields, PayloadFlatten recursively extracts them into line_items.0.variant_title and line_items.0.properties cleanly.

Does it work with historical CSV exports from Shopify?

Yes. Simply paste the raw JSON column from your Shopify API export or webhook archive into Google Sheets, apply =FLATTEN_JSON(), and download your clean, tabular inventory table.

Google Workspace Marketplace Approved

Ready to un-nest JSON inside Google Sheets™?

Install PayloadFlatten directly from the official Google Workspace Marketplace in one click—free up to 50 rows per run, zero external servers.

Popular Integrations & Use Cases

Explore native un-nesting solutions for popular webhook payloads and data pipelines.

50 Pre-Configured Simulator Engines

Formula & Script Alternatives

Native formula replacements for fragile legacy scripts.

E-Commerce & Payment Webhooks

Un-nest order, customer, and transaction payloads.

Automation & Webhook Connectors

Stop burning operations in Make, n8n, and Zapier.

CRM, Forms & Developer Webhooks

Parse polymorphic form answers, lead updates, and git events.