Skip to main content

External time-clock (PDKS) integration: connecting card readers and turnstiles, employee matching, conflict settings and entry/exit records

Explains how to connect Patron PDKS, another PDKS vendor through the Teamso PDKS API (Generic), or a ZKTeco compatible card reader or turnstile directly, on the PDKS Settings tab of Timesheet Settings; how to match employees, set discrepancy tolerances…

This article explains how to bring the entry and exit data of your workplace's card reader or fingerprint terminal (an external PDKS, the Turkish term for a time and attendance system) into the Teamso timesheet. The settings are on the PDKS Settings tab of Configuration > Timesheets > Settings. There are three ways to connect:

  • Patron PDKS: Teamso itself fetches the employee list and the entries and exits from your Patron PDKS account every night. Shifts you share are also sent to Patron.

  • Teamso PDKS API (Generic): Another PDKS vendor sends entry and exit records to Teamso with an API key you create.

  • Card readers: The ZKTeco compatible card reader or turnstile at the door sends its punches straight to Teamso over the internet. You do not need software from the vendor. Devices are listed under the Teamso PDKS API (Generic) connection and can be used together with API keys.

A company can use only one external connection at a time: Patron PDKS, or the Teamso PDKS API (Generic) with card readers. This screen is separate from Teamso's own QR check-in module (PDKS).

People with the View/Edit timesheet settings permission see and change this screen. The Employee Matching list is shown with the same permission. Permissions are granted on the Configuration > Timesheets > Responsibilities screen (Manage Permissions).

Before you start

  • For Patron PDKS, get the API Key (Token) and Company ID values from the Patron PDKS panel. They are on the Integration & API → Settings → API Key page of the Patron panel.

  • Patron employees are matched to Teamso employees by mobile phone number. Employees' phone numbers in Teamso must be the same as in Patron.

  • Teamso PDKS API (Generic) records are matched to employees by National ID. Employees' National ID must be filled in Teamso.

  • Card readers send each punch with the user number on the device. When that number equals the employee's registration number in Teamso, the match is automatic; otherwise you tie the number to the employee once by hand. Have the device's serial number and the admin password of the device menu ready. The device must be connected to the internet.

  • For the timesheet to use PDKS hours, you need the Employee-Based Settings (Setting up the timesheet).

Step by step

Connecting Patron PDKS

  1. In the left menu, go to Configuration > Timesheets > Settings and open the PDKS Settings tab. The integration section is selected in the list on the left.

    PDKS Settings tab, Patron PDKS connection form
  2. In the PDKS field, select Patron PDKS.

  3. Paste the values you copied from the Patron PDKS panel into the API Key and Company ID fields. The ⓘ icon next to each field shows where the value is in the Patron panel.

  4. Click Connect. Teamso tries to connect to Patron with the details you entered. If they are wrong, the warning "PDKS connection could not be established. The API Key or Company ID you entered is invalid..." appears and nothing is saved.

  5. Once connected, the screen switches to Employee Matching. The employee list in Patron is fetched and matched right away. Connection History shows who connected and when. While a connection is active, the PDKS field is locked.

    Connected Patron PDKS, Connection History
  6. To disconnect, click Remove Connection and confirm with Yes, Remove Connection. Employee matchings are deleted. Entries and exits transferred so far are kept; no new records arrive.

Connecting another vendor with the Teamso PDKS API (Generic)

  1. On the PDKS Settings tab, select Teamso PDKS API (Generic) in the PDKS field. Send is selected under Integration Mode: your PDKS vendor sends the records to Teamso. The Fetch option shows Coming soon for now.

    Teamso PDKS API (Generic): API keys and endpoints
  2. In the API Keys section, type the vendor's name in the label field and click Generate Key.

  3. The new key is shown only once and disappears from the screen after two minutes. Copy it with the copy icon and pass it to your vendor securely. The list shows only the first characters of each key.

  4. Give your vendor the Base URL, the X-Teamso-Api-Key header and the Sample Request from the Endpoints & Sample Usage section. The vendor sends entry and exit records with POST /transitions. Each record must contain the employee's National ID (identityNumber), the time and the direction (in for entry, out for exit).

  5. When you create the first key, the integration becomes active and "Teamso PDKS API integration is active" appears. To stop a key, click the bin icon next to it (Revoke key). A revoked key stays in the list with the Revoked tag; remove it with × (Remove permanently from list). To revoke all keys at once, use Remove Connection.

With this connection, matching is done automatically by National ID, so the Employee Matching section is not shown.

Connecting a card reader or turnstile directly (ZKTeco compatible)

