Bring Shopify data into AWS Athena
Load Shopify orders, customers, products and payments into Athena tables with OWOX Data Marts: one table per endpoint, a business-friendly schema, refreshed on a schedule. Query it beside your accounting data so every team reports the same revenue.
AWS AthenaIdAband…Compl…Daily 09:00Shopify and accounting report different revenue for last month, and nobody can name the refund or discount behind it.
Paste this into your AI assistant. It loads Shopify orders into AWS Athena tables with OWOX Data Marts and lines them up with your accounting data by order, so each difference has a reason.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /connectors/free-shopify-connector-to-aws-athena.md. The task: load Shopify orders into AWS Athena and reconcile last month's revenue with our accounting data by order name, listing every order where discounts, refunds or taxes explain the gap. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
Shopify Endpoints
25 Shopify endpoints you can import. Each lands in its own table in your data warehouse.
Abandoned Checkouts
Checkout sessions that did not complete — customer info, items, and pricing for recovery campaigns.
20 fieldsTime seriesArticle Metafields
Custom metadata attached to articles — namespace, key, value, and type.
9 fieldsArticles
Blog articles — title, author, publication status, and timestamps.
15 fieldsBlog Metafields
Custom metadata attached to blogs — namespace, key, value, and type.
9 fieldsBlogs
Blogs in the store — title, handle, and template settings.
6 fieldsCollection Metafields
Custom metadata attached to collections — namespace, key, value, and type.
9 fieldsCollections
Product collections — title, sort order, product count, and last updated.
10 fieldsCustomer Metafields
Custom metadata attached to customers — namespace, key, value, and type.
9 fieldsCustomers
Customer accounts — contact info, marketing consent, order history, and lifetime spend.
22 fieldsTime seriesDiscount Codes
Discount codes — type, status, usage limits, and validity window.
12 fieldsFulfillment Orders
Fulfillment orders — items to ship, assigned location, delivery method, and status.
11 fieldsInventory Items
Inventory items (SKUs) — tracking status, shipping requirements, and country of origin.
9 fieldsLocation Metafields
Custom metadata attached to locations — namespace, key, value, and type.
9 fieldsLocations
Physical and virtual store locations — activity status, fulfillment capabilities, and address.
19 fieldsOrder Metafields
Custom metadata attached to orders — namespace, key, value, and type.
9 fieldsOrders
Orders placed in the store — financial and fulfillment status, customer info, totals, and timestamps.
96 fieldsTime seriesPage Metafields
Custom metadata attached to pages — namespace, key, value, and type.
9 fieldsPages
Static store pages — title, handle, publication status, and timestamps.
10 fieldsProduct Metafields
Custom metadata attached to products — namespace, key, value, and type.
9 fieldsProduct Variant Metafields
Custom metadata attached to product variants — namespace, key, value, and type.
9 fieldsProduct Variants
Product variants — SKU, price, inventory quantity, and availability.
18 fieldsProducts
Products in the store catalog — vendor, type, status, inventory, and price range.
21 fieldsTime seriesShop
Store settings — domain, currency, timezone, and plan details.
20 fieldsShop Metafields
Custom metadata attached to the shop — namespace, key, value, and type.
9 fieldsTender Transactions
Payment tender transactions — amount, currency, order reference, and processing time.
7 fields
Why query Shopify with your accounting and ad data in Athena
Ask what revenue was last month and Shopify gives one number while the accounting system gives another. Refunds, discounts, taxes, currencies and payment timing each move the figure. To see where the two differ, both have to be tables in one warehouse. With ad spend there too, Athena SQL shows which channels brought the orders.
- Reconcile Shopify orders with accounting records in one query
- Separate gross sales from discounts, refunds and cancellations
- Query daily orders beside daily ad spend in Athena
Your data warehouseShopifyAccountingAd spendJoined by idOrder placedRevenue reportedOne query shows where they differ.Step 1: Connect Shopify and pick the fields
Step 2: Load Shopify into an Athena database and table
Choose the Athena database and table, or keep the pre-filled ones. Run it and the first load lands in your own AWS account.
- Each endpoint gets its own table, not one table for the whole store
- Query results go to the S3 output bucket you set up for Athena
DestinationDatabaseshopifyTableordersRun
Tableshopify.ordersStep 3: Know every column before you write the query
Once the first run finishes, the output schema lists every field with a plain-words description. Your quality checks can read it too.
- Descriptions say what a field holds, for example the total amount refunded
- Finance and marketing read the same column names
shopify.ordersOutput schemaFieldDescriptioncreatedAtThe date and time when the…totalPriceThe total price of the order.totalDiscountsThe total discounts applied.totalRefundedThe total amount refunded.currencyCodeThe currency of the order.displayFinancialStatusThe financial status of the…Step 4: Connect the Shopify tables in Athena
Customers, orders and payment transactions are separate Athena tables, joined by ids. Join them and they form one Shopify model, ready to join to accounting.
- Orders carry customerId; tender transactions carry orderId
- Add accounting, ad spend and web analytics tables to the same model
Step 5: Schedule the Athena load and backfill history
Set it up once. A daily scheduled refresh keeps the Athena tables current, and a manual backfill brings in any period you missed.
- Daily runs with no pipeline to maintain
- Backfill order history the first time you connect
Step 6: Use the same Athena tables in every tool
The same tables feed your model, , , assistants like Claude and ChatGPT, and scheduled AI insights in Slack or email.
- Define revenue once
- All reports read the same Athena tables
- 0.41.0Rotating a warehouse key is one change: Storages share reusable Credentials
- 0.41.0Shared SQL logic stays in one place: build a Data Mart on top of another
- 0.41.0Rotating a connector key is one change: Sources share reusable Credentials
- 0.39.0Reload a year of history in one backfill, not twelve
- 0.38.0Shopify connector: more orders fields, including line-item discounts
Why OWOX for Shopify in AWS Athena
Shopify reports, hand-built API scripts or a generic ETL tool each get the orders out. OWOX also lands them in your AWS account, readable and ready to join to accounting.
- You own the data. It lands in your own data warehouse, in tables you control.
- A business-friendly schema. Readable field names and descriptions, not API identifiers.
- Ready for a data model. Separate Athena tables per endpoint, joined by ids, built to connect to accounting, ad spend and web analytics.
- Maintained for you. No API scripts for you to patch when Shopify changes its API.
- Free to self-host. The open-source OWOX Data Marts runs in your own infrastructure, with Athena as its data storage.
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.