ShipStation Anvil
Query Streams
Ask Nova, get SQL + charts
Meet Nova Database REST APIOne key per partner. No credentials shared.
Build an API AutomationScheduled sync to 6+ platforms
Explore API to SQLQuery APIs with SQL, no code
Explore AI Database MCPClaude, Cursor, ChatGPT & Grok talk to your data
Connect AIQuery Streams enables seamless Anvil ShipStation integration, automatically syncing live ShipStation Shipping Data to your Anvil sheets. Sign up for free at QueryStreams.com and start automating your ShipStation to Anvil data pipelines in minutes.
This guide shows you how to set up automated data synchronization from ShipStation to Anvil using Query Streams. Whether you need to keep finance teams updated with Shipping Data, sync subscription metrics to collaborative workspaces, or automate revenue reporting workflows, Query Streams provides a secure, no-code solution for ShipStation to Anvil.works integration.
Scheduled Automation
Sync hourly, daily, or on custom schedules
Secure by Design
API keys stay on your network
Lightning Fast
Optimized data streaming
Smart Sync
Insert, update, delete automatically
What is Anvil ShipStation Integration?
Anvil ShipStation integration connects your ShipStation payment platform to Anvil, enabling automatic data synchronization without manual exports or imports. Query Streams acts as a secure bridge between your ShipStation account and Anvil, running saved SQL queries against your ShipStation data on a schedule and pushing the results directly to your sheets.
Key capabilities:
- Automated sync: Schedule queries to run hourly, daily, or on custom intervals
- SQL access to ShipStation: Query customers, orders, subscriptions, charges, and more using familiar SQL
- Full sync mode: Insert new rows, update existing rows, and remove deleted records automatically
- Secure connection: Your ShipStation API key stays protected within your network
- No coding required: Configure everything through the Query Streams web portal
Prerequisites
Query Streams Agent Installed
The agent must be running on your network with access to sync ShipStation data.
Install the Query Streams Agent →ShipStation API Connector Configured
Your ShipStation account should be connected as an API data source in the agent.
Connect ShipStation to Query Streams →Anvil Account
A Anvil account with API access (available on Business and Enterprise plans, or via free trial).
Saved Query
At least one saved query in Query Streams that returns the ShipStation data you want to sync.
Step 1: Create Your ShipStation Query
Before setting up the integration, you need a saved query that returns the ShipStation data you want to sync to Anvil. Query Streams lets you write SQL queries against your ShipStation data as if it were a database.
- Log into the Query Streams portal: Visit my.querystreams.com and sign in
- Open the Query Builder: Navigate to the Query Builder from the dashboard
- Select your ShipStation data source: In the Data Explorer sidebar on the left, expand your Data Realm, then select your ShipStation connector and choose the API data you want to query
- Write your SQL query: Query ShipStation tables using SQL syntax
SELECT
customer_email,
customer_name,
amount_dollars,
status,
created
FROM orders
WHERE created >= NOW() - INTERVAL '30 days'
AND status = 'paid'
ORDER BY created DESC
LIMIT 500;
Available ShipStation Tables: customers, orders, subscriptions, charges, payment_intents, refunds, balance_transactions, products, prices, events, disputes, payouts, and more.
- Test and save: Run the query to verify results, then save it with a descriptive name like “Recent Paid orders for Anvil”
id or invoice_id) that Anvil can use to match rows.
Step 2: Create the Anvil.works integration
Now you’ll connect your saved query to Anvil through the Automation feature.
- Navigate to Automation: In the Query Streams portal, click Automation in the left sidebar
- Create new integration: Click New Integration to start the setup wizard
- Select your saved query: Choose the ShipStation query you created in Step 1
- Choose Anvil as destination: Select Anvil from the list of available platforms
Step 3: Connect Your Anvil Account
Anvil.works integration requires installing the Query Streams component in your Anvil.works app and configuring it with a secure connection key.
Add Third-Party Dependency
In your Anvil.works app, go to Settings → Dependencies
Click the “Third Party” tab and enter this code:
47C7VQG6QJTVY16B
Create Server Module
In your Anvil.works app, create a Server Module and add this code:
from querystreams import connector
connector.init_connector("YOUR_AUTH_KEY")
Generate Secure Auth Key
In the Query Streams automation setup:
- Click Generate Secure Key (or enter your own)
- Copy the auth key
- Replace
YOUR_AUTH_KEYin your Anvil.works code with this key
Enter Anvil App URL
In Query Streams, enter your published Anvil.works app URL (anvil.app domain or your custom domain)
Examples: https://your-app.anvil.app or https://yourdomain.com
Test Connection
Click Test Connection to verify Query Streams can communicate with your Anvil.works app
Step 4: Select Your Destination Sheet
Choose where your ShipStation data will be synced in Anvil.works.
- Browse your sheets: Query Streams will display your available Anvil sheets and workspaces
- Select a sheet: Choose an existing sheet to sync data to, or select Create new sheet
- Column mapping: Query Streams will automatically map your query columns to Anvil columns. Review and adjust if needed.
Step 5: Configure Sync Mode
Choose how Query Streams should handle data synchronization.
Append Mode
- Adds new rows to the bottom
- Never modifies existing rows
- Never deletes data
- Preserves historical records
Full Sync Mode
Popular- Inserts new records
- Updates changed records
- Deletes removed records
- Requires key column
Key Column Selection: If using Full Sync mode, select the column that uniquely identifies each row. This column must exist in both your query results and your Anvil sheet.
Column Sync Behavior (SYNC vs PRESERVE)
For each column in your field mapping, choose how Query Streams should handle it during sync:
SYNC (Default)
Source value always overwrites target
PRESERVE
Target value is never overwritten
invoice_id– Key fieldcustomer_email– SYNCamount_dollars– SYNCstatus– SYNC
Assigned To– PRESERVEFollow-up Notes– PRESERVEPriority– PRESERVE
Step 6: Set Your Sync Schedule
Configure when Query Streams should sync data from ShipStation to Anvil.
Step 7: Review and Activate
- Review configuration: Verify all settings including query, destination, sync mode, and schedule
- Name your integration: Give it a descriptive name like “ShipStation orders to Anvil Daily Sync”
- Activate: Click Create Integration to save and activate
- Run initial sync: Click Run Now to perform the first synchronization and verify everything works
Congratulations!
Your ShipStation to Anvil.works integration is now live. Shipping Data will sync automatically according to your schedule.
Monitoring Your Integration
After activation, you can monitor your Anvil ShipStation integration from the Automation dashboard:
Last Sync Time
See when data was last synchronized
Rows Synced
View counts of inserted, updated, and deleted rows
Error Alerts
Get notified if a sync fails
Sync History
Review past sync operations and their results
Common Use Cases for Anvil ShipStation Integration
Shipment Tracking
Sync monthly revenue, MRR, and payment trends from ShipStation to Anvil for executive dashboards and financial planning.
Order Management
Keep your team updated with active subscriptions, churned accounts, and subscription metrics in collaborative Anvil workspaces.
Shipping Analytics
Automatically sync customer data, lifetime value, and payment history to Anvil for customer success and sales teams.
Delivery Performance Monitoring
Track failed charges, payment retries, and at-risk subscriptions in Anvil.works for proactive customer outreach.
Carrier Cost Analysis
Sync refunds, disputes, balance transactions, and payouts to Anvil for accounting and finance team visibility.
Frequently Asked Questions
❓ How often can I sync data from ShipStation to Anvil? +
Query Streams supports sync schedules from every hour to custom intervals. For most use cases, daily or hourly syncs provide a good balance between data freshness and system resources.
🔒 Is my ShipStation API key secure during sync? +
Yes. Your ShipStation API key remains protected within your network through the Query Streams agent. Data is encrypted in transit, and your Anvil API token is stored securely. Query Streams never stores your raw Shipping Data.
⚠ What happens if a sync fails? +
Query Streams will retry failed syncs and notify you of persistent errors. You can view error details in the sync history and manually trigger a retry once the issue is resolved.
📂 Can I sync multiple ShipStation queries to different Anvil sheets? +
Yes. Create separate integrations for each query and destination sheet. Each integration can use different ShipStation tables, sync modes, and schedules.
💳 What ShipStation data can I sync to Anvil? +
You can query and sync 15 ShipStation tables including customers, orders, subscriptions, charges, payment_intents, refunds, balance_transactions, products, prices, events, disputes, payouts, coupons, invoice_items, and subscription_items.

