FreshBooks

ExpandedToggleIcon        Connection Dialog

To connect to FreshBooks, Devart SSIS Data Flow Components support both FreshBooks Classic API for compatibility purposes, and the new FreshBooks API (Alpha). Note that FreshBooks Classic API are deprecated. It's recommended to use new Alpha API.

 

To connect to FreshBooks using new FreshBooks API, you need to perform the following steps:

1.In the API Version box select Alpha.
2.Click the Web Login button
3.In the connection editor, specify the name of the company to query data from.
4.In the opened Web Login dialog box sign in to your FreshBooks account.
5.Click Authorize.

 

 

To connect to FreshBooks using Classic API, the following connection options are required:

1.API Version - set it to Classic.
2.Host - FreshBooks service URL, derived from the account URL, for example: https://sample.freshbooks.com/api/2.1/xml-in ;
3.Authentication Token - An automatically generated key that is used for connecting to FreshBooks;

 

To get the URL and Authentication Token, sign in to FreshBooks, click the My Account link in the top of the page, and then click the FreshBooks API link.

 

In addition to the required options, Advanced connection options may be set for more fine connection tuning.

 

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

A key, generated when you perform Web login to FreshBooks, and is used for OAuth access to FreshBooks. This parameter is used for connecting via Alpha API.

API Version

Determines which FreshBooks API to use - legacy Classic API or new Alpha API. Note that FreshBooks Classic API are deprecated. It's recommended to use new Alpha API.

Authentication Token

An automatically generated key that is used for connecting to FreshBooks. This parameter is used for connecting via Classic API.

Client Id

The client id, obtained from the app settings in your developer FreshBooks account. You may either use the hardcoded values of Devart SSIS Data Flow Components client id and client secret, or register your app on FreshBooks and get its client id and client secret parameters. This parameter is used for connecting via Alpha API.

Client Secret

The client secret, obtained from the app settings in your developer FreshBooks account. You may either use the hardcoded values of Devart SSIS Data Flow Components client id and client secret, or register your app on FreshBooks and get its client id and client secret parameters. This parameter is used for connecting via Alpha API.

Company Name

The name of the company to data of which to connect. This parameter is used for connecting via Alpha API.

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). This parameter is used for connecting via Classic API.

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 re-run a command in case when the command failed because of an exception, that indicates that the reason of the failure may be temporary.

Freshbooks Time Zone

Determines whether to treat date values as dates in the timezone, specified in the FreshBooks company profile. This parameter is deprecated, and it is not used for new FreshBooks API.

Include Deleted

Determines whether to include deleted records to returned data.

Local SQL Engine

Determines whether to enable local SQL processing (enabled by default). Local SQL processing allows performing complex SELECT statements that cannot be directly compiled to FreshBooks API calls. In this case ll the data from the mentioned cloud objects is queried to the local cache, and then the query is performed against the cache.

If local SQL processing is disabled, only simple SELECT statements that can be directly translated into FreshBooks API calls can be used. More complex SELECT statements will fail.

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.

OAuth Storage

The path to a file, where to store FreshBooks Access and Refresh Token between sessions in order to avoid the need to re-authorize the application. This parameter is used for connecting via Alpha API.

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).

Refresh Token

An automatically generated key that is used for refreshing the authentication token when it expires. Note that a new refresh token is generated and assigned automatically every time when the authentication token is refreshed. This parameter is used for connecting via Alpha API.

Server

FreshBooks service URL, derived from the account URL, for example: https://sample.freshbooks.com/api/2.1/xml-in

This parameter is used for connecting via Classic API.

Token Server

Not used for FreshBooks.

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.