BUSINESS SOFTWARE, INC. (BSI) CONFIDENTIAL AND PROPRIETARY INFORMATION

APIs

ConnectToDataSource

ConnectToDataSet

DisconnectDataSet

DisconnectDataSource

CommitDataSource

ProcessTaxes

ProcessReverseTaxes

ImportTaxes

ProcessPensionTaxes

ProcessLocations

GetEngineRelease

GetLocatorPlaces

GetMessages

ControlMessages

ExportCustomData

RollbackDataSource

ImportPensionTaxes

ImportCustomData

GetPkgFiles

SaveCustomData

LoadCustomData

RunTests

RstCheckpoint

CrtCheckpoint

 

ImportLocations

 

 

Note: API calls are encrypted using one of the following protocols: SSLv2, SSLv3, TLSv1, TLSv1.1 and TLSv1.2

ConnectToDataSource (TF1001)

 

Your application must call this function prior to processing a payroll run.

 

This function allows TaxFactory to connect to your database based on:

This function requires that the database connection string be valid for the given database. This ConnectToDataSource API call requires two parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

ConnectToDataSet (TF1002)

 

Your application must call this function prior to processing a payroll run.

 

This function allows TaxFactory to connect to your user-defined data set based on:

 

This function requires that the dataset variable is valid and contained in the dataset table BTXDSET.

 

Dataset is BSI’s implementation of the logical database concept. A TaxFactory database may have many sets of user-defined data as distinguished by dataset. This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

DisconnectDataSource (TF1003)

 

This function will disconnect from the database. It will also perform a DisconnectDataset. This function clears the cache of all data. This function must be called at the end of a processing cycle, which may consist of multiple payroll runs. This API call requires a single parameter:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

CommitDataSource (TF1005)

 

This function writes all updates to the database. It should be called for employees where the status > 0, and after the last employee of the payroll run. This API call requires a single parameter:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

ProcessTaxes (TF1007)

 

This function is called by your payroll system for each employee. It accepts employee, tax, earnings and benefit plan information to derive the correct taxes and taxable wages based on your inputs. It is capable of calculating taxes and taxable wages for the following scenarios:

This API call requires six parameters:

 

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

ProcessReverseTaxes (TF1008)

 

This function is called by your payroll system for each employee. It accepts employee, tax, earnings and benefit plan information to derive the correct taxes and taxable wages based on your inputs. It is capable of calculating taxes and taxable wages for the following scenarios:

 

 

Note: It is also capable of backing out negative taxes.

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

ImportTaxes (TF1011)

 

This function is called by your payroll system for each employee. It allows you to import employee, tax, earning and benefit plan information into the TaxFactory "What-If" tool. Once imported, different employee withholding scenarios can be easily explored through the interface.

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

ProcessPensionTaxes (TF1001)

 

This function is called by your payroll system for each employee receiving deferred pay. It accepts employee and tax  taxable wages for the following scenarios:

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

ProcessLocations (TF1010)

 

This function is called by your payroll system for each employee. It accepts employee and live and work mailing addresses to derive the tax liability based on your inputs. This function also returns taxes that do not exist in the database, but that must be used in some reciprocal tax calculations as placeholders. The TF1_LOCATOR_TAX structure has an additional output parameter Enacted that indicates whether a particular tax is a real tax or a placeholder tax. It is capable of locating tax liabilities for the following scenarios:

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

This functionality is based on several sources of data. As with any application, its results are provided as a guide only, and accuracy cannot be guaranteed.

 

GetLocatorPlaces (TF1013)

 

This function is called by your payroll system if and when you wish to display BSI TaxFactory-generated location choices through your own application. This function is called per employee when the EmployeeStatus field has a value > 0 subsequent to a call to ProcessLocations.

 

This API call requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

GetMessages (TF1015)

 

This function is called by your payroll system if and when you wish to display BSI TaxFactory-generated tax calculation messages through your own application. This function is called per employee when the EmployeeStatus field has a value > 0 subsequent to a call to ProcessLocations, ProcessTaxes, ProcessNegativeTaxes or ProcessPensionTaxes.

This API call requires three parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

GetEngineRelease (TF1014)

 

This function returns an identifying string that contains the TaxFactory release and cyclic information and, if a connection to the database has been established, the current support bulletin number.

 

This API call requires two parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

RollbackDataSource (TF1006)

 

This function removes all updates to the database, on databases where commit control is recognized. It should be called for employees where the status >0, and after the last employee of the payroll run, assuming that changes to the database do not need to be preserved.

 

This API call requires a single parameter:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

ControlMessages (TF1016)

 

This function controls the writing of messages to the database. This function can only be called after the ConnectToDatabase API. Call this API with a 0 (zero) to turn the writing of messages Off. Call this API with a 1 (one) to turn the writing of messages On. Note that the messages are still available through the GetTaxMessages and GetLocatorMessges API.  

 

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

ImportPensionTaxes  (TF1012)

 

This function is called by your payroll system for each pension employee. It allows you to import employee, tax, earning and benefit plan information into the TaxFactory "Pension What-If" tool. Once imported, different pension employee withholding scenarios can be easily explored through the interface.

 

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

GetPkgFiles (TF1021)

This function returns information on the data files contained within a package file. These data files contain backup tax data or custom data.

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

RunTests (TF1024)

This function performs tests against the appropriate TaxFactory engine. The test are written in the same format used by the "Batch Test" tool. If desired, the tests can also be imported to the database for further exploration through the interface.

This API requires six parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

ImportLocations (TF1025)

This function is called by your payroll system for each locator employee. It allows you to import locator employee and location information into the TaxFactory "TaxLocator" tool. Once imported, different locator scenarios can be easily explored through the interface.

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

CrtCheckPoint (TF1017)

This function saves the entire database to a package file. This allows for a complete backup of the TaxFactory table data which includes tax data and custom data.

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

RstCheckPoint (TF1018)

This function restores a prior database backup from a package file. All tax and custom data within TaxFactory tables will be deleted prior to restoration.

This API requires four parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

SaveCustomData (TF1011)

This function saves the custom TaxFactory data to a backup file. A single call to this function can be used to backup a single dataset or all datasets for this datasource. This is determined by the parameter passed for the dataset:

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

LoadCustomData (TF1020)

This function restores the custom TaxFactory data from a backup file.  A single call to this function can be used to restore a single dataset or all datasets. This is determined by the parameter passed for the dataset:

This API call requires eight parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

ExportCustomData (TF1023)

This function saves the custom TaxFactory data to a backup file. This data is also used by the BSI ComplianceFactory products. Only customers who use both products should utilize this function. A single call to this function can be used to backup a single dataset or all datasets for this datasource. This is determined by the parameter passed for the dataset:

This API call requires five parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

ImportCustomData (TF1022)

This function restores the custom TaxFactory data from a backup file. This data is also used by the BSI ComplianceFactory products. Only customers who use both products should utilize this function.  A single call to this function can be used to restore a single dataset or all datasets. This is determined by the parameter passed for the dataset:

This API call requires seven parameters (All flags use values of 0=No and 1=Yes):

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

DisconnectDataSet (TF1004)

 

This function will disconnect from the user-defined dataset. It also clears the cache of all data. This function is called when you want to clear the cache without dropping the database connection.

This API call requires two parameters:

This API call returns a value of 1 for SUCCESS or 0 for FAILURE.

 

 

 

 

 

 

 

©Copyright 2021 Business Software, Inc
Unpublished - Rights Reserved Under the Copyright Laws of the United States