Use Shopify as a data source

Resources

Data Source Type Shopify
Authentication OAuthToken Authentication
Sample Query https://<yourShopName>.myshopify.com/admin/<data_you_want>.json
API Documentation Shopify API documentation

Step-by-Step

Creating a data source using Shopify

To create a data source using Shopify, you need to accomplish 3 tasks:

  • Start the data source creation process.
  • Authenticate with Shopify.
  • Write a query and enter it in Klipfolio.

Step 1: Start the data source creation process

To create a data source using Shopify, go to the Connector Gallery page in Klipfolio and select Shopify.

Step 2: Authenticate with Shopify

  1. Enter your Shop Name and click Next.
  2. At Sign in using, choose a Shopify OAuth token or create a new OAuth token by clicking Sign In to Shopify.
  3. If prompted, enter your name and password and click Log in.
  4. Save your OAuth Credentials.

Step 3: Write the query and enter it in Klipfolio 

Refer to the Shopify API Documentation as you are writing a query. There are many query options available in the Shopify API documentation, however, here are some sample queries to get you started:

For orders
https://<yourShopName>.myshopify.com/admin/orders.json

For products
https://<yourShopName>.myshopify.com/admin/products.json

For shop information
https://<yourShopName>.myshopify.com/admin/shop.json

For countries
https://<yourShopName>.myshopify.com/admin/countries.json

Managing the number of query responses

To manage your query response, you can paginate your response, add limits to your query, or let Klipfolio manage the number of responses.

Pagination
To get the most data, select Paginate and get up to 10,000 responses.

Limits
Or, to get a specific number of responses, add a limits parameter to your query.
For example, https://<yourShopName>.myshopify.com/admin/orders.json?limit=100.
Note: Make sure Paginate is not selected because it overrides limits.

No Pagination or Limits
If you do not select Paginate or add limits, Klipfolio will return 50 responses.

Complete the data source creation process

Now that you have written your query,

  1. At Method, select GET (or POST).
  2. Select Get Resource.
  3. If you are happy with the data, select Continue.
  4. Save your new data source.

Learn More

Now that you have your data, here are some ideas on how to use it:

Did you have trouble with the material in this article?

These articles may help: