Shopify

ExpandedToggleIcon        Connection Dialog

Devart Excel Add-in for Shopify supports two Authentication Types. By default, AccessToken authentication is used.

When using AccessToken authentication, you need to specify your Shopify Store (full domain name - xxxxx.myshopify.com), and enter the Access Token into the corresponding key.

As an alternative, you can use the APIKey authentication.

The following connection options are required:

1.Store -  your Shopify store (full domain name - xxxxx.myshopify.com);
2.API Key - the API Key used to identify the client application;
3.Password - a password (or client secret) generated for the client application;

 

You can get the API key and password for connecting in the following way:

1.Log in to your Shopify account and open the admin panel.
2.Click Apps in the bottom left corner of your admin panel.
3.Click the View private apps button in the top right corner.
4.Click Generate API Credentials.
5.Enter name for the defined application and assign the necessary privileges, then click Save.
6.Copy the API Key and password for the defined application and paste them to the Excel Add-in's dialog box.

 

To obtain Shopify Access Token, perform the following steps:

1.Enable the Custom App support. To do this, go to your Shopify admin dashboard -> Settings (bottom-right corner of your dashboard).
2.In the Settings pop-up, proceed to Apps and sales channel section.

shopify_access_1

3.Click the Develop apps for your store button.

shopify_access_2

4.On the next page you need to Allow custom app development

shopify_access_3

5.After allowing the custom app development you need to Create an app by clicking the corresponding button.
6.Enter and select all requested details: App name, app developer.
7.After creating your app you need to Configure Admin API Scopes.

shopify_access_4

8.Select ALL scopes for Admin API. Confirm all changes.

shopify_access_5

9.Go to Apps and sales channel section and install your app.
10.Go to API credentials tab of the Apps and sales channel section and copy your Admin API access token.

shopify_access_6

11.Using your Shopify store link and Access Token, create a connection and test it.

 

 

ExpandedToggleIcon        Advanced Connection Options

The following table describes the options that you can include in the Connection String using the Advanced Connection Editor dialog box:

 

Option

Description

Access Token

An API access token that can be used to access the shop data. Used for the AccessToken authentication only.

API Key

The API Key used to identify the client application. Used for the APIKey authentication only.

Authentication Type

Determines whether to use AccessToken or APIKey authentication

Connection Lifetime

When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by Connection Lifetime. The default value is 0 (connection always returns to pool).

Connection Timeout

The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. The default value is 15.

Default Command Timeout

The time in seconds to wait while trying to execute a command before terminating the attempt and generating an error.

Failover Retries

The number of retry attempts to automatically re-run a command before displaying an error message in case when the command failed because of an error that may be temporary.

Local SQL Engine

Determines whether to use local SQL engine for SELECT queries, that are too complex to translate them directly to Shopify API calls or to show an error message.

Max Pool Size

The maximum number of connections allowed in the pool. Setting the Max Pool Size value in the connection string can affect performance. The default value is 100.

Min Pool Size

The minimum number of connections allowed in the pool. The default value is 0.

Password

A password (or client secret) generated for the client application. Used for the APIKey authentication only.

Persist Security Info

Indicates if security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.

Pooling

If true, by default, the connection is drawn from the appropriate pool or is created and added to the appropriate pool.

Proxy Host

The host name or IP address of proxy server.

Proxy Password

The password for the proxy server account.

Proxy Port

The port number of the proxy server. The default value is 3128.

Proxy User

The proxy server account name.

Readonly

Indicates whether the connection is read-only (allows only SELECT statements).

Store

Your Shopify store.

Token Server

Not used for Shopify.

UTC Dates

If set to True, dates will be converted to UTC format during import, and the date values entered by the user (in SELECT statements, etc.) are considered UTC dates when sending them to the data source.