Store history of the exported hours to payroll with result and identification codes.
API Logs
Application Service Options
Configuring the API Client
Run the API application by clicking on the Eco PaySpace API shortcut on the desktop or running the application called PaySpaceAPI32 or PaySpaceAPIMs.
Select the Settings - PaySpace Tab on the Eco Time PaySpace API Client :
API Scope: Leave the default as api.full_access.
Receive Format: The receive format is json and for information purposes only.
Working Company ID: The current selected company's employee payroll hours will be exported to PaySpace. This is a lookup field. Most customer have one in PaySpace. The companies table is populated when the Authentication API is run.
Payroll Period: The current selected payroll period for which employee payroll hours will be exported to PaySpace. This is a lookup field. The Pay Runs table is populated when the Pay Runs API is run.
Stop timed events: This stops time based and web initiated (manual) events. Typically, useful when doing fault finding or analysing data on the client response screen. The generate payroll hours and upload payroll hours is always a manual event, requiring user input via the web interface or desktop application.
A web interface option is available. More information can be found here.
Select the Settings - API Tab on the Eco Time PaySpace API Client
Client API Type: This setting defaults to "PaySpace". and cannot be changed.
Client API Mode: The Production option sets the api to interface with the customer's live PaySpace data. The QAS option sets the api to interface with the customer's test PaySpace data. Please note, each mode has its own settings.
Client API Status: The two options are Enabled or Disabled. The setting has to be "Enabled" to make the PaySpace options avilable in Eco Time's Web Browse menu.
Version Number: This is the API version and cannot be changed,
Log History Records: The log history will be truncated at this number of records (default 2000).
Employee Identifier: Set to identify if the employees in PaySpace are identified by Eco Time's employee number or payroll number.
Last Leave Time Stamp: The unique time stamp of the last Eco Time leave record uploaded to PaySpace.
Select the Settings - Syncronise Tab on the Eco Time PaySpace API Client
Last Sync Date: The last date all companies, frequencies, pay runs and employees were synced.
Last Sync Time: The last time all companies, frequencies, pay runs and employees were synced.
1st Sync Time: The 1st time of day all companies, frequencies, pay runs and employees will be synced.
2nd Sync Time: The 2nd time of day all companies, frequencies, pay runs and employees will be synced.
Purge Unverified Employees after (Days) : Employees in the list, which were not found in the PaySpace system, will be removed after this number of days.
Select the Settings - Profiles Tab on the Eco Time PaySpace API Client :
Profiles can be assigned to an API company, allowing different connection strings to be used. If a specific profile is not assigned to a company, the default profile will automatically be used.
Server: The API server URL or IP address and port number as supplied by the client. The current default is the current PaySpace standard.
Authentication Server: The API server URL or IP address and port number as supplied by PaySpace. The current default is the current PaySpace standard.
Client Code: The client code supplied and generated in the customer's PaySpace system.
Client Secret: The client secret supplied and generated in the customer's PaySpace system.
Authorization Key: The Authorization key can be used in placed of a company code and secret.
Run the API for the first time
After the API Client has been configured, run the application and select the Authentication tab.
A web interface option is available. More information can be found here.
Please Note that the "Stop timed events" check box is enabled by default on a new API installation. There is no point running timed events until the configuration has been completed.
Select the API button on the bottom right. This will open the API Client window.
Now Press the Post (POST) button
The request window is now populated with text.
To verify the connection, select the response tab.
If the response is very short, then there are the following possible errors:
Server connection cannot be opened: The PaySpace server connection details are incorrect or a firewall is blocking the connection.
403 Unauthorized: The API operator does not have privilege to view the monitored items.
400 Bad Request: The response at the bottom will indicate {"error":"invalid_client"} which means cleintid or client secret is wrong.
The features to the API methods which are available to the API operator are controlled by the PaySpace user privileges. Eco Time needs the following API methods for integration:
Companies and Company Groups
Frequencies
Component Codes
PayRuns
Employees
EditPaySlip
The "Do Not Process Reponse" disables any results processing. No tables will be populated. This is typically used for fault finding and in cases where you want to inspect the request packet and result packet.
Once you have established and tested that the PaySpace API Client is successfully communicating with the PaySpace API Server, the PaySpace API Client must be loaded with the API information in the following sequence.
Companies and Company Groups. The authentication API populates both.
Update the company information and features which displays the following update form.
Set the company export and import features now.
NB!! - The Working Company ID on the Settings - PaySpace Tab must now be set.
Employee group: The Eco Time employee group for this frequency / payroll roll rule. Only the employees' times in this group will be uploaded to payroll, firstly filtered by the company employee group and then by this employee group.
Profile ID: Profiles can be assigned to an API company, allowing different connection strings to be used. If a specific profile is not assigned to a company, the default profile will automatically be used.
Frequencies are for reference purposes only, but they are required for the API upload of the payroll export.
A web interface option is available. More information can be found here.
Updating the frequencies displays the following update form:
Company ID: The company ID populated by the API (read only).
ID: The GL code as populated by the API (read only).
Description: The GL code description as populated by the API (read only).
Frequency: The frequency description populated by the API (read only).
Employee group: The Eco Time employee group for this frequence / payroll roll rule. Only the employees' times in this group will be uploaded to payroll, firstly filtered by the company employee group and then by this employee group.
Setting the employee group at the company level will limit the API's employee import and verification to this specific Eco Time group. This is useful in cases where a company has staff, such as executives, recorded in Eco Time, but they do not use time and attendance clocks. In this scenario, you can create and assign an employee group called for example "Time and Attendance" to the applicable employees. By updating the API's company employee group to this, executives will be excluded from the API processing .
A web interface option is available. More information can be found here.
Component Codes are for reference purposes only. Although it is important that the frequency of the component codes being exported must be the same as the Pay Runs' frequency.
Input Type Codes are for reference purposes only. It is important that the correct of input code description must be assigned to the payroll export settings. The input type codes will be exported with each component code and will be visible in the export hours browse.
NB!! - The Pay Runs must now be assigned an Eco Time payroll date. How to do this can be found here.
NB!! - The Pay Periods on the Settings - PaySpace Tab must now be set.
Updating a company's employee group:
Select the change button on the companies browse opens the companies update form above.
Status: Enables or disabled the company, which disabled all API calls to the PaySpace server for the disabled company.
ID: Internal record number identifier. For reference purposes only and not updatable.
Company ID: Company Identifier. This field is automatically populated by the API, but can be edited to match the General Ledger setup ID. This value is also used when filtering the employees browse when displaying employees for the company.
Employee group: The Eco Time employee group for this company. Only the employees' times in this group will be uploaded to payroll.
Profile ID: Profiles can be assigned to an API company, allowing different connection strings to be used. If a specific profile is not assigned to a company, the default profile will automatically be used.
API features: The API features below can be enabled or disabled:
Note: When features are disabled, the relevant tabs and options will not be visible.
Export Payroll: Enables the export of payroll hours to PaySpace.
Import Employees: Enables the import of employees from PaySpace.
Export Employees: Enables the export of employees to PaySpace.
Import Leave: Enables the import of leave from PaySpace.
Export Leave: Enables the export of leave to PaySpace.
Allow automatic import / export: When enabled, the respective API option will automatically be processed during the sync schedule. When the respective API option is disabled, the applicable API processed must be manually initiated by the user.
Updating a company's export settings:
Override Export Settings: When enabled, the Export settings Tabs will override the payroll export codes and settings configured in Eco Time. This allows for different export settings for different payroll companies at one site.
Input Codes: The default input code description for component codes are hours. These fields can be changed, without having to enable the Override Export Setting. The available input code descriptions can be seen here.
Payroll Names:
Allows users to configure an Eco Time payroll leave type based on a combination of the imported Leave Bucket, Leave Type, and Leave Reason values's imported leave records, the specified action and leave code will be applied to the matching records during the current import.
By default, the leave import will lookup the Eco Time leave type's payroll name, if it the leave import does not find a matching Payroll name rule.
Update Payroll Names:
Company ID: the payroll name rule can be limited to a Company ID or zero for all Companies.
Eco Leave Code: Eco Eco Time Leave Type Code to be assigned to the imported leave record which mathes the rule.
Leave Bucket: The full leave bucket name to match the imported leave record's leave bucket description (PaySpace's LeaveBucket field).
Leave Type: The full leave type name to match the imported leave record's leave description (PaySpace's LeaveType field).
Leave Reason: The keyword to be found in the imported leave record's leave reason. The search is case insensitive (PaySpace's LeaveReason field)
The rule allocation operates based on the values entered in the Leave Bucket, Leave Type, and Leave Reason fields. If a field is left blank, it is ignored in the leave code allocation rule.
For example, if both Leave Bucket and Leave Type have values entered, the imported record must match both values for the leave code to be allocated to that record. Values evaluated as case-insensitive.
The Leave Reason field is a case-insensitive search. It can contain a keyword or words. If the keyword is found within the imported leave reason, the rule will be considered a match and applied accordingly.
Setup the API for Eco Time integration
Start by populating the following lists in order by pressing the API button on the respective tabs:
Employees- Get Employees: The API button brings up the following popup menu:
Select the "Get Employees" option by clicking on this item.
The api employee table contains all the captured employees on the PaySpace system
The following api employees table fields will be populated
ID: Internal PaySpace Employee ID code
Employee Number: Employee number captured in PaySpace.
This field is used to match the Eco Time employee number and if a match is found, the Eco Time fields will be populated.
If an Emp Number is not imported, no matching attempt will be made.
If an Emp Number is imported, the corresponding Eco Time details will be populated in the api employee table:
Eco Emp Number
Eco Emp First Name
Eco Emp Last Name
If an Emp Number is imported, the API validates the employee surname and employee number.
If employee name and surname do match, an image will appear next to the employee.
If and Eco Time employee is not found in PaySpace, an error image will appear next to the employee.
If employee surname does not match, an error image will appear next to the employee.
The AP tries to match first names. If the first names do not match, the API tries to resolve initials or initials in combination with first names. But if this fails a warning image will appear next to theEmployee.
You can mark the match indicator (see next paragraph). An exempted employee will display the exempted image .
You can override the employee match indicator.
firtName: Employee first name captured in PaySpace.
lastName: Employee last name captured in PaySpace.
Gender: Gender of employee captured in PaySpace.
ID Number: Employee ID or Passport number.
Company ID: Company ID this employee is allocated to.
Company Rule ID: Company Rule ID this employee is allocated to. Optional and is not always set.
Company Rule Display: Company Rule Description this employee is allocated to.
Eco Emp Number: Eco Time employee number matched with PaySpace.
Eco First Name: Eco Time employee firstname matched with PaySpace.
Eco Last Name: Eco Time employee last name matched with PaySpace.
Imported into Eco Time: Status and date details when this employee was imported into Eco Time.
Updated in Eco Time: Status and date details when this employee was updated in Eco Time after being imported.
Verified Date: Date verified between API Employee's and PaySpace. If the verified date is older than today's date, then that employee does not exist in PaySpace anymore.
Import Date: Date added to the API Employee's table.
Show All Employees: When this option is not selected, only employees who are part of the working company's employee group will be displayed. Additionally, employees with a "No Match" error will also be displayed if their Company ID matches the Company ID of the working company.
A web interface option is available. More information can be found here.
Updating an employee's matching status:
Select the change button on the Employees browse opened the employe update form above.
The user can override the employee's match status. Select Exempt if you will not export this employees hours to payroll and do not require a match to be performed in the future for this employee. Select OK to save your changes. Note: Not in Payroll cannot be set to exempt and must be excluded from the export with filter groups.
A web interface option is available. More information can be found here.
Pay Runs
The api Pay Runs table contains all the payroll periods setup in PaySpace.
The following apipayrollruns table fields will be populated
Description: Payroll Period Description.
Is Main Run: For Eco Time reference, but PaySpace internal use only.
Pay Hours Date: This field must be updated by changing the record and entering Eco Time's corresponding payroll hours date for the payroll run. NB!!. This is a prerequisite in order to generate payroll hours and upload these to PaySpace.
PayDate: For Eco Time reference, but PaySpace internal use only.
Period Start Date: For Eco Time reference, but PaySpace internal use only.
Period End Date: For Eco Time reference, but PaySpace internal use only.
RunStatus: For Eco Time reference, but PaySpace internal use only.
Run Type: For Eco Time reference, but PaySpace internal use only.
Value: For Eco Time reference, but PaySpace internal use only.
Frequency: For Eco Time reference, but PaySpace internal use only.
A web interface option is available. More information can be found here.
Updating a payrun record with an Eco Time Payroll date:
Select the change button on the companies browse opens the update companies form above.
The user MUST assign an Eco Time payroll hours date to a PayRun record. The PaySpace API uses this date to generate a payroll export hours and display history for the selected payroll run period. If this date is NOT SET, no hours will be generated or uploaded.
A web interface option is available. More information can be found here.
Generating the Export and Uploading Payroll Hours
Payroll Export:
The API Client will generate the payroll hours to be uploaded by selecting the Generate Export button.
The export is generated form Eco Time's payroll hours for the selected pay run's payroll date.
The Generate Export button can be used multiple times as it will clear the last generated export and recalculate the export from EcoTiem's current payroll hours.
Select the API button to upload the Export Hours to PaySpace.
Payroll Hours: This is Eco Time's payroll hours date as setup in the Payroll Period (Pay Run) current selected.
Request ID: An internal incremental rerefernce ID created by Eco Time, which is used to upload the payroll hours to PaySpace and match reponses from PaySpace to the transaction.
Payroll No: Eco Time's payroll number. Depending on the Identifier type selected in the settings tab, this can be Eco Time's payroll number or employee number.
First Name: Eco Time's employee First Name.
Surname: Eco Time's employee Surname.
Component Code: Payrol code as configure in Eco Time's time category setup .
Input Type:The default is "Hours" but can be changed in the company's export settings form.
Input Value: Totals payroll hours for the time category in decimal format.
Cost Centre Code: PaySpace required field. Not supported by Eco Time.
Activity Code: PaySpace required field. Not supported by Eco Time.
A web interface option is available. More information can be found here.
Export History
Once the payroll export has been uploaded to PaySpace, the PaySpace will respond to each component uploaded.
The hours uploaded and the PaySpace response is stored in the API's Export History table. Note: You will on see the export history for the current selected payroll run period. To see previous payroll run's history, select the appropriate payroll run period from the settings tab.
Payroll Date: This is Eco Time's payroll hours date as entered for the pay run currently selected in the settings tab .
Request ID: An internal incremental reference ID created by Eco Time, which is used to upload the payroll hours to PaySpace and match reponses from PaySpace to the transaction. This wil match the component's ID uploaded to PaySpace.
PaySlip ID: For Eco Time reference, but PaySpace internal use only.
Request ID: An inte
Sucess: A Yes if the upload was successful or a No if not. This is a response from PaySpace.
Error: If the upload was NOT successful, this reason field will be populated. This is a reason response from PaySpace.
Employee No: Eco Time's employee number. Stored for history of the original upload.
Payroll No: Eco Time's employee payroll number. Stored for history of the original upload.
First Name: Eco Time's employee first name. Stored for history of the original upload.
Surname: Eco Time's employee Surname. Stored for history of the original upload.
Component Code: Payrol code as configure in Eco Time's time category setup . Stored for history of the orrginal upload.
Input Type:The default is "Hours" but can be changed in the company's export settings form. Stored for history of the original upload.
Input Value: Totals payroll hours for the time category in decimal format. Stored for history of the original upload.
Cost Centre Code: PaySpace required field. Not supported by Eco Time. Stored for history of the original upload.
Activity Code: PaySpace required field. Not supported by Eco Time. Stored for history of the original upload.
Date Added: The date the payroll export was uploaded and a PaySpace response was received.
Date Updated: If the Payroll Export was regenerated, and uploaded, this date will be updated when a PaySpace response was received.
A web interface option is available. More information can be found here.
Generating and uploading of leave records
Leave Export
The API Client will generate the leave records to be uploaded by selecting the Generate Export button.
The export is generated from Eco Time's leave records from the last processed leave records' time stamp.
The Generate Export button can be used multiple times as it will clear the last generated export and recalculate the export from EcoTime's current leave records from the last leave time stamp as set on the settings tab.
Select the API button to upload the leave records export to PaySpace.
From Date: This is Eco Time's leave record's from date.
To Date: This is Eco Time's leave record's from date.
Employee No: Eco Time's employee number.
Payroll No: Eco Time's payroll number. Depending on the Identifier type selected in the settings tab, this can be Eco Time's payroll number or employee number.
Type Code: Payroll leave type code as configured in Eco Time's leave types setup .
Units Taken: Total leave days for the this leave record.
Units Capture: Total leave days for the this leave record.
Reason Code: Reason code for the this leave record.
Comment: Comment for the this leave record.
Reference No: An internal incremental reference no created by Eco Time, which is used to upload the leave records to PaySpace and match responses from PaySpace to the transaction. This will match the reference numbers uploaded to PaySpace.
A web interface option is available. More information can be found here.
Export History
Once the leave records have been uploaded to PaySpace, the PaySpace API will respond to each records uploaded.
The leave records uploaded and thePaySpace response is stored in the API's Leave Export History table.
From Date: This is Eco Time's leave record's from date.
To Date: This is Eco Time's leave record's from date.
Employee No: Eco Time's employee number.
Payroll No: Eco Time's payroll number. Depending on the Identifier type selected in the settings tab, this can be Eco Time's payroll number or employee number.
Type Code: Payroll leave type code as configured in Eco Time's leave types setup .
Units Taken: Total leave days for the this leave record.
Units Capture: Total leave days for the this leave record.
Reason Code: Reason code for the this leave record.
Comment: Comment for the this leave record.
Reference No: An internal incremental reference ID created by Eco Time, which is used to upload the payroll hours to PaySpace and match responses from PaySpace to the transaction.
Sucess: A Yes if the upload was successful or a No if not. This is a response from PaySpace.
Error: If the upload was NOT successful, this reason field will be populated. This is a reason response from v.
A web interface option is available. More information can be found here.
Importing leave records
Leave Import:
Select the API button to import the leave records from PaySpace.
The API button can be used multiple times as it will recollect the last 30 days of PaySpace leave records and merge them into Eco Time.
From Date: This is Eco Time's leave record's from date.
To Date: This is Eco Time's leave record's from date.
Employee No: Eco Time's employee number.
Payroll No: Eco Time's payroll number. Depending on the Identifier type selected in the settings tab, this can be Eco Time's payroll number or employee number.
Type Code: Payroll leave type code as configured in Eco Time's leave types setup .
Units Taken: Total leave days for the this leave record.
Units Capture: Total leave days for the this leave record.
Reason Code: Reason code for the this leave record.
Comment: Comment for the this leave record.
Reference No: An internal reference no created by PaySpace.
A web interface option is available. More information can be found here.
PaySpace in Eco Time Web
Important: The PaySpace Api client must be running at the same location as Eco's Web Server.
The webserver passes API requests to the API client, which in turn will process the request and send a response back to the webserver.
Payroll Options in the Web
When the PaySpace API is enabled in the Desktop Client settings tab, the PaySpace menu will become available in the web's Browse Menu.
Not all the API configuration settings is available in the web in an effort to keep the user experience streamlined. Use the desktop for to change advanced settings.
All changes made in the web are reflected in the desktop API and the other way around.
The settings tab allows the user to set the payroll run period and working company.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Employees Check in the Web
The employee check browse contains all the captured employees on the PaySpace system.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Updating Employees in the Web
The user can override the employee's match status. Select Exempt if you will not export this employee's hours to payroll and do not require a match to be performed in the future for this employee. Select OK to save your changes. Note: Not in Payroll cannot be set to exempt and must be excluded from the export with filter groups.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Payroll Companies in the Web
The payroll companies browse contains all the captured employees on the PaySpace system.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Updating Payroll Companies in the Web
The user may assign an Eco Time employee group. This employee group will used to limit the employees in Eco Time when generating export payroll hours and uploading these to PaySpace. This is an optional field.
Disabling the company will exclude all it and all its employees in Eco Time when generating export payroll hours and uploading these to PaySpace if this company is selected as the working company.
When enabled, the Export settings Tabs will override the payroll export codes and settings configured in Eco Time. This allows for different export settings for different payroll companies at one site.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Frequencies / Payroll Rules in the web
The Frequencies browse should contains all the captured frequencies / payroll rules on the PaySpace system and must be manually added.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Updating Frequencies / Payroll Rules in the web
The Frequencies update form allowed the employee group to be assinged or changed..
This mimics the behaviour and rules of the desktop interface which can be seen here.
Pay Run Periods in the Web
The Pay Run browse contains all the pay run periods setup in PaySpace.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Updating Pay Run Periods in the Web
This mimics the behaviour and rules of the desktop interface which can be seen here.
Payroll Export in the Web
The Payroll Export browse contains generated hours extract for the current selected pay run period which can be uploaded to PaySpace.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Note: The Generate and Upload button schedules that processes on a sperate thread for processing by the PaySpace API Desktop Client.
Press the refresh button to update the progress and values in the Payroll Export Browse.
Payroll Export History in the Web
The hours uploaded and the PaySpace response is stored in the API's Export History table and displayed in this browse.
This mimics the behaviour and rules of the desktop interface which can be seen here.
Leave Export in the web
The Leave Export browse contains generated leave records which can be uploaded to PaySpace.
This mimics the behaviour and rules of the desktop interface which can be found here.
Note: The Generate and Upload button schedules that processes on a separate thread for processing by the PaySpace API Desktop Client.
Leave Export History in the Web
The leave records uploaded and the PaySpace response is stored in the API's Leave Export History table and displayed in this browse.
This mimics the behaviour and rules of the desktop interface which can be found here.
Importing leave records in the Web
The imported leave records, and the PaySpace references are stored in the API's Leave Import table and displayed in this browse.
This mimics the behaviour and rules of the desktop interface which can be can be found here.
Manually Triggering the API
An API call can be manually triggered at any time by pressing the API button at the bottom of each browse.
An API call triggered will depend on the current tab selected (eg Events).
All manually triggered API calls are not automated. This means the API Client Request Window will open and you would manually have to press the Res (Get) button. Afterwards press the close button to exit the API call.
API Client Request Window Request:
API Client Request Window Response:
The API Status message at the bottom left of the browse will be updated with the current action or process.
Manually triggering an API is used during the configuration and setting up phase of the API.
It is also very helpful when doing fault finding. See the FAQ for more details about this.
Timed API Events
Timed events are automated events trigger either by time or an interval duration, in other words automated API calls.
During timed events the API Client Request Window is hidden but the API status message is updated.
There are three timed events:
The API is authenticated with every timed event.
The employees list is synced twice a day. Once at 1am and once at 1pm.
The Frequencies list is synced twice a day. Once at 1am and once at 1pm.
The Pay Run list is synced twice a day. Once at 1am and once at 1pm.
Timed events can be disabled be selecting the "Stop timed events" check box on the PaySpace API Window.
API Logs
The logs browse displays general information about the API requests, responses and processes.
The log display information about:
Details about the API event.
If the API event was processed or rejected. If rejected, it provides a reason.
When manual or timed API events were triggered.
FAQ
In which Eco Time version is this feature available?
From version 2024.07.20 onwards.
What information must the customer provide to setup the API?
Client ID
Client Secret
The Eco Time employee group for who the payroll hours will be uploaded to PaySpace.
What process must the customer follow on a regular basis before payroll?
The match discrepancies in the employee browse must be resolved on a regular basis .
What process must the customer follow to upload payroll hours?
Important: The match discrepancies in the employee browse must be resolved.
Select the correct Pay Run Period.
Generate Export.
Upload Payroll Hours.
I want to supress some of Eco Time Time Categories being exported.
You can supress the time category from being exported in the API by disabling the applicable time category's "Export to Payroll" setting in Eco Time.
Some of the component codes (payroll codes) are incorrect. Where can these be changed?
You can change the component code exported by the API by changing the applicable time category's "Payroll Code" setting in Eco Time.
What is a Pay Run or Pay Run period.
This is the terminology used by Pay Space indicating their pay period start and end date. Eco Time must update each pay run to indicate the payroll end date in Eco Time that matches each pay run.
My Pay Run API upload returns a large number of invalid component code errors.
The component codes are linked to a frequency. Refer to the Component Codes' browse to verify that the Pay Run frequency matches that of the component code's frequency. It is most likely that the Pay Run frequency is set incorrectly in PaySpace and now does not include the correct component code group.
I am trying to assign or select a pay run, but my pay run period is not in the lookup.
Pay runs will only be available in the lookup if an Eco Time payroll date has been allocated. Select the Pay Runs browse and update the applicable pay run.
What is an unverified employee.
This is an employee which was added to the employee browse from the PaySpace system in the past, but in more recently compares between this list and the PaySpace system, the employee was not found in the PaySpace system anymore.
This typically happens if an employee is removed from the PaySpace system or allocated a new PaySpace employee record.
I am manually trying to use the API to populate the Pay Runs table, but the API windows does not appear.
The Frequencies table must be populated first. The Pay Runs API will not run if there are no entries in this browse.
What is an authentication token?
An authentication token is a digital credential used to verify the identity of a user, application, or device trying to access a system, service, or resource. It is often generated after successful authentication and can be used to maintain a session or grant access to specific resources without needing to re-authenticate repeatedly.
The token expires after 2 hours, requiring the authentication API to be run again to obtain a new token. If the token has expired, any API call wil be retun an Invalid Token or Unauthorised error.
Do I have to request an API Server URL and Authentication Server URL for customer?
No. PaySpace's URLs are the same for all customers. The default URLs provided will be correct. NOTE: The Production and QAS URLs are different - but provided as defaults for each mode.
How can the API Client Request Window be used for fault finding?
This window displays the request link in the server fields. You can use his value to determine if the correct link is being used during the call.
Consider selecting the "Do Not Process Response" disables any results processing. No tables will be populated. This is typically used for faulty finding and is used in cases where you want to inspect the request packet and result packet.
The PaySpace API Server response is displayed in the response window's text field. This response is the raw unprocessed data from the PaySpace API Server and represents the true data transmitted and received by the API Client.
The response packet is json and is unformatted (one long string) and is in the body of the response. Copy this body to your clipboard and use an online formatter like https://jsonformatter.org/ to make the response easier to read.
By inspecting the raw formatted json response, you can validate the values eventually stored in Eco Time and the PaySpace API Client.
What is the difference when setting the employee group at company and frequency / payroll rule level?
Setting the employee group at the company level will limit the API's employee import and verification to this specific Eco Time group. This is useful in cases where a company has staff, such as executives, recorded in Eco Time, but they do not use time and attendance clocks. In this scenario, you can create and assign an employee group called "Time and Attendance" to the applicable employees. By updating the API's company employee group to this, executives will be excluded from the API processing.
You can assign an Eco Time employee group to each frequency or payroll rule. If the frequency or payroll rule applies to wages staff, you could assign the employee group for wage employees to that frequency. Typically, you would assign an employee group to a frequency or payroll rule to separate wages, salaried, and casual employees when selecting the applicable payroll run to upload employee times. Only the employees' times in this group will be uploaded to payroll, first filtered by the company employee group, and then by this specific employee group.
What is it important to assign the correct Eco Time employee group to the frequency / payroll rule level?
In PaySpace, the Payroll Run Periods are created for each frequency or payroll rule, such as wages and salaries.
Assigning the incorrect employee group to the applicable frequency or payroll rule could result in salaried employees' time being uploaded to a payroll run meant for wages. Since wage and salaried payroll runs have different component codes (pay codes), employees not belonging to the applicable pay run will trigger an error: "Invalid Component Code."
The Desktop Server API Settings has an API Mode selection option for Production or QAS. What is the difference between the two modes?
PaySpace offers a default option (upon request) to create a duplicate of the customer's live data on their staging (QAS) server. This data will be accessible when the API's QAS option is selected and the settings are configured accordingly.
The two modes allow the user to have two different settings for testing and live, and removes the requirement to change settings continuously if the user toggles between the testing and the live system.
QAS is for Testing the PaySpace system and Production for the current live PaySpace system.
Not all the leave records are imported into Eco Time
This typically occurs when no matching leave import payroll code is found in Eco Time.
For more information about the error, please refer to the Leave Import Notes column in the API.
Leave records with the same employee number, start date, and leave type are not imported, as they are considered duplicates. Please refer to the Leave Import Notes column in the API.
Only import leave records with a status of Approved are imported into Eco Time.
If an existing Approved leave record that was previously imported is later changed to Declined, the corresponding leave entry in Eco Time will be removed.
Run the API application by clicking on the Eco PaySpace API shortcut on the desktop or running the application called PaySpaceAPI32 or PaySpaceAPIMs.
Please Note that the "Stop timed events" check box is enabled by default on a new API installation. There is no point running timed events until the configuration has been completed.
Select the API button on the bottom right. This will open the API Client window.
If the response is very short, then there are the following possible errors:
Select the change button on the companies browse opens the companies update form above.

