About Shopify connector
Etlworks Shopify connector allows fast, real-time access to Shopify. The connector works just like any other database connector.
Etlworks partnered with CData to provide access to the Shopify API using industry-standard JDBC protocol. Read about CData Shopify JDBC connector.
When to use Shopify connector
Use this connector to create Flows that extract data from and load data into Shopify.
Create a Private Shopify App
You can follow the procedure below to register an app and obtain the client credentials such as the AppId, Password, and ShopUrl:
- Log in to your Shopify from the
adminpage and go to
Manage Private Apps.
Create New Private App.
- In the
Descriptionsection, enter the app name and contact email.
- In the
Permissionssection, choose the areas of your store you want to grant to your app. The permissions required by our provider to use all the tables and views are: read_customers, write_customers, write_draft_orders, read_draft_orders, read_fulfillments, write_fulfillments, write_inventory, read_inventory, write_marketing_events, read_marketing_events, read_orders, write_orders, read_price_rules, write_price_rules, read_product_listings, write_product_listings, read_products, write_products, read_shopify_payments_payouts.
- Go back to your private apps. The
API Key(AppId) of your application and its password (Password) are listed for the app.
Enable Shopify connector for your Etlworks Integrator account
firstname.lastname@example.org to enable the connector.
Create a Connection
Step 1. In the
Connections window, click
+, and type in
Step 2. Enter Connection parameters.
App ID: set this to the API Key in your private app settings.
ShopUrl: set this to the full URL of your shop (
Password: the password.
Other parameters to specify the Connection string options. Read about available Connection string options.
Work with Shopify
Shopify data model
The Shopify models entities in the Shopify API as Tables, Views, and Stored Procedures.
Read about Shopify data model.
Stored procedures are available to complement the data available from the Data Model. It may be necessary to update data available from a view using a stored procedure because the data does not provide for direct, table-like, two-way updates. In these situations, the retrieval of the data is done using the appropriate view or table, while the update is done by calling a stored procedure. Stored procedures take a list of parameters and return back a dataset that contains the collection of tuples that constitute the response.
Read about available stored procedures.
To call stored procure from the SQL flow or from Before/After SQL, use
EXEC sp_name params=value syntax. Example:
EXEC ListProduct ProductId = 'id'
Extract data from Shopify
Extracting data from Shopify is similar to extracting data from the relational database.
Step 1. Create Shopify Connection which will be used as a source (
Step 2. Create a destination Connection, for example, a Connection to the relational database, and if needed, a Format (Format is not needed if the destination is a database or well-known API).
Step 3. Create a Flow where the source is a database and the destination is a Connection created in step 2, for example, a relational database.
Step 4. Add a new source-to-destination transformation.
Step 5. Select Shopify Connection created in step 1 as a source Connection and select the data object you are extracting data from.
Step 6. Select
TO Connection, Format (if needed), and object (for example database table) to load data into.
Step 7. Click
MAPPING and optionally enter
Source Query (you don't need a query if you are extracting data from the Shopify data object unconditionally).
Step 8. Optionally define the per-field Mapping.
Step 9. Add more transformations if needed.
Load data in Shopify
Loading data in Shopify is similar to loading data into a relational database.
Step 1. Create a source Connection and a Format (if needed).
Step 2. Create a destination Shopify Connection.
Step 3. Create a Flow where the destination is a database.
Step 4. Add new source-to-destination transformation.
Step 5. Select
TO Connections and objects (also a
FROM Format if needed).
Step 6. Optionally define the per-field Mapping.
Step 7. Add more transformations if needed.
Browse data in Shopify
You must have Shopify Connection to browse objects and run SQL queries.
Use Etlworks Explorer to browse data and metadata in Shopify as well as execute DML and SELECT queries against Shopify Connection.
Please sign in to leave a comment.