Devart Excel Add-in for BigCommerce supports API v2 and API v3. Because API v3 does not support every BigCommerce object, the add-in may use API v2 for certain objects even when API v3 is selected. The available objects and their structures also differ between versions, particularly for products, variants, options, prices, and brands.
Select the API version in the Connection Editor dialog box.
API v2 uses basic authentication. Specify the following parameters:
1. Host - The API path used to send XML requests to BigCommerce.
2. User Id - The account user name.
3. Authentication Token - An automatically generated token for accessing BigCommerce.
To obtain these parameters, sign in to BigCommerce, open Settings, and select Legacy API Settings under Advanced Settings. On the Legacy API Account Details page, copy Username to User Id, API Path to Host, and API Token to Authentication Token.
You can also configure Advanced connection options to customize the connection.
API v3 uses OAuth authentication. Specify the following parameters:
1. Store Id - The store hash from the API path. Obtain it from your BigCommerce store settings or API account information.
2. Client Id - The client ID of your API account.
3. Access Token - The OAuth access token used for authentication.
The Client Id and Access Token are displayed when you create an API account. In the BigCommerce Control Panel, go to Advanced Settings > API Accounts and create an account. Enter a name, select the required scopes, and save the account. Store the generated credentials securely because they cannot be viewed again for an existing account.
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 | Specifies an automatically generated key that is used for connecting to BigCommerce using OAuth authentication. See BigCommerce documentation for more information on how to get it. |
| API Version | Specifies the version of BigCommerce API to use - API v2 or v3. Note that BigCommerce API v3 does not support all the BigCommerce objects. Even if you use APIVersion.v3 in your connection, access to some objects is still performed via API v2. Besides the lists of objects and their structure is different for BigCommerce API v2 and API v3. The main differences are connected with objects, storing data about products, their variants, options, prices, brands, etc. |
| Authentication Token | Specifies an automatically generated key that is used for connecting to BigCommerce using basic authentication. See BigCommerce documentation for more information on how to get it. |
| Authentication Type | Determines whether to use legacy Basic-Auth credentials or OAuth tokens for authentication. |
| Client Id | Specifies a unique ID of a BigCommerce client application. Used only for OAuth authentication. See BigCommerce documentation for more information on how to get it. |
| Connection Lifetime | Specifies the time span (in seconds), compared against a connection’s creation time when it is returned to the pool; the connection is destroyed if this span is exceeded. The default value is 0 (connection always returns to pool). |
| Connection Timeout | Specifies 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 60. |
| Default Command Timeout | Specifies the time in seconds to wait while trying to execute a command before terminating the attempt and generating an error. |
| Failover Retries | Specifies 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. |
| Initialization Command | Specifies a command to execute after establishing the connection. |
| Local SQL Engine | Determines whether to use local SQL engine for SELECT queries, that are too complex to translate them directly to BigCommerce API calls or to show an error message. |
| Max Pool Size | Specifies 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 | Specifies the minimum number of connections allowed in the pool. The default value is 0. |
| NormalizeDbNames | Determines whether database object names are normalized when retrieved from the database. |
| 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 | Draws the connection from the appropriate pool, or creates and adds it to the appropriate pool, when set to true. This is the default behavior. |
| Proxy Host | Specifies the host name or IP address of the proxy server. |
| Proxy Password | Specifies the password for the proxy server account. |
| Proxy Port | Specifies the port number of the proxy server. The default value is 3128. |
| Proxy User | Specifies the proxy server account name. |
| Readonly | Indicates whether the connection is read-only (allows only SELECT statements). |
| Run Once Command | Specifies a command to execute after establishing the connection. Unlike Initialization Command, it is not executed for connections obtained from the connection pool. |
| Server | Specifies the API Path - the path where all XML requests to BigCommerce should be sent. |
| Store Dates | Determines whether to treat date values as dates in the BigCommerce store timezone. Please note that the UTC Dates parameter has a higher priority, and if it is set to True, date values are treated as UTC dates regardless of the Store Dates value. |
| Store Id | Specifies the store hash from the API Path. For example, when you log in to your BigCommerce store Control Panel, an URL, similar to the following, opens in your browser: https://store-kj3jh4c.mybigcommerce.com/manage/dashboard . The part of the URL, highlighted with bold, is the store Id required. Used only for OAuth authentication. |
| Token Server | Is not used for BigCommerce. |
| Use Custom Fields | Determines whether you will be able to get product custom fields via the CustomFields field of the Products object through this connection. Applicable only for BigCommerce API v3 connections. If set to True, this field returns a JSON array, containing information about custom fields and their values for products, if such are available. Otherwise, it always returns null values. This parameter does not affect working with custom fields for customers and customer addresses, and it also does not affect access to product custom fields via the ProductCustomFields object. Please note that processing custom fields may take an additional time and API calls, so it’s recommended to set this parameter to True only if you need to work with product custom fields via this connection. |
| User ID | Specifies the BigCommerce user name to login with. Used only for basic authentication. |
| UTC Dates | Converts dates to UTC format during import when set to True; the date values entered in Excel are then considered UTC dates when saving them to the data source. |