Allows users to configure an Eco Time payroll leave type based on a combination of the imported Leave Bucket, Leave Type, and Leave Reason values's imported leave records, the specified action and leave code will be applied to the matching records during the current import.By default, the leave import will lookup the Eco Time leave type's payroll name, if it the leave import does not find a matching Payroll name rule.

Select the "Get Employees" option by clicking on this item.The api employee table contains all the captured employees on the PaySpace system
The following api employees table fields will be populated
Select the change button on the Employees browse opened the employe update form above.
The user can override the employee's match status. Select Exempt if you will not export this employees hours to payroll and do not require a match to be performed in the future for this employee. Select OK to save your changes. Note: Not in Payroll cannot be set to exempt and must be excluded from the export with filter groups.
A web interface option is available. More information can be found here.
The api Pay Runs table contains all the payroll periods setup in PaySpace.
The following apipayrollruns table fields will be populated
Select the change button on the companies browse opens the update companies form above.
The user MUST assign an Eco Time payroll hours date to a PayRun record. The PaySpace API uses this date to generate a payroll export hours and display history for the selected payroll run period. If this date is NOT SET, no hours will be generated or uploaded.
A web interface option is available. More information can be found here.
The API Client will generate the payroll hours to be uploaded by selecting the Generate Export button.
The export is generated form Eco Time's payroll hours for the selected pay run's payroll date.
The Generate Export button can be used multiple times as it will clear the last generated export and recalculate the export from EcoTiem's current payroll hours.
Select the API button to upload the Export Hours to PaySpace.
Once the payroll export has been uploaded to PaySpace, the PaySpace will respond to each component uploaded.
The hours uploaded and the PaySpace response is stored in the API's Export History table.
Note: You will on see the export history for the current selected payroll run period. To see previous payroll run's history, select the appropriate payroll run period from the settings tab.
The API Client will generate the leave records to be uploaded by selecting the Generate Export button.
The export is generated from Eco Time's leave records from the last processed leave records' time stamp.
The Generate Export button can be used multiple times as it will clear the last generated export and recalculate the export from EcoTime's current leave records from the last leave time stamp as set on the settings tab.
Select the API button to upload the leave records export to PaySpace.
Once the leave records have been uploaded to PaySpace, the PaySpace API will respond to each records uploaded.
The leave records uploaded and thePaySpace response is stored in the API's Leave Export History table.
Select the API button to import the leave records from PaySpace.
The API button can be used multiple times as it will recollect the last 30 days of PaySpace leave records and merge them into Eco Time.
Important: The PaySpace Api client must be running at the same location as Eco's Web Server.
The webserver passes API requests to the API client, which in turn will process the request and send a response back to the webserver.
From version 2024.07.20 onwards.
You can supress the time category from being exported in the API by disabling the applicable time category's "Export to Payroll" setting in Eco Time.
You can change the component code exported by the API by changing the applicable time category's "Payroll Code" setting in Eco Time.
This is the terminology used by Pay Space indicating their pay period start and end date. Eco Time must update each pay run to indicate the payroll end date in Eco Time that matches each pay run.
The component codes are linked to a frequency. Refer to the Component Codes' browse to verify that the Pay Run frequency matches that of the component code's frequency. It is most likely that the Pay Run frequency is set incorrectly in PaySpace and now does not include the correct component code group.
Pay runs will only be available in the lookup if an Eco Time payroll date has been allocated. Select the Pay Runs browse and update the applicable pay run.
This is an employee which was added to the employee browse from the PaySpace system in the past, but in more recently compares between this list and the PaySpace system, the employee was not found in the PaySpace system anymore.
This typically happens if an employee is removed from the PaySpace system or allocated a new PaySpace employee record.
The Frequencies table must be populated first. The Pay Runs API will not run if there are no entries in this browse.
An authentication token is a digital credential used to verify the identity of a user, application, or device trying to access a system, service, or resource. It is often generated after successful authentication and can be used to maintain a session or grant access to specific resources without needing to re-authenticate repeatedly.
The token expires after 2 hours, requiring the authentication API to be run again to obtain a new token. If the token has expired, any API call wil be retun an Invalid Token or Unauthorised error.
No. PaySpace's URLs are the same for all customers. The default URLs provided will be correct. NOTE: The Production and QAS URLs are different - but provided as defaults for each mode.
The tutorial can be found here: Creating API credentials for integration