The workflow is designed around a practical client handoff: extract, validate, map, export, and explain.
Before implementation, the report definitions need to be agreed:
- Which date range should be used?
- Should sales be grouped by order date, payment date, fulfillment date, or refund date?
- Should gross sales, net sales, taxes, shipping, discounts, and refunds be shown separately?
- Which customer fields are required?
- Which product and variant fields are needed?
The private implementation demonstrates a repeatable extraction pattern using sanitized API-shaped data.
The case study now describes two private demo paths:
- v0.1 REST-style mock workflow for simple page-based API-shaped records;
- v0.2 GraphQL-shaped mock workflow using fake local
edges,node,cursor, andpageInfostructures.
The v0.2 path is closer to Shopify's current GraphQL Admin API direction while remaining a local mock workflow. It does not call Shopify, include OAuth, expose tokens, use real store domains, or provide production GraphQL query templates.
See graphql_workflow_summary.md and rest_to_graphql_mock_migration_summary.md for the public-safe v0.2 notes.
In a real Shopify project, extraction would need to be adapted to Shopify GraphQL Admin API access, cursor pagination, app scopes, and store-specific resource needs.
Nested records are flattened into reporting-friendly tables:
- orders;
- line items;
- customers;
- products;
- summary tables.
The goal is to make the output usable in CSV, Excel, SQLite-style analysis, or downstream reporting tools.
The workflow checks required reporting fields and records warnings before delivery.
Validation does not make business assumptions disappear. It makes them visible so the client can decide how missing or inconsistent data should be handled.
The private workflow can produce deliverables shaped like:
- cleaned CSV tables;
- multi-sheet Excel-style workbook;
- SQLite-style database file;
- Markdown report;
- summary CSV files.
Only small sanitized preview files are committed here.
The final handoff should document:
- included outputs;
- known validation warnings;
- field mapping assumptions;
- date and metric definitions;
- next adaptations needed for the actual store.
The public docs also summarize later private planning work:
- v0.3 evidence boundary notes for development-store validation material;
- v0.4 security boundary notes for a private connector template;
- v0.5 client delivery workflow and optional extension planning notes.
These are documentation summaries only. Live validation evidence, connector code, query templates, credentials, store identifiers, scheduler logic, Google Sheets integration, PostgreSQL integration, and client-specific assets remain part of private delivery work.