FreshBooks Connector for CData Sync

Build 22.0.8479
  • FreshBooks
    • 接続の確立
    • 高度な機能
      • SSL の設定
      • ファイアウォールとプロキシ
    • データモデル
      • テーブル
        • Clients
        • Estimates
        • Expenses
        • Invoices
        • Items
        • Payments
        • Staff
      • ビュー
        • EstimatesLineItems
        • ExpenseCategories
        • ExpensesReport
        • Gateways
        • IdentityInfo
        • InvoicesLineItems
        • InvoicesReport
        • PaymentsCollectedReport
        • ProfitLossReport
        • Projects
        • Systems
        • Tasks
        • Taxes
        • TimeEntries
    • 接続文字列オプション
      • Authentication
        • AccountId
        • CompanyName
      • OAuth
        • OAuthClientId
        • OAuthClientSecret
        • AuthToken
        • AuthKey
      • SSL
        • SSLServerCert
      • Firewall
        • FirewallType
        • FirewallServer
        • FirewallPort
        • FirewallUser
        • FirewallPassword
      • Proxy
        • ProxyAutoDetect
        • ProxyServer
        • ProxyPort
        • ProxyAuthScheme
        • ProxyUser
        • ProxyPassword
        • ProxySSLType
        • ProxyExceptions
      • Logging
        • LogModules
      • Schema
        • Location
        • BrowsableSchemas
        • Tables
        • Views
      • Miscellaneous
        • MaxRows
        • Other
        • PseudoColumns
        • Timeout
        • UserDefinedViews

FreshBooks Connector for CData Sync

概要

CData Sync App は、FreshBooks データをデータベース、データレイク、またはデータウェアハウスに継続的にパイプライン化する簡単な方法を提供し、分析、レポート、AI、および機械学習で簡単に利用できるようにします。

FreshBooks コネクタはCData Sync アプリケーションから使用可能で、FreshBooks からデータを取得して、サポートされている任意の同期先に移動できます。

FreshBooks Connector for CData Sync

接続の確立

Sync App アプリケーションの接続 ページに移動し、接続の追加 パネルで対応するアイコンを選択して、FreshBooks への接続を作成します。FreshBooks アイコンが利用できない場合は、Add More アイコンをクリックしてCData サイトからFreshBooks コネクタをダウンロードおよびインストールします。

必須プロパティは[設定]タブにリストされています。[Advanced]タブには、通常は必要ない接続プロパティが表示されます。

FreshBooks への接続

FreshBooks はOAuth 認証標準を利用しています。OAuth を使って認証するには、アプリを作成してOAuthClientId、OAuthClientSecret、およびCallbackURL 接続プロパティを取得する必要があります。

Web アプリケーション

Web アプリケーション経由で接続する場合は、FreshBooks にカスタムOAuth アプリを登録する必要があります。それからSync App を使用してOAuth トークンの値を取得および管理します。詳しくは、カスタムOAuth アプリの作成 を参照してください。

OAuth アクセストークンの取得

次の接続プロパティを設定し、OAuthAccessToken を取得します。

  • OAuthClientId:アプリ設定のクライアントId に設定。
  • OAuthClientSecret:アプリケーション設定のクライアントシークレットに設定。

続いてストアドプロシージャを呼び出し、OAuth 交換を完了します。

  1. GetOAuthAuthorizationURL ストアドプロシージャを呼び出します。CallbackURL インプットをアプリ設定で指定したリダイレクトURI に設定します。ストアドプロシージャがOAuth エンドポイントのURL を返します。
  2. ステップ1でストアドプロシージャが返したURL に移動します。ログインして、Web アプリケーションを認可します。認証後、ブラウザはリダイレクトURI にリダイレクトします。
  3. GetOAuthAccessToken ストアドプロシージャを呼び出します。AuthMode インプットをWEB に設定します。Verifier インプットを、コールバックURL のクエリ文字列の"code" パラメータに設定します。必要に応じて、Permissions パラメータを設定してカスタム権限をリクエストします。

OAuthAccessToken 接続プロパティをストアドプロシージャで返されたアクセストークンに設定し、データに接続します。ExpiresIn 秒後に、アクセストークンの期限が切れたときは、GetOAuthAccessToken を再度呼び出し、新しいアクセストークンを取得します。

FreshBooks Connector for CData Sync

高度な機能

このセクションでは、FreshBooks Sync App の高度な機能を厳選して説明します。

ユーザー定義ビュー

Sync App を使用すると、事前設定されたクエリによって内容が決定されるユーザー定義ビューと呼ばれる仮想テーブルを定義できます。 このビューは、ドライバーに発行されるクエリを直接制御できない場合に有効です。 カスタムビューの作成と設定の概要については、ユーザー定義ビュー を参照してください。

SSL の設定

SSL の設定 を使用して、Sync App が証明書のネゴシエーションをどのように扱うかを調整します。さまざまな証明書形式を選択できます。 詳しくは、接続文字列オプションにあるSSLServerCert プロパティを参照してください。

ファイアウォールとプロキシ

Windows プロキシとHTTP プロキシを含むファイアウォールとプロキシ に合致するようSync App を設定します。トンネル接続を設定することもできます。

クエリ処理

Sync App は、FreshBooks にできるだけ多くのSELECT ステートメント処理をオフロードし、残りのクエリをクライアント側のインメモリで処理します。

詳しくはクエリ処理 を参照してください。

ログ

CData ログを調整するために使用可能な設定の概要については、ログ を参照してください。基本的なロギングでは、 次の2つの接続プロパティを設定するだけです。LogModules 接続プロパティを使用してログに記録する情報のサブセットを選択できる、 より洗練されたロギングをサポートする多数の機能があります。

FreshBooks Connector for CData Sync

SSL の設定

SSL 設定のカスタマイズ

デフォルトでは、Sync App はサーバーの証明書をシステムの信頼できる証明書ストアと照合してSSL / TLS のネゴシエーションを試みます。

別の証明書を指定するには、利用可能なフォーマットについてSSLServerCert プロパティを参照してください。

FreshBooks Connector for CData Sync

ファイアウォールとプロキシ

Firewall またはProxy 経由の接続

HTTP プロキシ

Windows のシステムプロキシ経由の接続では、接続プロパティを追加で設定する必要はありません。他のプロキシに接続するには、ProxyAutoDetect をfalse に設定します。

さらにHTTP プロキシへの認証には、ProxyServer とProxyPort に加えてProxyAuthScheme、ProxyUser、およびProxyPassword を設定します。

その他のプロキシ

次のプロパティを設定します。

  • プロキシベースのファイヤーウォールを使用するには、FirewallType、FirewallServer、およびFirewallPort を設定します。
  • 接続をトンネルするには、FirewallType をTUNNEL に設定します。
  • 認証するには、FirewallUser とFirewallPassword を設定します。
  • SOCKS プロキシへの認証には、さらにFirewallType をSOCKS5 に設定します。

FreshBooks Connector for CData Sync

データモデル

The CData Sync App can model your account as a database through one API the データモデル. You can programmatically access the available entities by querying the available システムテーブル.

Key Features

  • The Sync App models FreshBooks Categories, Projects, and more, allowing you to write SQL to query FreshBooks data.
  • Stored procedures allow you to execute operations to FreshBooks, including downloading and uploading objects.
  • Live connectivity to these objects means any changes to your FreshBooks account are immediately reflected when using the Sync App.

Alpha API

The データモデル uses the OAuth 2.0 specification.

FreshBooks Connector for CData Sync

テーブル

Sync App はFreshBooks のデータを、標準のSQL ステートメントを使用してクエリできるテーブルのリストにモデル化します。

一般的には、FreshBooks テーブルのクエリは、リレーショナルデータベースのテーブルのクエリと同じです。時には特別なケースもあります。例えば、テーブルの特定のカラムデータを取得するために特定のカラムをWHERE 句に含める必要がある場合などです。これは通常、特定のカラムを取得するために行ごとに個別のリクエストを行う必要がある場合に必要です。これらの特別な状況は、以下にリンクされているテーブルページの上部に明確に文書化されています。

FreshBooks Connector for CData Sync テーブル

Name Description
Clients A client in the new FreshBooks is a resource representing an entity you send invoices to.
Estimates Estimates in FreshBooks provides Owners and Clients a way to agree and negotiate on the price and scope of work before it commences.
Expenses Expenses are used to track expenditures your business incurs.
Invoices Invoices in FreshBooks are what gets sent to Clients, detailing specific goods or services performed or provided by the Administrator of their System, and the amount that Client owes to the Admin.
Items Items are stored from invoice lines to make invoicing easier in the future.
Payments Payments are a record of the payments made on your invoices.
Staff Staff are your employees. Staff created via this endpoint are only Accounting representations of the staff members of your business, for the purpose of ownership of invoices, expenses, etc. To create staff members for actual use please use the Staff Invitation flow in the new FreshBooks' web interface.