The first version supports ZKTeco compatible card, face and fingerprint terminals and turnstiles whose menu has a Cloud server setting (ADMS on some models). Other brands show Coming soon in the wizard.

  1. On the PDKS Settings tab, open Card readers in the list on the left. The Do you have a card reader or turnstile? card in the PDKS Integration section also brings you here.

    Card readers: device list and status
  2. Click Connect a device. The wizard asks one question: Which device do you use? Select ZKTeco compatible and click Continue.

  3. Type the device's serial number in Serial number. It is on the label at the back of the device or on Menu > System info > Device info on the device. Optionally give a Device name such as "Main entrance turnstile" and click Add the device.

  4. The wizard shows what to type into the device. On the device, open Menu > Comm. > Cloud server setting and enter:

    • Server mode: ADMS

    • Enable domain name: On

    • Server address: The address in the wizard (api.teamso.com)

    • Server port: The port in the wizard (443)

    • HTTPS: On

    • Proxy server: Off

    • Comm Key: If present, the six digit Device key from the wizard

    Use the copy icon next to the address, the port and the key to copy the value. The key is shown only on this screen; if you lose it, get a New key from the menu of the device row.

    Connect a device wizard: what to type into the device and the connection status
  5. Save the settings on the device. The status at the top of the wizard changes by itself: first Waiting for the device, then The device reached Teamso when the device calls (now scan a card), and Connected when the first punch arrives. The Connected card shows the scanned number, the time and the matched employee. Close the window with Done.

  6. The list shows each device's status: Connected, Silent (no contact from the device for the time you set) or Waiting for the device (the device has never called). The row shows the serial number, the place, the last contact and the last punch.

  7. From the menu at the end of the row:

    • Setup details: the address and port to type into the device (the key is not shown).

    • Edit: name, place, How are check-in and check-out told apart? and Tell me after how long without contact? (2 hours by default).

    • New key: the old key stops working; type the new one into the device.

    • Remove the device: the punches it sent stay in the timesheet; new punches from the device are refused. You can add the same device again later.

The options of How are check-in and check-out told apart?:

Option

What happens

By the device's in and out keys (in turn when it has none)

The default. When employees press the check-in or check-out key on the device, that is followed. When the device does not use the keys, punches count as check-in and check-out in turn.

Each punch in turn: check-in, then check-out

When the person's last punch in the past 16 hours is a check-in, the new punch is a check-out, otherwise a check-in. A second punch within a minute keeps the same direction and the timesheet drops it as a repeat.

This device only reads check-ins / This device only reads check-outs

For turnstiles with a reader on each side: add each reader as its own device and choose check-in for one, check-out for the other.

Device key: once the device has sent its key, Teamso refuses requests from that device without it. A device without a Comm Key field is known by its serial number only; a serial number belongs to one device in Teamso. After five tries with a wrong key, the device is locked for 15 minutes and the list says so.

Punches waiting for an employee (card readers)

  1. In Card readers, open the Waiting for an employee tab. The "... waiting for an employee" link on a device row also brings you here. Punches whose card or device number matches no employee's registration number are listed one row per number, with the number of punches, the first and last punch and the device name.

    Punches waiting for an employee and numbers matched by hand
  2. Find the employee in Choose an employee on the row (search by name or registration number) and click Match. The waiting punches of that number are written to the timesheet retroactively; later punches match on their own.

  3. For a number that belongs to nobody, such as a visitor or test card, click Ignore and confirm. Its waiting punches are not written to the timesheet.

  4. Numbers matched by hand lists the numbers you tied. Remove a tie with × (Remove the match): punches already written stay in the timesheet, new punches of that number wait again.

When you enter an employee's registration number in Teamso later, the waiting punches are written by themselves within ten minutes.

Moving from biometrics to card, PIN or QR

The Moving off biometrics tab in Card readers gives short steps, a ready privacy notice and an announcement template for workplaces that want to stop using fingerprints and face recognition. Copy a text with Copy and fill in the parts in square brackets (company name, date, contact address) for your company. Decide together with your legal adviser.

Moving off biometrics: steps, privacy notice and announcement template
  1. Hand out cards or give each employee a PIN. When you set the user number on the device to the registration number, punches match on their own.

  2. Set the verification type on the device to Card or PIN.

  3. Delete the stored fingerprint and face templates from the device and note the date.

  4. For employees with a phone, you can turn on QR scanning with Teamso PDKS (PDKS).

  5. Send the privacy notice and the announcement to your employees.

