Shopify Reference
Build on Shopify without limits. Sync all your Shopify data to your Postgres database in real-time. Query your Customers, Orders, and Products with SQL or your ORM. Get all API events in a hosted Kafka cluster. And insert
, update
, or delete
Shopify records in both Shopify and your database simultaneously.
Supported objects
Collection Name | Read | Write |
---|---|---|
Access | ✅ | |
Analytics | ✅ | |
Billing | ✅ | |
Customers | ✅ | ✅ |
Discounts | ✅ | ✅ |
Events | ✅ | |
Gift Cards | ✅ | ✅ |
Inventory | ✅ | ✅ |
MarketingEvent | ✅ | ✅ |
Metafield | ✅ | |
Online Store | ✅ | |
Orders | ✅ | ✅ |
Plus | ✅ | |
Products | ✅ | ✅ |
Sales Channels | ✅ | |
Shipping and Fulfillment | ✅ | ✅ |
Shopify Payments | ✅ | |
Store Properties | ✅ | ✅ |
TenderTransaction | ✅ |
Setup & installation
To connect Sequin to Shopify, install the Sequin Shopify application in your Shopify store.
Install Sequin in your Shopify store
Steps:
- In the Sequin console, click Add sync and select Shopify.
- Click Install Sequin in your store to add our application to your Shopify store.
- This will bring you to Shopify for installation. Click Install app.
- You will be redirected back to the Sequin console once installation is complete.
After the app is installed, you can view and manage it from the Apps page in your Shopify admin.
The syncing process
We first backfill your database with all your Shopify data. Backfilling typically completes in a few minutes. For larger Shopify stores this can take longer - if you have a store with millions of objects this may take up to an hour. We’ll email you when your backfill is complete and Sequin has loaded all your data into your database.
After the initial backfill, we’ll rely on Shopify webhooks to monitor changes. Webhooks allow Sequin to monitor changes to your Shopify data in realtime- typically your database will receive inserts, updates, and deletes in less than a second. We backstop webhooks with an occasional polling process to ensure we don’t miss any events. This means changes on Shopify should propagate to your database in just a few seconds.
Learn more about our syncing process.
Read and write Shopify data using SQL
You’ll connect to your Shopify data through Sequin’s Postgres Proxy, enabling direct SQL operations on your synced data. This setup lets you use the familiar SQL clients compatible with Postgres to access your data.
Below is an example showing how Shopify data appears in your Postgres database after synchronization:
Each Shopify object you choose to sync is represented as a table in your database. The _sync_cdc table is a special Sequin mechanism for sync management.
Querying the customers
table is straightforward:
A typical query response might look like:
Updating customer information is as simple as executing an SQL statement. To update a customer’s billing address, you might use:
Sequin instantly reflects this change in both Shopify and your database. In the event of an error during a write operation to Shopify, Sequin will revert the associated database transaction. For instance, attempting to update an postal code with invalid data will trigger a rollback:
Next steps
Your Shopify tables are now available as fully readable and writeable tables in your database. You can query for all your data using SQL, and mutate data thanks to Sequin’s Postgres Proxy. To build on this foundation, here are some next steps:
- Setup your ORM to work with your synced tables.
- Edit the Shopify objects and properties you’re syncing at any time.
- Create views on your Shopify data to tailor your schema to your needs.
- Invite your team to your Sequin account and start building!
If you need assistance setting up your sync, just send us a note. We’re around and eager to help.