FreshBooks Connector for CData Sync

Clients

A client in the new FreshBooks is a resource representing an entity you send invoices to.

Columns

Name Type ReadOnly Description
Id [KEY] Integer True

The unique identifier of a client.

AccountingSystemId String True

The unique identifier of the accounting system.

AllowLateNotifications Boolean False

Indicates whether client is allowed late notifications. (deprecated)

AllowLateFees Boolean False

Indicates whether client is allowed late fees. (deprecated)

BusinessPhone String False

The business phone number of the client.

CompanyIndustry String False

Description of the industry the client is in.

CompanySize String False

Size of client's company.

CurrencyCode String False

3-letter shortcode for client's preferred currency.

DirectLinkToken String True

(deprecated)

Email String False

The email of the client.

Fax String False

The fax number of the client.

FirstName String False

The first name of the client.

HomePhone String False

The home phone number of the client.

Language String False

Shortcode indicating user language.

LastActivity Datetime False

Time of last client activity.

LastLogin String False

Client's last login time.

Level Integer True

Indication of access level on system. (deprecated)

LastName String False

The last name of the client.

MobilePhone String False

The mobile phone number of the client.

Note String False

Notes kept by administrator about client.

Notified Boolean False

(deprecated)

NumLogins Integer False

Number of client logins.

Organization String False

Name for client's business.

BillingCity String False

Client's billing city.

BillingPostalCode String False

Client's billing postal code.

BillingCountry String False

Client's billing country.

BillingProvince String False

Client's billing province.

BillingStreetAddress String False

Client's billing street address.

BillingStreetAddress2 String False

Second line of client's billing street address.

PrefEmail Boolean False

Boolean value indicating whether they prefer email over ground mail.

PrefGmail Boolean False

Boolean value indicating whether they prefer ground mail over email.

ShippingCity String False

Client's shipping city.

ShippingCode String False

Client's shipping postal code.

ShippingCountry String False

Client's shipping country.

ShippingProvince String False

Client's shipping province.

ShippingStreetAddress String False

Client's shipping street address.

ShippingStreetAddress2 String False

Second line of client's shipping street address.

SignupDate Datetime False

Time of user signup.

StatementToken String True

(deprecated)

Subdomain String True

Client subdomain name. (deprecated)

Updated Datetime False

Time of last modification to resource.

Username String False

Username used by client to log in.

VatName String False

Value Added Tax name.

VatNumber Integer False

Value Added Tax number.

VisState Integer False

Visibility state of the client - values can be active, deleted, or archived.

FreshBooks Connector for CData Sync

Estimates

Estimates in FreshBooks provides Owners and Clients a way to agree and negotiate on the price and scope of work before it commences.

Table Specific Information

Insert

To insert, CustomerId and CreateDate fields are required. To insert Estimates with multiple line items, you can either insert into the LinesAggregate field an aggregate value, or use a temporary table. This section provides examples of both procedures.

You can insert Estimates with multiple line items using aggregates. For example:

Insert INTO Estimates (CustomerId, CreateDate, LinesAggregate) VALUES ('12717', '2018-02-03',
               '[\n" +
        "      {\n" +
        "        \"description\": \"\",\n" +
        "        \"taxName1\": \"\",\n" +
        "        \"taxAmount1\": 0,\n" +
        "        \"name\": \"Paperwork\",\n" +
        "        \"qty\": 1,\n" +
        "        \"taxName2\": \"\",\n" +
        "        \"taxAmount2\": 0,\n" +
        "        \"unit_cost\": {\n" +
        "            \"amount\": \"5000.00\",\n" +
        "            \"code\": \"USD\"\n" +
        "        }\n" +
        "      },\n" +
        "      {\n" +
        "        \"description\": \"\",\n" +
        "        \"taxName1\": \"\",\n" +
        "        \"taxAmount1\": 0,\n" +
        "        \"name\": \"TV Ads\",\n" +
        "        \"qty\": 1,\n" +
        "        \"taxName2\": \"\",\n" +
        "        \"taxAmount2\": 0,\n" +
        "        \"unit_cost\": {\n" +
        "            \"amount\": \"3000.00\",\n" +
        "            \"code\": \"USD\"\n" +
        "        }\n" +
        "      }\n" +
        "    ]')"

You can also insert Estimates with multiple line items using a temporary table.

The temporary table you are populating is dynamic and will be created at run time the first time you insert to it. Temporary tables are denoted by a # appearing in their name. When using a temporary table to insert, the temporary table must be named in the format of [TableName]#TEMP, where TableName is the name of the table you will be inserting to. For example:

INSERT INTO EstimatesLineItems#Temp (Name, Amount, TaxName1, TaxAmount1) VALUES ('A', 500, 'tax1', 20)
INSERT INTO EstimatesLineItems#Temp (Name, Amount, TaxName2, TaxAmount2) VALUES ('B', 100, 'tax2', 10)
INSERT INTO EstimatesLineItems#Temp (Name, Amount) VALUES ('C', 300 )
INSERT INTO EstimatesLineItems#Temp (Name, Amount) VALUES ('D', 150 )
INSERT INTO EstimatesLineItems#Temp (Name, Amount) VALUES ('E', 200 )

Once your temporary table is populated, it is now time to insert to the actual table in FreshBooks. You can do this by performing an INSERT to the actual table and setting the name of the temporary table as a value for LinesAggregate. For example:

Insert INTO Estimates (CustomerId, CreateDate, LinesAggregate) VALUES ('12717', '2018-02-03', 'EstimatesLineItems#Temp')

Update

To update, the Id value is required in the WHERE clause. To update LinesAggregate, you need to override the aggregate LinesAggregate field, either by setting an aggregate value, or by using a temporary table. For example:
INSERT INTO Estimate2195LineItems#Temp (Name, Amount, TaxName1, TaxAmount1) VALUES ('A', 500, 'tax1', 20)
INSERT INTO Estimate2195LineItems#Temp (Name, Amount, TaxName2, TaxAmount2) VALUES ('B', 100, 'tax2', 10)

UPDATE Estimates SET EstimateNumber = 5, DiscountValue = 15, LinesAggregate = 'Estimate2195LineItems#Temp' WHERE id = 2195

Columns

Name Type ReadOnly Description
Id [KEY] Integer True

The unique identifier of an estimate.

AccountingSystemId String True

The unique identifier for the system.

UIStatus String True

Estimate UI status

Status String True

Estimate status

Accepted Boolean True

Indicates whether estimate has been accepted.

Amount Deicmal True

Total amount of estimate, to two decimal places.

AmountCode String True

Three letter currency code associated with the amount.

DiscountTotalAmount Decimal True

Amount of discount, to two decimal places.

DiscountTotalCode String True

Three letter currency code associated with the discount.

Description String True

Description of first line of estimate.

CurrentOrganization String True

Name of organization being estimated.

Invoiced String True

Indicator of whether this estimate has been converted to an invoice that was sent.

OwnerId Integer False

Identifier of the creator of the estimate. (writable on create only)

SentId Integer False

Identifier of user who sent the estimate, typically 1 for admin. (writable on create only)

CreatedAt Datetime True

The time the estimate was created. (writable on create only)

Updated Datetime False

The time the estimate was last updated. (writable on create only)

DisplayStatus String False

Description of status shown in FreshBooks UI. Either draft, sent, or viewed. (writable on create only)

ReplyStatus String False

Description of status shown in Classic FreshBooks UI. Either replied or resolved. (deprecated)

EstimateNumber String False

User-specified and visible estimate Id.

CustomerId Integer False

Unique identifier of client.

CreateDate Date False

The date the estimate was created.

DiscountValue Decimal False

Decimal-string amount of discount.

PONumber String False

Post Office box number for address on estimate.

Template String False

Choice of rendering style. (internal, deprecated)

CurrencyCode String False

Three-letter currency code for estimate.

Language String False

Two-letter language code.

Terms String False

Terms listed on estimate.

Notes String False

Notes listed on estimate.

Address String False

First line of address listed on estimate.

ExtArchive Integer False

0 or 1 indicating whether estimate is archived or not.

VisState Integer False

0 indicates active, 1 indicates deleted.

Street String False

Street for address on estimate.

Street2 String False

Second line of address on estimate.

City String False

City of address on estimate.

Province String False

Province of address on estimate.

Country String False

Country of address on estimate.

Organization String False

Name of organization being estimated.

FirstName String False

First name of client on estimate.

LastName String False

Last name of client being estimated.

VatName String False

Value Added Tax name if provided.

VatNumber String False

Value Added Tax number if provided.

LinesAggregate String False

An aggregate of lines associated with an estimate. See the help for the Estimates table for more information on inserting and updating to this field.

FreshBooks Connector for CData Sync

Expenses

Expenses are used to track expenditures your business incurs.

Columns

Name Type ReadOnly Description
ExpenseId [KEY] Integer True

A unique identifier for the expense, unique to business id.

AccountName String False

The name of the related account, if applicable.

AccountId Integer False

The identifier of the related account, if applicable.

AccountingSystemId String False

The identifier of the system.

Amount Decimal False

The amount of the expense.

BackgroundJobId Integer False

The identifier of the related background job if applicable.

BankName String False

The name of the bank the expense was imported from, if applicable.

CategoryId Integer False

The identifier of the related expense category.

ClientId Integer False

The Id of the related client, if applicable.

Code String False

Three-letter currency code for expense.

CompoundedTax Boolean False

Boolean indicated if the tax was a compound tax.

Date Date False

Date of the expense. (YYYY-MM-DD)

ExtInvoiceId Integer False

The identifier of the related contractor invoice if applicable.

ExtSystemId Integer False

The identifier of the related contractor system if applicable.

HasReceipt Boolean False

Boolean indicating if there is a receipt attached.

InvoiceId Integer False

Identifier of the related invoice, if applicable.

IsDuplicate Boolean False

Boolean indicating if this is a duplicated expense.

MarkupPercent String False

Note of percent to mark the expense up. (String-decimal)

Notes String False

Notes about the expense.

ProfileId Integer False

Identifier of related profile, if applicable.

ProjectId Integer False

Identifier of related project, if applicable.

StaffId Integer False

Identifier of related staff member, if applicable.

Status Integer False

Values from expense status table.

TaxAmount1 Decimal False

The amount of the first tax.

TaxAmount2 Decimal False

The amount of the second tax.

TaxName1 String False

Name of first tax.

TaxName2 String False

Name of second tax.

TaxPercent1 Decimal False

The percent of the first tax.

TaxPercent2 Decimal False

The percent of the second tax.

TransactionId Integer False

Identifier of related transaction, if applicable.

Updated Datetime False

Time the invoice was last updated. (YYYY-MM-DD HH:MM:SS)

Vendor String False

Name of vendor.

VisState Integer False

0 for active, 1 for deleted.

FreshBooks Connector for CData Sync

Invoices

Invoices in FreshBooks are what gets sent to Clients, detailing specific goods or services performed or provided by the Administrator of their System, and the amount that Client owes to the Admin.

Table Specific Information

Insert

To insert, CustomerId and CreateDate fields are required. To insert Invoices with multiple line items, you can either insert an aggregate value into the LinesAggregate field, or use a temporary table. This section provides examples of both procedures.

You can insert Invoices with multiple line items using aggregates. For example:

Insert INTO Invoices (CustomerId, CreateDate, LinesAggregate) VALUES ('12717', '2018-02-03',
               '[\n" +
        "      {\n" +
        "        \"description\": \"\",\n" +
        "        \"taxName1\": \"\",\n" +
        "        \"taxAmount1\": 0,\n" +
        "        \"name\": \"Paperwork\",\n" +
        "        \"qty\": 1,\n" +
        "        \"taxName2\": \"\",\n" +
        "        \"taxAmount2\": 0,\n" +
        "        \"unit_cost\": {\n" +
        "            \"amount\": \"5000.00\",\n" +
        "            \"code\": \"USD\"\n" +
        "        }\n" +
        "      },\n" +
        "      {\n" +
        "        \"description\": \"\",\n" +
        "        \"taxName1\": \"\",\n" +
        "        \"taxAmount1\": 0,\n" +
        "        \"name\": \"TV Ads\",\n" +
        "        \"qty\": 1,\n" +
        "        \"taxName2\": \"\",\n" +
        "        \"taxAmount2\": 0,\n" +
        "        \"unit_cost\": {\n" +
        "            \"amount\": \"3000.00\",\n" +
        "            \"code\": \"USD\"\n" +
        "        }\n" +
        "      }\n" +
        "    ]')"

You can also insert Invoices with multiple line items using a temporary table.

The temporary table you are populating is dynamic and will be created at run time the first time you insert to it. Temporary tables are denoted by a # appearing in their name. When using a temporary table to insert, the temporary table must be named in the format of [TableName]#TEMP, where TableName is the name of the table you will be inserting to. For example:

INSERT INTO InvoicesLineItems#Temp (Name, Amount, TaxName1, TaxAmount1) VALUES ('A', 500, 'tax1', 20)
INSERT INTO InvoicesLineItems#Temp (Name, Amount, TaxName2, TaxAmount2) VALUES ('B', 100, 'tax2', 10)
INSERT INTO InvoicesLineItems#Temp (Name, Amount) VALUES ('C', 300)
INSERT INTO InvoicesLineItems#Temp (Name, Amount) VALUES ('D', 150)
INSERT INTO InvoicesLineItems#Temp (Name, Amount) VALUES ('E', 200)

Once your temporary table is populated, it is now time to insert to the actual table in FreshBooks. You can do this by performing an INSERT to the actual table and setting the name of the temporary table as a value for LinesAggregate. For example:

Insert INTO Invoices (CustomerId, CreateDate, LinesAggregate) VALUES ('12717', '2018-02-03', 'InvoicesLineItems#Temp')

Update

To update, the Id value is required in the WHERE clause. To update LinesAggregate, you need to override the aggregate LinesAggregate field, either by setting an aggregate value, or by using a temporary table. For example:
INSERT INTO InvoiceLineItems#Temp (Name, Amount, TaxName1, TaxAmount1) VALUES ('A', 500, 'tax1', 20)
INSERT INTO InvoiceLineItems#Temp (Name, Amount, TaxName2, TaxAmount2) VALUES ('B', 100, 'tax2', 10)

UPDATE Invoices SET CreateDate = '2018-01-01', LinesAggregate = 'InvoiceLineItems#Temp' WHERE Id = 29153

Columns

Name Type ReadOnly Description
Id [KEY] Integer True

Invoice Id that is unique to this system.

AccountingSystemId String True

Unique Id for the system.

AccountId String True

Unique Id for the system.

TotalAmount Decimal True

Total amount of invoice, to two decimal places.

PaidAmount Decimal True

Amount paid on invoice, to two decimal places.

PaidCode String True

Three-letter currency code.

OutstandingAmount Decimal True

Amount outstanding on the invoice, to two decimal places.

OutstandingCode String True

Three-letter currency code.

DiscountTotalAmount Decimal True

Amount of discount, to two decimal places.

DiscountTotalCode String True

Three-letter currency code.

Description String True

Description of first line of invoice.

CurrentOrganization String True

Name of organization being invoiced.

DueDate Date True

Date invoice is marked as due by. (YYYY-MM-DD, calculated from due_offset_days)

DatePaid Date True

Date invoice was fully paid. (YYYY-MM-DD)

OwnerId Integer False

Id of the invoice's creator. (writable on create only)

EstimateId Integer False

Id of associated estimate, 0 if none.(writable on create only)

BasecampId Integer False

Id of connected basecamp account, 0 if none.(writable on create only)

SentId Integer False

User Id of user who sent the invoice.(writable on create only)

Status String False

Invoice status.(writable on create only)

Parent Integer False

Id of object this invoice was generated from, 0 if none.(writable on create only)

CreatedAt Datetime False

Time the invoice was created. (YYYY-MM-DD, writable on create only)

Updated Datetime False

Time the invoice was last updated. (YYYY-MM-DD, writable on create only)

DisplayStatus String False

Description of status shown in Freshbooks UI.(writable on create only)

AutobillStatus String False

Description of autobill status.(writable on create only)

PaymentStatus String False

Description of payment status.(writable on create only)

LastOrderStatus String False

Describes the status of the last attempted payment.(writable on create only)

DisputeStatus String False

Description of whether invoice has been disputed.(writable on create only)

DepositStatus String False

Description of deposits applied to invoice.(writable on create only)

AutoBill String False

Whether this invoice has a credit card saved.(writable on create only)

V3Status String False

Description of Invoice status.(writable on create only)

InvoiceNumber String False

User-specified and visible Invoice Id.

CustomerId Integer False

Client Id unique to this system.

CreateDate Date False

Date invoice was created. (YYYY-MM-DD)

GenerationDate Date False

Date invoice was generated from object.(YYYY-MM-DD, or null if not)

DiscountValue Decimal False

Decimal-string amount of discount.

DiscountDescription String False

Public note about discount.

PONumber String False

Reference number for address on invoice.

Template String False

Choice of rendering style. (internal, deprecated)

CurrencyCode String False

Three-letter currency code for invoice.

Language String False

Two-letter language code.

Terms String False

Terms listed on invoice.

Notes String False

Notes listed on invoice.

Address String False

First line of address on invoice.

ReturnUri String False

(deprecated)

DepositAmount Decimal False

Amount required as deposit, null if none.

DepositPercentage Decimal False

Percentage of the invoice's value required as a deposit.

Gmail String False

Whether to send via ground mail.

ShowAttachments String False

Whether attachments on invoice are rendered.

VisState Integer False

Whether active (0) or deleted (1).

Street String False

Street for address on invoice.

Street2 String False

Second line of street for address on invoice.

City String False

City for address on invoice.

Province String False

Province for address on invoice.

Code String False

Zip code for address on invoice.

Country String False

Country for address on invoice.

Organization String False

Name of organization being invoiced.

FirstName String False

First name of client on invoice.

LastName String False

Last name of client on invoice.

VatName String False

Value added tax name, if provided.

VatNumber String False

Value added tax number, if provided.

DueOffsetDays Integer False

Number of days from creation that invoice is due.

LinesAggregate String False

An aggregate of lines associated with an invoice. See the help for the Invoices table for more information on inserting and updating to this field.

FreshBooks Connector for CData Sync

Items

Items are stored from invoice lines to make invoicing easier in the future.

Columns

Name Type ReadOnly Description
Id [KEY] Integer False

Unique identifier of the item.

AccountingSystemId String False

Unique identifier of business client exists on.

Amount Decimal False

Amount paid on invoice, to two decimal places.

Code String False

Three-letter currency code.

Description String False

Descriptive text for item.

Inventory String False

Count of inventory.

Name String False

Descriptive name of item.

Quantity String False

Number to multiply unit cost by.

Tax1 Integer False

Identifier of tax on invoice.

Tax2 Integer False

Identifier of second tax on invoice if applicable.

Updated Datetime False

Date object was last updated. (YYYY-MM-DD)

VisState Integer False

0 for active, 1 for deleted.

FreshBooks Connector for CData Sync

Payments

Payments are a record of the payments made on your invoices.

Columns

Name Type ReadOnly Description
Id [KEY] Integer True

The unique identifier of the payment.

AccountingSystemId String False

The unique identifier of the business the client exists on.

Amount Decimal False

Amount paid on invoice to two decimal places.

ClientId Integer False

Identifier of client who made the payment.

Code String False

Three-letter currency code of payment.

CreditId Integer False

Identifier of related credit.

Date String False

Date the payment was made. (YYYY-MM-DD)

FromCredit Boolean False

Indicates whether or not the payment was converted from a credit on a client's account.

Gateway String False

The payment processor used, if any.

InvoiceId Integer False

The identifier of the related invoice.

Note String False

Notes on payment, often used for credit card reference number.

OrderId Integer False

Identifier of related order.

OverpaymentId Integer False

Identifier of related overpayment if relevant.

TransactionId Integer False

Identifier of the related transaction.

Type String False

The type of the payment: 'Check', 'Credit', 'Cash', etc.

Updated Datetime False

Date object was last updated. (YYYY-MM-DD)

VisState Integer False

0 for active, 1 for deleted.

FreshBooks Connector for CData Sync

Staff

Staff are your employees. Staff created via this endpoint are only Accounting representations of the staff members of your business, for the purpose of ownership of invoices, expenses, etc. To create staff members for actual use please use the Staff Invitation flow in the new FreshBooks' web interface.

Columns

Name Type ReadOnly Description
Id [KEY] Integer False

The unique identifier of the staff member to this business id.

AccountingSystemId String False

The unique identifier of the business staff member exists on.

APIToken String False

Token used for Classic API. (deprecated)

BusinessPhone String False

The business phone number.

CurrencyCode String False

Three-digit shortcode for preferred currency.

DisplayName String False

Name chosen by staff member to display.

Email String False

Email address for staff member.

Fax String False

Fax number for staff member.

FirstName String False

First name of staff member.

HomePhone String False

Staff member's home phone number.

Language String False

Staff member's selected language.

LastLogin Datetime False

Date and time the staff account was last logged into.

Level Integer False

Description of staff member access level. (deprecated)

LastName String False

Last name of staff member.

MobilePhone String False

Staff member's mobile phone number.

Note String False

Notes about staff member.

Logins Integer False

Number of times the staff member has logged in.

Organization String False

Organization the staff member is affiliated with.

BillingCity String False

Staff member's billing address city.

BillingCode String False

Staff member's billing address zip code.

BillingCountry String False

Staff member's billing address country.

BillingProvince String False

Staff member's billing address province.

BillingStreet String False

Staff member's billing address primary street information.

BillingStreet2 String False

Staff member's billing address secondary street information.

Rate String False

Rate this staff member is billed at.

SignupDate Datetime False

Date the staff member account was created. (YYYY-MM-DD HH:MM:SS)

Updated Datetime False

Date the staff member account was last updated. (YYYY-MM-DD HH:MM:SS)

Username String False

Username specified for the staff member; randomly assigned if none specified at creation time.

VisState Integer False

Visibility state: 'active,' 'deleted,' or 'archived.'

FreshBooks Connector for CData Sync

ビュー

ビューは、カラムと疑似カラムで構成されます。ビューは、データを示すという点でテーブルに似ていますが、ビューでは更新はサポートされません。通常、ビューとして表されるエンティティは、読み取り専用のエンティティです。多くの場合、これらのデータはストアドプロシージャを使用することで更新できます(その機能がデータソースに適用できる場合)。

ビューに対しては、通常のテーブルと同じようにクエリを実行でき、このときに返されるデータも同様です。

ビューとして公開されるクエリなどの動的ビューや、project_team ワークアイテムの特定の組み合わせを検索するためのビューがサポートされています。

FreshBooks Connector for CData Sync ビュー

Name Description
EstimatesLineItems Estimate lines are used to determine the amount of an estimate.
ExpenseCategories FreshBooks supplies Expense Categories to group expenses together to aid in expense tracking.
ExpensesReport The Expenses Report shows all the information involving your Expenses.
Gateways Gateways are also referred to as payment processors. The information returned by these endpoints specifies what payment processors are enabled for your businesses.
IdentityInfo You can find ids for the Businesses and Accounts a user can interact with by querying the IdentityInfo view.
InvoicesLineItems Invoice lines are used to determine the amount of an invoice, in addition to being able to tie the invoice to rebilled expenses.
InvoicesReport The Invoice Details Report shows all the information involving your invoices.
PaymentsCollectedReport The Payments Collected Report shows details regarding collected payments made to your business.
ProfitLossReport The Profit/Loss Report shows all the information involving both your Profits and Losses.
Projects Projects in FreshBooks are used to track business projects and related information such as hourly rate, service(s) being offered, projected end date...etc.
Systems An Accounting System represents an entity that can send invoices. It is the central point of association between all of a single Administrator of a single Business, Invoices, Clients, Staff, Expenses, and Reports.
Tasks Tasks in Freshbooks represent services that your business offers to clients. Tasks are used to keep track of details of the service such as name and hourly rate.
Taxes FreshBooks allows you to store your previously used taxes to re-apply conveniently.
TimeEntries Time Entries represent time spent working for a client or project.

FreshBooks Connector for CData Sync

EstimatesLineItems

Estimate lines are used to determine the amount of an estimate.

Columns

Name Type Description
LineId String Line Id unique to this estimate.
EstimateId Integer Id of the line's estimate.
CompoundedTax String
Description String Description for the estimate line item.
Amount Decimal Amount of estimate line item account, to two decimal places.
Code String Three-letter currency code.
Name String Name for the estimate line item.
Quantity String Quantity of the estimate line item, to be multiplied against unit cost.
UnitCostAmount Decimal Unit cost of the line item.
UnitCostCode String Three-letter currency code.
TaxName1 String Name for the first tax on the estimate line.
TaxAmount1 Decimal First tax amount, in percentage. (up to three decimal places)
TaxNumber1 String
TaxName2 String Name for the second tax on the estimate line.
TaxAmount2 Decimal Second tax amount, in percentage. (up to three decimal places)
TaxNumber2 String

FreshBooks Connector for CData Sync

ExpenseCategories

FreshBooks supplies Expense Categories to group expenses together to aid in expense tracking.

Columns

Name Type Description
Categoryid [KEY] Integer A unique identifier for the category, unique to this business id.
Category String Name for this category.
IsCogs Boolean Represents cost of goods sold.
IsEditable Boolean Indicates whether this can be edited.
ParentId Integer Categoryid of parent category.
VisState Integer 0 for active, 1 for deleted.

FreshBooks Connector for CData Sync

ExpensesReport

The Expenses Report shows all the information involving your Expenses.

Columns

Name Type Description
ExpenseId [KEY] String Unique id for the expense.
GroupId String Unique id for the group.
Amount Decimal The amount of money that is owed or been paid.
Code String The currency that the amount is in.
VendorId String The unique id for the vendor.
Vendor String The name of the vendor.
Notes String Custom notes about the expense.
ClientId String Unique id for the client.
AuthorId String Id for the author.
CreatedDate Date The date the expense took place.
TaxName1 String The name of the first tax.
TaxPercent1 Decimal The percentage you are being taxed on.
TaxAmount1 Decimal The amount of the first tax.
TaxCode1 String The currency of the first tax.
TaxName2 String The name of the second tax.
TaxPercent2 Decimal The percentage you are being taxed on.
TaxAmount2 Decimal The amount of the second tax.
TaxCode2 String The currency of the second tax.
CategoryId String The identifier of the category.
CompanyName String Name of the company that the expenses are charged too.

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

Name Type Description
StartDate String The starting date for the expense report query.
EndDate String Will only return invoices that were created before the given date.

FreshBooks Connector for CData Sync

Gateways

Gateways are also referred to as payment processors. The information returned by these endpoints specifies what payment processors are enabled for your businesses.

Columns

Name Type Description
Id [KEY] String Unique identifier to the business Id for the gateway, unique to the whole environment.
GatewayName String The name of the gateway.
SingleGatewayId Integer Unique identifier to the business Id for the gateway.

FreshBooks Connector for CData Sync

IdentityInfo

You can find ids for the Businesses and Accounts a user can interact with by querying the IdentityInfo view.

Columns

Name Type Description
Id [KEY] Integer Unique identifier of identity.
Name String Name of business.
AccountId String Unique identifier of accounting system, if applicable.

FreshBooks Connector for CData Sync

InvoicesLineItems

Invoice lines are used to determine the amount of an invoice, in addition to being able to tie the invoice to rebilled expenses.

Columns

Name Type Description
LineId String Line Id unique to this invoice.
InvoiceId Integer Id of related invoice.
Amount String Total amount of an invoice line, to two decimal places.
Code String Three-letter currency code.
Updated Datetime Time that the invoice was last updated. (YYYY-MM-DD)
Type Integer Invoice line type: normal invoice (0) or rebilling expense (1)
Quantity Integer Quantity of the invoice line item, to be multiplied against unit cost.
UnitCostAmount Decimal Unit cost amount, to two decimal places.
UnitCostCode String Three-letter currency code.
Description String Description for the invoice line item.
Name String Name for the invoice line item.
TaxName1 String Name for the first tax on invoice line.
TaxAmount1 Decimal First tax percentage amount, up to three decimal places.
TaxName2 String Name for the second tax on invoice line.
TaxAmount2 Decimal Second tax percentage amount, up to three decimal places.

FreshBooks Connector for CData Sync

InvoicesReport

The Invoice Details Report shows all the information involving your invoices.

Columns

Name Type Description
CreatedDate Date The date the invoice was created.
InvoiceId [KEY] String The unique id of the invoice.
DueOffsetDays Int Number of days from creation that the invoice is due.
Amount Decimal The amount of money that is owed or been paid.
Code String The currency that the amount is in.
PostOfficeNumber Int Post office box number for address on invoice.
TaxAmount Decimal Amount of tax.
TaxCode String Three-letter currency code.
PaidAmount Decimal Amount paid.
PaidCode String Three-letter currency code.
DatePaid Date The date the invoice was paid.
DiscountAmount Decimal The amount discount.
DiscountCode String Three-letter currency code.
InvoiceNumber String User-specified and visible invoice id.
currency_code String Three-letter currency code for invoice.
UserId String The unique id of the client.
FirstName String First name of the user.
LastName String The last name of the user.
Email String The email of the user.
Organization String Name of the organization the user is a part of.

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

Name Type Description
StartDate String The starting date for the expense report query.
EndDate String Will only return invoices that were created before the given date.

FreshBooks Connector for CData Sync

PaymentsCollectedReport

The Payments Collected Report shows details regarding collected payments made to your business.

Columns

Name Type Description
InvoiceId String The unique id of the invoice.
ClientId String The unique id of the client.
Amount Decimal Amount paid on invoice to two decimal places.
Code String Three-letter currency code.
Client String The name of the business client belongs to.
Description String The description of the payment.
Date Date The date of the payment.
InvoiceNumber String A custom id for the invoice.
Method String Method of payment.

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

Name Type Description
StartDate String The starting date for the expense report query.
EndDate String Will only return invoices that were created before the given date.

FreshBooks Connector for CData Sync

ProfitLossReport

The Profit/Loss Report shows all the information involving both your Profits and Losses.

Columns

Name Type Description
ProfitsAmount Decimal Amount of total profits.
ProfitsCode String Three-letter currency code.
IncomesAmount Decimal Amount of total incomes.
IncomesCode String Three-letter currency code.
ExpensesAmount Decimal Amount of total expenses.
ExpensesCode String Three-letter currency code.
FromDate Date The beginning date of the report.
ToDate Date The ending date of the report.

Pseudo-Columns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。

Name Type Description
StartDate String the starting date for the expense report query.
EndDate String Will only return invoices that were created before the given date.

FreshBooks Connector for CData Sync

Projects

Projects in FreshBooks are used to track business projects and related information such as hourly rate, service(s) being offered, projected end date...etc.

Columns

Name Type Description
Id [KEY] String Unique identifier of the project.
Title String Title of the project.
ClientId String Unique identifier of the client.
GroupId String Unique id of group membership.
FixedPrice Decimal Used for flat-rate projects. Represents the amount being charged to the client for the project.
UpdatedAt Datetime The time the project was last updated.
Sample Boolean True if project is sample.
Active Boolean Whether the project is active or not.
Rate String The hourly rate of the project. Only applies to hourly_rate projects.
ProjectType String Type of project: fixed_price, hourly_rate.
Description String Description of project.
LoggedDuration Integer The time logged for the project in seconds.
Internal Boolean Clarifies that the project is internally within the company (client is the company).
DueDate Date Date of projected completion.
Complete Boolean Whether the project is completed or not.
BilledAmount Decimal The amount billed for the project.
BilledStatus String Shows the billed status.
BillingMethod String The method of payment for the project.
CreatedAt Datetime The date/time the project was created.
Budget Integer Budget for project.

FreshBooks Connector for CData Sync

Systems

An Accounting System represents an entity that can send invoices. It is the central point of association between all of a single Administrator of a single Business, Invoices, Clients, Staff, Expenses, and Reports.

Columns

Name Type Description
Id [KEY] Integer The unique identifier of the system.
AccountId String The second unique identifier for the system.
Active Boolean Indicates whether the system is live or cancelled.
Amount Decimal Two-place decimal formatted amount being paid for the system.
AutoBill Integer Count of the number of autobills the system is allowed to have.
BillingStatus String Description of whether the owner of the system has paid when they were supposed to.
BusinessPhone String Main phone number for the business.
BusinessType String A description of the business.
City String The city this business is based in.
Code String The postal code for the business.
Country String The country this business is based in.
CurrencyCode String The default three-letter currency code for the business.
Date Date The signup date. (YYYY-MM-DD)
DiscountId String Identifier for tracking discounts (internal use).
DaylightSavingsTime String Indicates whether to use daylight savings time version of system's timezone.
Duration Integer (deprecated)
Email String The administrator email.
Fax String The fax number for a business.
GSTAmount Decimal The two-place decimal formatted amount of gst being paid for the system.
HeardAboutUsVia String Channel system came to Freshbooks through.
InfoEmail String The public email address to display.
IP String The signup IP address.
LandingUrl String The landing url used for analytics.
MasterlockBilling String Indicates whether a system is billed via a particular service.
MobilePhone String The mobile phone number for the business.
ModernSystem String Indicates whether the system belongs to the new version of FreshBooks or FreshBooks Classic.
Name String Descriptive name of the business.
Clients Integer Number of clients allowed on business.
Staff String Number of staff allowed on business.
PaymentAmount Decimal Two-place decimal formatted amount being paid for system.
PaymentFrequency Integer How many months per pay cycle. (internal)
Province String The province or state of the business.
ReferralId String A referral ID for analytics.
ReferringUrl String Tracks origin of user signup for analytics.
Salutation String The preferred greeting of the user.
SizeLimit Integer (deprecated)
SplitToken String Used for tracking split tests.
Street String The first line of the street of the business.
Street2 String The second line of the street of the business.
TestSystem String Indicates whether this system is marked by FreshBooks as a test system.
Timezone String The timezone the business is in. (deprecated)
TimezoneId Integer The identifier of the timezone the business is in. (deprecated)

FreshBooks Connector for CData Sync

Tasks

Tasks in Freshbooks represent services that your business offers to clients. Tasks are used to keep track of details of the service such as name and hourly rate.

Columns

Name Type Description
Id [KEY] String Unique identifier of the task.
Name String The name of the task.
UpdatedAt Datetime The Date/Time the task was last updated
Description String The description of the task.
RateAmount Decimal The hourly amount charged for the task.
RateCode String The currency of the rate.
Billable Boolean True if the task is billable.
Tax1 Decimal Amount of first tax.
Tax2 Decimal Amount of second tax.
VisState Integer 0 marks the task as active, 1 if inactive.

FreshBooks Connector for CData Sync

Taxes

FreshBooks allows you to store your previously used taxes to re-apply conveniently.

Columns

Name Type Description
Id [KEY] Integer The unique identifier of the tax.
AccountingSystemId String The unique identifier of the business the client exists on.
Amount Decimal The string-decimal representing percentage value of tax.
Compound Boolean Indicates whether this is a compound tax to calculate on top of primary taxes.
Name String Identifiable name for the tax.
Number String An external number that identifies the tax submission.
TaxId Integer The unique identifier of the tax within this business.
Updated Datetime The date the staff object was last updated. (YYYY-MM-DD HH:MM:SS)

FreshBooks Connector for CData Sync

TimeEntries

Time Entries represent time spent working for a client or project.

Columns

Name Type Description
Id [KEY] String Unique identifier of the time entry.
ClientId String Unique identifier of the client.
ProjectId String Unique identifier of the project.
TaskId String Unique identifier of the task.
IsLogged Boolean False if the time entry is being created from a running timer.
CreatedAt Datetime The date when the time entry was created.
Billable Boolean True for entries that can be automatically added to an invoice.
TimerId String Unique identifier of the timer.
TimerIsRunning Boolean True if the timer is running.
PendingTask String The pending task.
Description String Notes of the user on the time entry.
Active Boolean True if the time entry is active.
Internal Boolean True if the time entry is not assigned to a client.
PendingProject String The pending project.
PendingClient String The pending client.
Duration Integer Duration of the time entry.
ServiceId String Unique identifier of the service.
Billed Boolean True if the entry time is billed.
StartedAt Datetime The date/time when the time entry started.

FreshBooks Connector for CData Sync

接続文字列オプション

接続文字列プロパティは、接続を確立するために使用できるさまざまなオプションです。このセクションでは、本プロバイダーの接続文字列で設定できるオプションの一覧を示します。詳細については各リンクをクリックしてください。

接続を確立する方法について詳しくは、接続の確立を参照してください。

Authentication


プロパティ説明
AccountId接続先のアカウントId。値を指定しない場合は、初めに返されたプロファイルが使われます。
CompanyNameFreshBooks へのアクセスに使われる会社名。

OAuth


プロパティ説明
OAuthClientIdOAuth 認証サーバーを使用してアプリケーションを登録する場合に割り当てられたクライアントId。
OAuthClientSecretOAuth 認証サーバーにアプリケーションを登録する場合に割り当てられたクライアントシークレット。
AuthTokenOAuth アクセストークンをリクエストおよび取得するために使用される認証トークン。
AuthKeyOAuth アクセストークンをリクエストおよび取得するために使用される認証シークレット。

SSL


プロパティ説明
SSLServerCertTLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。

Firewall


プロパティ説明
FirewallTypeプロキシベースのファイアウォールで使われるプロトコル。
FirewallServerプロキシベースのファイアウォールの名前もしくはIP アドレス。
FirewallPortプロキシベースのファイアウォールのTCP ポート。
FirewallUserプロキシベースのファイアウォールに認証するために使うユーザー名。
FirewallPasswordプロキシベースのファイアウォールへの認証に使われるパスワード。

Proxy


プロパティ説明
ProxyAutoDetectこれは、システムプロキシ設定を使用するかどうかを示します。これは他のプロキシ設定よりも優先されるため、カスタムプロキシ設定を使用するにはProxyAutoDetect をFALSE に設定する必要があります。
ProxyServerHTTP トラフィックをルートするためのプロキシのホストネームもしくはIP アドレス。
ProxyPortProxyServer プロキシが起動しているTCP ポート。
ProxyAuthSchemeProxyServer プロキシへの認証で使われる認証タイプ。
ProxyUserProxyServer プロキシへの認証に使われるユーザー名。
ProxyPasswordProxyServer プロキシへの認証に使われるパスワード。
ProxySSLTypeProxyServer プロキシへの接続時に使用するSSL タイプ。
ProxyExceptionsProxyServer 経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。

Logging


プロパティ説明
LogModulesログファイルに含めるコアモジュール。

Schema


プロパティ説明
Locationテーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリへのパス。
BrowsableSchemasこのプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
Tablesこのプロパティは、使用可能なテーブルのサブセットにレポートされるテーブルを制限します。例えば、Tables=TableA,TableB,TableC です。
Views使用可能なテーブルのサブセットにレポートされるビューを制限します。例えば、Views=ViewA,ViewB,ViewC です。

Miscellaneous


プロパティ説明
MaxRowsクエリで集計またはグループ化を使用しない場合に返される行数を制限します。これにより、設計時にパフォーマンスの問題を回避できます。
Otherこれらの隠しプロパティは特定のユースケースでのみ使用されます。
PseudoColumnsこのプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。
Timeoutタイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。
UserDefinedViewsカスタムビューを含むJSON コンフィギュレーションファイルを指すファイルパス。
FreshBooks Connector for CData Sync

Authentication

このセクションでは、本プロバイダーの接続文字列で設定可能なAuthentication プロパティの全リストを提供します。


プロパティ説明
AccountId接続先のアカウントId。値を指定しない場合は、初めに返されたプロファイルが使われます。
CompanyNameFreshBooks へのアクセスに使われる会社名。
FreshBooks Connector for CData Sync

AccountId

接続先のアカウントId。値を指定しない場合は、初めに返されたプロファイルが使われます。

解説

利用可能なアカウントId は、IdentityInfo ビューで確認できます。

FreshBooks Connector for CData Sync

CompanyName

FreshBooks へのアクセスに使われる会社名。

解説

この値はFreshBooks への接続に必須で、接続に使われるURL の初めの部分と同じです。例えば、URL がhttps://sample.freshbooks.com/home のアカウントであれば、会社名は"sample" です。

FreshBooks Connector for CData Sync

OAuth

このセクションでは、本プロバイダーの接続文字列で設定可能なOAuth プロパティの全リストを提供します。


プロパティ説明
OAuthClientIdOAuth 認証サーバーを使用してアプリケーションを登録する場合に割り当てられたクライアントId。
OAuthClientSecretOAuth 認証サーバーにアプリケーションを登録する場合に割り当てられたクライアントシークレット。
AuthTokenOAuth アクセストークンをリクエストおよび取得するために使用される認証トークン。
AuthKeyOAuth アクセストークンをリクエストおよび取得するために使用される認証シークレット。
FreshBooks Connector for CData Sync

OAuthClientId

OAuth 認証サーバーを使用してアプリケーションを登録する場合に割り当てられたクライアントId。

解説

OAuth アプリケーションの登録の一環として、コンシューマキーとも呼ばれるOAuthClientId 値、およびクライアントシークレットOAuthClientSecret が提供されます。

FreshBooks Connector for CData Sync

OAuthClientSecret

OAuth 認証サーバーにアプリケーションを登録する場合に割り当てられたクライアントシークレット。

解説

OAuth アプリケーションの登録の一環として、コンシューマキーとも呼ばれるOAuthClientId が提供されます。また、コンシューマーシークレットと呼ばれるクライアントシークレットも提供されます。クライアントシークレットをOAuthClientSecret プロパティに設定します。

FreshBooks Connector for CData Sync

AuthToken

OAuth アクセストークンをリクエストおよび取得するために使用される認証トークン。

解説

このプロパティは、OAuth 1.0でヘッドレス認証を実行する場合にのみ必要です。これは、GetOAuthAuthorizationUrl ストアドプロシージャから取得できます。

GetOAuthAccessToken ストアドプロシージャでAuthKey とともに指定して、OAuthAccessToken を取得できます。

FreshBooks Connector for CData Sync

AuthKey

OAuth アクセストークンをリクエストおよび取得するために使用される認証シークレット。

解説

このプロパティは、OAuth 1.0でヘッドレス認証を実行する場合にのみ必要です。これは、GetOAuthAuthorizationUrl ストアドプロシージャから取得できます。

GetOAuthAccessToken ストアドプロシージャでAuthToken とともに指定して、OAuthAccessToken を取得できます。

FreshBooks Connector for CData Sync

SSL

このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。


プロパティ説明
SSLServerCertTLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。
FreshBooks Connector for CData Sync

SSLServerCert

TLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。

解説

TLS/SSL 接続を使用する場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。コンピュータによって信頼されていない他の証明書はすべて拒否されます。

このプロパティは、次のフォームを取ります:

説明 例
フルPEM 証明書(例では省略されています) -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
証明書を保有するローカルファイルへのパス。 C:\cert.cer
公開鍵(例では省略されています) -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
MD5 Thumbprint (hex 値はスペースおよびコロン区切り) ecadbdda5a1529c58a1e9e09828d70e4
SHA1 Thumbprint (hex 値はスペースおよびコロン区切り) 34a929226ae0819f2ec14b4a3d904f801cbb150d

これを指定しない場合は、マシンが信用するすべての証明書が受け入れられます。

すべての証明書の受け入れを示すには、'*'を使用します。セキュリティ上の理由から、これはお勧めできません。

FreshBooks Connector for CData Sync

Firewall

このセクションでは、本プロバイダーの接続文字列で設定可能なFirewall プロパティの全リストを提供します。


プロパティ説明
FirewallTypeプロキシベースのファイアウォールで使われるプロトコル。
FirewallServerプロキシベースのファイアウォールの名前もしくはIP アドレス。
FirewallPortプロキシベースのファイアウォールのTCP ポート。
FirewallUserプロキシベースのファイアウォールに認証するために使うユーザー名。
FirewallPasswordプロキシベースのファイアウォールへの認証に使われるパスワード。
FreshBooks Connector for CData Sync

FirewallType

プロキシベースのファイアウォールで使われるプロトコル。

解説

このプロパティは、Sync App がFirewallServer プロキシ経由でトンネルトラフィックを使うためのプロトコルを指定します。デフォルトでは、Sync App はシステムプロキシに接続します。この動作を無効化し次のプロキシタイプのどれかで接続するには、ProxyAutoDetect をfalse に設定します。

タイプ デフォルトポート 説明
TUNNEL 80 これが設定されている場合、Sync App はFreshBooks への接続を開き、プロキシを経由して通信が行われます。
SOCKS4 1080 これが設定されている場合、Sync App はデータをFirewallServer およびFirewallPort で指定されたSOCS 4 プロキシ経由で送信し、接続リクエストが許容されるかどうかを決定します。
SOCKS5 1080 これが設定されている場合、Sync App はデータをFirewallServer およびFirewallPort で指定されたSOCS 5 プロキシ経由で送信します。プロキシに認証が必要な場合には、FirewallUser およびFirewallPassword をプロキシが認識する認証情報に設定します。

HTTP プロキシへの接続には、ProxyServer およびProxyPort ポートを使ってください。HTTP プロキシへの認証には、ProxyAuthScheme、ProxyUser、およびProxyPassword を使ってください。

FreshBooks Connector for CData Sync

FirewallServer

プロキシベースのファイアウォールの名前もしくはIP アドレス。

解説

ファイアウォールトラバーサルを許容するために設定するIP アドレス、DNS 名、もしくはプロキシホスト名を指定するプロパティです。プロトコルはFirewallType で指定されます。このプロパティとFirewallServer を使って、SOCKS 経由での接続、もしくはトンネリングが可能です。HTTP プロキシへの接続には、ProxyServer を使用します。

Sync App はデフォルトでシステムプロキシを使うので注意してください。他のプロキシを使う場合には、ProxyAutoDetect をfalse に設定してください。

FreshBooks Connector for CData Sync

FirewallPort

プロキシベースのファイアウォールのTCP ポート。

解説

ファイアウォールトラバーサルを許容するために設定するプロキシベースのファイアウォールのTCP ポート。名前もしくはIP アドレスを指定するには、FirewallServer を使います。FirewallType でプロトコルを指定します。

FreshBooks Connector for CData Sync

FirewallUser

プロキシベースのファイアウォールに認証するために使うユーザー名。

解説

FirewallUser およびFirewallPassword プロパティは、FirewallType により指定された認証方式に則り、FirewallServer、およびFirewallPort で指定されたプロキシに対しての認証に使われます。

FreshBooks Connector for CData Sync

FirewallPassword

プロキシベースのファイアウォールへの認証に使われるパスワード。

解説

このプロパティは、FirewallType により指定された認証メソッドに則り、FirewallServer およびFirewallPort で指定されたプロキシに渡されます。

FreshBooks Connector for CData Sync

Proxy

このセクションでは、本プロバイダーの接続文字列で設定可能なProxy プロパティの全リストを提供します。


プロパティ説明
ProxyAutoDetectこれは、システムプロキシ設定を使用するかどうかを示します。これは他のプロキシ設定よりも優先されるため、カスタムプロキシ設定を使用するにはProxyAutoDetect をFALSE に設定する必要があります。
ProxyServerHTTP トラフィックをルートするためのプロキシのホストネームもしくはIP アドレス。
ProxyPortProxyServer プロキシが起動しているTCP ポート。
ProxyAuthSchemeProxyServer プロキシへの認証で使われる認証タイプ。
ProxyUserProxyServer プロキシへの認証に使われるユーザー名。
ProxyPasswordProxyServer プロキシへの認証に使われるパスワード。
ProxySSLTypeProxyServer プロキシへの接続時に使用するSSL タイプ。
ProxyExceptionsProxyServer 経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。
FreshBooks Connector for CData Sync

ProxyAutoDetect

これは、システムプロキシ設定を使用するかどうかを示します。これは他のプロキシ設定よりも優先されるため、カスタムプロキシ設定を使用するにはProxyAutoDetect をFALSE に設定する必要があります。

解説

これは他のプロキシ設定よりも優先されるため、カスタムプロキシ設定を使用するにはProxyAutoDetect をFALSE に設定する必要があります。

HTTP プロキシへの接続には、ProxyServer を参照してください。SOCKS やトンネリングなどの他のプロキシには、FirewallType を参照してください。

FreshBooks Connector for CData Sync

ProxyServer

HTTP トラフィックをルートするためのプロキシのホストネームもしくはIP アドレス。

解説

HTTP トラフィックをルートするためのプロキシのホストネームもしくはIP アドレス。HTTP プロキシへの認証には、Sync App はHTTP、Windows(NTLM)、もしくはKerberos 認証タイプを使用することができます。

SOCKS プロキシを経由して接続する、もしくは接続をトンネルするには、FirewallType を参照してください。

デフォルトで、Sync App はsystem プロキシを使います。他のプロキシを使う場合には、ProxyAutoDetect をfalse に設定します。

FreshBooks Connector for CData Sync

ProxyPort

ProxyServer プロキシが起動しているTCP ポート。

解説

HTTP トラフィックをリダイレクトするHTTP プロキシが実行されているポート。ProxyServer でHTTP プロキシを指定します。その他のプロキシタイプについては、FirewallType を参照してください。

FreshBooks Connector for CData Sync

ProxyAuthScheme

ProxyServer プロキシへの認証で使われる認証タイプ。

解説

この値は、ProxyServer およびProxyPort で指定されるHTTP プロキシに認証するために使われる認証タイプを指定します。

Sync App は、デフォルトでsystem proxy settings を使い、追加での設定が不要です。他のプロキシへの接続をする場合には、ProxyServer およびProxyPort に加え、ProxyAutoDetect をfalse に設定します。認証するには、ProxyAuthScheme を設定し、必要な場合にはProxyUser およびProxyPassword を設定します。

認証タイプは、次のどれかになります。

  • BASIC: Sync App はHTTP BASIC 認証を行います。
  • DIGEST: Sync App はHTTP DIGEST 認証を行います。
  • NEGOTIATE: Sync App は認証において有効なプロトコルに応じて、NTLM もしくはKereros トークンを取得します。
  • PROPRIETARY: Sync App はNTLM もしくはKerberos トークンを発行しません。このトークンを、HTTP リクエストのAuthorization ヘッダーに含める必要があります。

SOCKS 5 認証のような他の認証タイプを使用するには、FirewallType を参照してください。

FreshBooks Connector for CData Sync

ProxyUser

ProxyServer プロキシへの認証に使われるユーザー名。

解説

ProxyUser および ProxyPassword オプションは、ProxyServer で指定されたHTTP プロキシに対して接続および認証するために使用されます。

ProxyAuthScheme で使用可能な認証タイプを選択することができます。HTTP 認証を使う場合、これをHTTP プロキシで識別可能なユーザーのユーザー名に設定します。Windows もしくはKerberos 認証を使用する場合、このプロパティを次の形式のどれかでユーザー名に設定します。

user@domain
domain\user

FreshBooks Connector for CData Sync

ProxyPassword

ProxyServer プロキシへの認証に使われるパスワード。

解説

このプロパティは、NTLM(Windows)、Kerberos、もしくはHTTP 認証をサポートするHTTP プロキシサーバーに認証するために使われます。HTTP プロキシを指定するためには、ProxyServer およびProxyPort を設定します。認証タイプを指定するためにはProxyAuthScheme を設定します。

HTTP 認証を使う場合、さらにHTTP プロキシにProxyUser およびProxyPassword を設定します。

NTLM 認証を使う場合、Windows パスワードにProxyUser およびProxyPassword を設定します。Kerberos 認証には、これらを入力する必要があります。

SOCKS 5 認証もしくは、トンネリングは、FirewallType を参照してください。

デフォルトで、Sync App はsystem プロキシを使います。他のプロキシに接続する場合には、これをfalse に設定します。

FreshBooks Connector for CData Sync

ProxySSLType

ProxyServer プロキシへの接続時に使用するSSL タイプ。

解説

このプロパティは、ProxyServer で指定されたHTTP プロキシへの接続にSSL を使用するかどうかを決定します。この値は、AUTO、ALWAYS、NEVER、TUNNEL のいずれかです。有効な値は次のとおりです。

AUTOデフォルト設定。URL がHTTPS URL の場合、Sync App は、TUNNEL オプションを使います。URL がHTTP URL の場合、コンポーネントはNEVER オプションを使います。
ALWAYS接続は、常にSSL 有効となります。
NEVER接続は、SSL 有効になりません。
TUNNEL接続は、トンネリングプロキシを経由します。プロキシサーバーがリモートホストへの接続を開き、プロキシを経由して通信が行われます。

FreshBooks Connector for CData Sync

ProxyExceptions

ProxyServer 経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。

解説

ProxyServer は、このプロパティで定義されたアドレスを除くすべてのアドレスに使用されます。セミコロンを使用してエントリを区切ります。

Sync App は、追加設定なしにデフォルトでシステムのプロキシ設定を使います。この接続のプロキシ例外を明示的に構成するには、ProxyAutoDetect をfalse に設定して、ProxyServer およびProxyPort を設定する必要があります。認証するには、ProxyAuthScheme を設定し、必要な場合にはProxyUser およびProxyPassword を設定します。

FreshBooks Connector for CData Sync

Logging

このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。


プロパティ説明
LogModulesログファイルに含めるコアモジュール。
FreshBooks Connector for CData Sync

LogModules

ログファイルに含めるコアモジュール。

解説

指定された(';' で区切られた)モジュールのみがログファイルに含まれます。デフォルトではすべてのモジュールが含まれます。

概要はログ ページを参照してください。

FreshBooks Connector for CData Sync

Schema

このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。


プロパティ説明
Locationテーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリへのパス。
BrowsableSchemasこのプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
Tablesこのプロパティは、使用可能なテーブルのサブセットにレポートされるテーブルを制限します。例えば、Tables=TableA,TableB,TableC です。
Views使用可能なテーブルのサブセットにレポートされるビューを制限します。例えば、Views=ViewA,ViewB,ViewC です。
FreshBooks Connector for CData Sync

Location

テーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリへのパス。

解説

Sync App のスキーマファイル(テーブルとビューの場合は.rsd ファイル、ストアドプロシージャの場合は.rsb ファイル)を含むディレクトリへのパス。このフォルダの場所は、実行ファイルの場所からの相対パスにすることができます。Location プロパティは、定義をカスタマイズしたり(例えば、カラム名を変更する、カラムを無視するなど)、新しいテーブル、ビュー、またはストアドプロシージャでデータモデルを拡張する場合にのみ必要です。

Note: このSync App は複数のスキーマをサポートするため、FreshBooks カスタムスキーマファイルの構造は以下のようになります。

  • 各スキーマには、そのスキーマ名に対応するフォルダが作られます。
  • これらのスキーマフォルダは親フォルダに含まれています。
  • 親フォルダは、個々のスキーマのフォルダではなく、Location として設定する必要があります。

指定しない場合、デフォルトの場所は"%APPDATA%\\CData\\FreshBooks Data Provider\\Schema" となり、%APPDATA% はユーザーのコンフィギュレーションディレクトリに設定されます:

FreshBooks Connector for CData Sync

BrowsableSchemas

このプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。

解説

スキーマをデータベースからリストすると、負荷がかかる可能性があります。接続文字列でスキーマのリストを提供すると、 パフォーマンスが向上します。

FreshBooks Connector for CData Sync

Tables

このプロパティは、使用可能なテーブルのサブセットにレポートされるテーブルを制限します。例えば、Tables=TableA,TableB,TableC です。

解説

テーブルを複数のデータベースからリストすると、負荷がかかる可能性があります。接続文字列でテーブルのリストを提供すると、Sync App のパフォーマンスが向上します。

このプロパティは、作業したいビューがすでにわかっていて、ビューが多すぎる場合に、ビューを自動的にリストする代わりに使用することもできます。

カンマ区切りのリストで使用したいテーブルを指定します。各テーブルは、角かっこ、二重引用符、またはバッククオートを使用してエスケープされた特殊文字列を含む有効なSQL 識別子である必要があります。 例えば、Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space` です。

複数のスキーマまたはカタログを持つデータソースに接続する場合は、複数のカタログやスキーマに存在するテーブル間の曖昧さを避けるため、最後の例のように、このプロパティにテーブルの完全修飾名を指定する必要があることに注意してください。

FreshBooks Connector for CData Sync

Views

使用可能なテーブルのサブセットにレポートされるビューを制限します。例えば、Views=ViewA,ViewB,ViewC です。

解説

ビューを複数のデータベースからリストすると、負荷がかかる可能性があります。接続文字列でビューのリストを提供すると、Sync App のパフォーマンスが向上します。

このプロパティは、作業したいビューがすでにわかっていて、ビューが多すぎる場合に、ビューを自動的にリストする代わりに使用することもできます。

カンマ区切りのリストで使用したいビューを指定します。各ビューは、角かっこ、二重引用符、またはバッククオートを使用してエスケープされた特殊文字列を含む有効なSQL 識別子である必要があります。 例えば、Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space` です。

複数のスキーマまたはカタログを持つデータソースに接続する場合は、複数のカタログやスキーマに存在するテーブル間の曖昧さを避けるため、最後の例のように、このプロパティにテーブルの完全修飾名を指定する必要があることに注意してください。

FreshBooks Connector for CData Sync

Miscellaneous

このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。


プロパティ説明
MaxRowsクエリで集計またはグループ化を使用しない場合に返される行数を制限します。これにより、設計時にパフォーマンスの問題を回避できます。
Otherこれらの隠しプロパティは特定のユースケースでのみ使用されます。
PseudoColumnsこのプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。
Timeoutタイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。
UserDefinedViewsカスタムビューを含むJSON コンフィギュレーションファイルを指すファイルパス。
FreshBooks Connector for CData Sync

MaxRows

クエリで集計またはグループ化を使用しない場合に返される行数を制限します。これにより、設計時にパフォーマンスの問題を回避できます。

解説

クエリで集計またはグループ化を使用しない場合に返される行数を制限します。これにより、設計時にパフォーマンスの問題を回避できます。

FreshBooks Connector for CData Sync

Other

これらの隠しプロパティは特定のユースケースでのみ使用されます。

解説

以下にリストされているプロパティは、特定のユースケースで使用可能です。通常のドライバーのユースケースおよび機能では、これらのプロパティは必要ありません。

複数のプロパティをセミコロン区切りリストで指定します。

統合およびフォーマット

DefaultColumnSizeデータソースがメタデータにカラムの長さを提供しない場合に、文字列フィールドのデフォルトの長さを設定します。デフォルト値は2000です。
ConvertDateTimeToGMT日時の値を、マシンのローカルタイムではなくGMT グリニッジ標準時に変換するかどうかを決定します。
RecordToFile=filename基底のソケットデータ転送を指定のファイルに記録します。

FreshBooks Connector for CData Sync

PseudoColumns

このプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。

解説

Entity Framework ではテーブルカラムでない疑似カラムに値を設定できないため、この設定はEntity Framework で特に便利です。この接続設定の値は、"Table1=Column1, Table1=Column2, Table2=Column3" の形式です。"*=*" のように"*" 文字を使用して、すべてのテーブルとすべてのカラムを含めることができます。

FreshBooks Connector for CData Sync

Timeout

タイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。

解説

Timeout が0に設定されている場合は、操作がタイムアウトしません。処理が正常に完了するか、エラー状態になるまで実行されます。

Timeout の有効期限が切れても処理が完了していない場合は、Sync App は例外をスローします。

FreshBooks Connector for CData Sync

UserDefinedViews

カスタムビューを含むJSON コンフィギュレーションファイルを指すファイルパス。

解説

ユーザー定義ビューは、UserDefinedViews.json というJSON 形式のコンフィギュレーションファイルで定義されています。Sync App は、このファイルで指定されたビューを自動的に検出します。

また、複数のビュー定義を持ち、UserDefinedViews 接続プロパティを使用して制御することも可能です。このプロパティを使用すると、指定されたビューのみがSync App によって検知されます。

このユーザー定義ビューのコンフィギュレーションファイルは、次のようにフォーマットされています。

  • 各ルートエレメントはビューの名前を定義します。
  • 各ルートエレメントには、query と呼ばれる子エレメントが含まれており、この子エレメントにはビューのカスタムSQL クエリが含まれています。

次に例を示します。

{
	"MyView": {
		"query": "SELECT * FROM Clients WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}
UserDefinedViews 接続プロパティを使用して、JSON コンフィギュレーションファイルの場所を指定します。次に例を示します。
"UserDefinedViews", "C:\\Users\\yourusername\\Desktop\\tmp\\UserDefinedViews.json"

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479