Matching employees (Patron PDKS)

  1. Open Employee Matching in the list on the left. When the screen opens, the employee list in Patron is fetched again and matched by phone number. The Matched and Unmatched cards at the top show the counts. The Unmatched card appears only if someone is unmatched.

    Employee Matching, Matched list
  2. In the Matched list, each row shows the Teamso employee next to the person in PDKS, with the Connected tag. On a row matched by hand because the phone numbers differ, a × (Disconnect Match) appears in the corner. It opens the Remove Match Connection confirmation. If you confirm, records transferred so far are kept; this person's new records are not transferred until you match them again.

  3. Click the Unmatched card. Unmatched Teamso Employees are listed on the left; on the right, PDKS Employees with no counterpart in Teamso, or whose phone number belongs to more than one Teamso employee. Drag a Teamso employee onto the PDKS person on the right, or click both one after the other. The message "Employee matched successfully." appears.

    Matching unmatched employees by hand
  4. If you added employees in Patron or corrected a phone number in Teamso, click Sync Data. The list is fetched again; matches you made by hand are kept.

Entries and exits already transferred for the matched person are also linked to the Teamso employee. Manual matching does not change the Teamso employee's phone number; the match row shows the number stored in Teamso. Records of an unmatched person do not reach the timesheet.

Dispute Settings

  1. Open Dispute Settings in the list on the left. The fields become available once a PDKS connection is set up; before that they are greyed out.

    Dispute Settings
  2. Work entry and exit tolerance: enter ± minutes (0–1440). Early or late entries and exits this close to the shift start and end are not counted as discrepancies in the timesheet. The default is 5 minutes; 0 means no tolerance.

  3. Long break outside filter: enter minutes (1–1440). Time spent outside at or above this duration is not included in the break calculation. Leave the field empty (Off) to apply no filter; then all time spent outside counts as break.

  4. Save in the bar at the bottom saves both settings together; Discard changes undoes unsaved changes. Leaving the page with unsaved changes asks for confirmation first.

  5. These settings are kept on the company's PDKS settings record. Without one (possible for companies connected with an older PDKS API key) the fields stay grey and a note at the top says so: save the integration once in the PDKS Integration section. Until then the timesheet applies a 5 minute tolerance and the filter is off.

Entry & Exit Info

  1. Open Entry & Exit Info in the list on the left. All records coming from PDKS are listed, newest first.

    Entry & Exit Info
  2. The records are in one list card. Type a person's name in the Search by employee name box; narrow the list with the In / Out, Source and Status chips (the × on a chip removes that filter, Clear all removes them all). With Sort, or by clicking a column header, you order the list by Employee, Date, In / Out, Source or Status, ascending or descending, or remove the sorting; with no sort the newest movement comes first. Use the pager at the bottom of the card to reach the other records. The search, filters, sort and page stay in the address. On a narrow screen the list turns into cards.

  3. The Source column shows the connection the record came from: Patron PDKS, PDKS API or Card reader. For a person who is not matched in Teamso, the record shows their name in PDKS or, if there is none, their partly masked ID No.

  4. The Status column shows how the record is used in the timesheet:

Status

Meaning

Calculated

The entry and exit were paired; the time in between was counted as working time.

Filtered

Not counted: a repeated scan in the same direction within 5 minutes, a second entry after an open entry, or an entry and exit less than 1 minute apart.

Incomplete

An entry or exit without a pair, or an entry-exit span longer than 24 hours. It is not counted as working time.

Long Session

More than 16 hours (less than 24 hours) between entry and exit; check it.

An entry that passes midnight is paired with the first exit of the next day.

Result

  • Patron PDKS: Every night at 03:00, the employee list in Patron and the entries and exits from the first day of the month to yesterday are fetched. If Patron cannot be reached, the transfer is tried at most three times in all, 10 minutes apart. So today's scans appear the next morning, and the records of the day you connect arrive on the first night. Sync Data refreshes only the employee list; it does not fetch entries and exits.

  • Teamso PDKS API (Generic): Records sent by the vendor are processed immediately and appear in Entry & Exit Info. A record sent a second time with the same record ID (externalEntryId) is skipped.

  • Card readers: The device sends a punch within seconds; it is processed right away and appears in Entry & Exit Info with the Card reader source. The timesheet uses these records with the same rules as other external records (tolerance, long time outside, matching). When the device sends the same punch again (it does after a lost connection), no duplicate is created. On its first connection the device also sends the old punches in its memory: punches from the 31 days before the day you added the device are written to the timesheet; older ones are kept but not written. Punches more than 24 hours ahead of the real time are not written either; check the device clock.

  • Reaching the timesheet: Every night at 05:00, past days are filled from entries and exits for employees whose Actual Hours Source is Working Hours Transferred from PDKS and who have Auto-Fill Actual Hour on. Days entered by hand are left alone (Setting up the timesheet, Managing the timesheet list).

  • Hours source: When the Patron connection is set up, the Actual Hours Source of every employee with employee-based settings, and later of each employee you match by hand, is set to Working Hours Transferred from PDKS. If you use the Teamso PDKS API (Generic), the integration is switched on when you create the first API key or add the first card reader, and the same setting is applied; for employees added later, check the Employee-Based Settings tab.

  • Sending shifts (Patron only): When you share a shift in Time and attendance > Shift schedule with Share, or in bulk with Actions > Share, the shared shifts and the approved leaves on those dates are sent to Patron PDKS in the background as a weekly plan (Planning and sharing shifts). There is no separate result window for this. If sending fails, the shift sharing is not undone. Shifts of employees without a phone number are not sent. With the Teamso PDKS API (Generic) connection, shifts are not sent.

  • Notifications (card readers): Teamso checks the devices every ten minutes. A device that has not called for the time you set shows Silent in the list, and the company admins and the people with View/Edit Timesheet Settings or PDKS Admin get a Device silent notification. It is sent once per silence; when the device calls again the count starts over. When punches are waiting for an employee, the same people get a Punches waiting for an employee notification at most once a day, only when new punches arrived, between 08:00 and 20:00. Clicking the notification opens Card readers. These notifications can be turned off in the PDKS group of Notification Settings.

  • Other than these, no e-mail or notification is sent for the actions on this screen.

Common problems

Symptom: "PDKS connection could not be established. The API Key or Company ID you entered is invalid..." warning.
​Cause: The API Key or Company ID was copied wrongly or incompletely.
​Solution: Copy the values again from the API Key page of the Patron PDKS panel.

Symptom: The PDKS field is locked with "Only one integration can be used at a time".
​Cause: The other kind of connection is active.
​Solution: When moving away from Patron, use Remove Connection first. When moving away from the Teamso PDKS API (Generic), revoke all API keys and remove the devices in Card readers.

Symptom: Card readers says "A device cannot be added while Patron PDKS is connected" and Connect a device is grey.
​Cause: Patron PDKS is connected; a company has one external connection at a time.
​Solution: Remove the Patron connection in the PDKS Integration section first.

Symptom: The device stays Waiting for the device and the wizard says Waiting for the device.
​Cause: The server address, port or HTTPS setting on the device is wrong, the device has no internet connection, or the serial number was typed wrongly.
​Solution: Compare the cloud server settings on the device with Setup details and check that the device reaches the internet. If the serial number is wrong, remove the device and add it again with the right number. If your device has no HTTPS option, contact Teamso support.

Symptom: The device shows Silent.
​Cause: The device is off, its internet connection dropped or a setting on the device changed.
​Solution: Check that the device is on and connected. While offline the device keeps the punches in its memory and sends them when the connection is back; no record is lost.

Symptom: The row says "Locked for 15 minutes after wrong keys".
​Cause: An old or wrong key was typed into the device or into a network device in between.
​Solution: Get a New key from the row menu and type it into the device's Comm Key field.

Symptom: Punches stay in Waiting for an employee.
​Cause: The user number on the device differs from the employee's registration number in Teamso, or the same registration number belongs to more than one employee.
​Solution: Tie the number to the employee with Match, or correct the employee's registration number.

Symptom: Employee Matching, Dispute Settings and Entry & Exit Info are greyed out.
​Cause: No PDKS connection has been set up yet.
​Solution: Set up the connection in the integration section first.

Symptom: An employee stays in the Unmatched list.
​Cause: The phone number differs or is missing in Teamso or Patron, or the same number belongs to more than one Teamso employee.
​Solution: Correct the number and click Sync Data, or match the person by hand.

Symptom: Entries and exits are in the list but do not reach the timesheet.
​Cause: The employee's Actual Hours Source is Planned Working Hours, Auto-Fill Actual Hour is off, the record is Incomplete, or the person is not matched.
​Solution: Fix the Employee-Based Settings, complete the missing scan by hand in the timesheet, and match the person.

Symptom: A Teamso PDKS API (Generic) record shows a partly masked ID No instead of a name.
​Cause: The National ID sent did not match any employee in Teamso.
​Solution: Check the employee's National ID in Teamso and make sure the vendor sends the correct number.

Related articles

Did this answer your question?