Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languagede


Info
titleKompatibilität

Diese Funktion ist nur für Kunden mit aktivierter Zeiterfassung V3 verfügbar.

Kunden mit der bisherigen Zeiterfassung nutzen bitte weiterhin die Funktion get_timerecording.asp


Gibt alle empfangenen Zeiterfassungsbuchungen des abgefragten Zeitraumes zurück. Der Zeitraum kann dabei entweder nach Eingang der Buchungen oder gebuchter Zeit gewählt werden.

Falls die Zeiterfassungsbuchungen aus den Digitacho Dateien erstellt werden ist zu beachten, das es zu Verzögerungen kommt. Es muss erst die jeweilige Datei vom Fahrzeug heruntergeladen werden und danach noch exportiert werden. Dies kann zu mehreren Stunden, eventuell sogar Tagen, Verzögerung führen. Deshalb wird auch standardmäßig das Verarbeitungsdatum verwendet, damit ein chronologischer Datenabruf ohne Lücken oder Dopplungen möglich ist.

Beschreibung

get_timerecording.php?output=bookingslist&company=COMPANY_RTIKEY&import=COMPANY_IMPORTKEY&begin=YYYYMMDDHHMMSS&end=YYYYMMDDHHMMSS&format=CSV&version=1&date_query=insert

Parameter

Parameter

Beschreibung

Typ

Hinweis

Pflicht

companyRTI Firmenschlüsselstring ja
importRTI Importschlüsselstring ja
beginStartzeitpunkt der Ausgabestringder Ausgabezeitraum darf maximal 31 Tage umfassenja
endEndzeitpunkt der Ausgabestringder Ausgabezeitraum darf maximal 31 Tage umfassenja
formatAusgabeformatstring

zulässige Ausgabeformate

  • CSV
  • JSON
  • XML
ja
versionVersionsnummer der Abfrageinteger

aktuell ist Version 1

sollte sich das Ausgabeformat ändern wird jeweils eine neue Versionsnummer vergeben

nein
date_queryWelches Datum bildet die Grundlage für die Zeitraumeingrenzungstring

'insert' (Standard) = Verarbeitungsdatum

'gps' = Datum an dem die Zeitbuchung stattgefunden hat

nein

Rückgabewerte

Es wird ein string zurückgegeben. Im Fehlerfall wird "ERROR:Beschreibung".

JSON Format

Gibt einen JSON Formatierten Text zurück mit den angegebenen Details zu jeder Buchung.

Beispiel Ausgabe

Code Block
languagejs
titleJSON Ausgabe
[
    {
        "person": {
            "id": "A23",
            "key": "DF00000001234",
            "name": "Max Mustermann",
            "card_nr": null
        },
        "datetime": "2019-04-01 05:26:00",
        "activity": {
            "id": "1003",
            "name": "Arbeitszeit"
        },
        "terminal": "DD-YF 456",
        "position": {
            "lat": 51.4,
            "lon": 13.1,
            "address": "Am Wüsteberg 3, 01723 Kesselsdorf"
        },
        "area": null,
        "costcenter": {
            "id": null,
            "name": null
        }
    },
    {
        "person": {
            "id": "A23",
            "key": "DF00000001234",
            "name": "Max Mustermann",
            "card_nr": null
        },
        "datetime": "2019-04-01 12:35:00",
        "activity": {
            "id": "1001",
            "name": "Pause"
        },
        "terminal": "Büro",
        "position": {
            "lat": 52.0,
            "lon": 11.9,
            "address": "Am Wüsteberg 3, 01723 Kesselsdorf"
        },
        "area": null,
        "costcenter": {
            "id": "K-47",
            "name": "allgemeines"
        }
    }


XML Format

Code Block
languagexml
titleXML Ausgabe
<?xml version="1.0"?>
<bookings>
    <booking>
        <person>
            <id/>
            <key>DF00000001234</key>
            <name>Max Mustermann</name>
            <card_nr/>
        </person>
        <datetime>2019-04-01 05:26:00</datetime>
        <activity>
            <id>1003</id>
            <name>Arbeitszeit</name>
        </activity>
        <terminal>DD-YF 456</terminal>
        <position>
            <lat>51.0</lat>
            <lon>13.1</lon>
            <address>Am Wüsteberg 3, 01723 Kesselsdorf</address>
        </position>
        <area/>
        <costcenter>
            <id/>
            <name/>
        </costcenter>
    </booking>
    <booking>
        <person>
            <id/>
            <key>DF00000001234</key>
            <name>Max Mustermann</name>
            <card_nr/>
        </person>
        <datetime>2019-04-01 12:35:00</datetime>
        <activity>
            <id>1001</id>
            <name>Pause</name>
        </activity>
        <terminal>Büro</terminal>
        <position>
            <lat>52.3</lat>
            <lon>11.09</lon>
            <address>Am Wüsteberg 3, 01723 Kesselsdorf</address>
        </position>
        <area/>
        <costcenter>
            <id>K-47</id>
            <name>allgemeines</name
        </costcenter>
    </booking>
</bookings>


CSV Format

Das CSV Format enthält eine Zeile pro Buchung mit allen jeweils vorhandenen Informationen.

Metainformationen


TrennzeichenSemikolon ( ; )
TextbegrenzerDoppeltes Hochkomma ( " )
Zeilenende0x0D 0x0A (CarriageReturn LineFeed)
HeaderZeile 1
KodierungWindows-1252

CSV Spalten

Spalte

Beschreibung


 
PERSON_IDSelbstdefinierte Ident der Person. Im Portal Hinterlegbar als MA-Nr
PERSON_KEYSelbstdefinierter Buchungsschlüssel der Person
PERSON_NAMEName der Person
PERSON_CARD_NRSelbstdefinierbarer Buchungsschlüssel, im Portal einstellbar als Card Nr

DATETIME

Zeitpunkt der BuchungFormat: TT.MM.JJJJ HH:MM:SS
ACTIVITY_ID

Technischer Ident einer Buchung, im Portal zur Tätigkeit hinterlegbar


ACTIVITY_NAME

Beschreibungstext, welcher für diese Buchung hinterlegt wurde


TERMINALBezeichner des Buchungsterminalstypischerweise das hinterlegte Fahrzeugkennzeichen
LATWenn vorhanden, Latitude zur Positionierung
LONWenn vorhanden Longitude zur Positionierung
ADDRESSAufgelöster Positionstext 
AREA

Gebiete, welche für diese Position festgelegt wurden

Trennzeichen: "%|%" 

COST_CENTER_IDtechnischer Ident zur identifikation einer gesetzten Kostenstelle 
COST_CENTER_NAMEName einer gesetzten Kostenstelle 

Beispiel Ausgabe

"PERSON_ID";"PERSON_KEY";"PERSON_NAME";"PERSON_CARD_NR";"DATETIME";"ACTIVITY_ID";"ACTIVITY_NAME";"TERMINAL";"LAT";"LON;""ADDRESS";"AREA";"COST_CENTER_ID";"COST_CENTER_NAME"
"A23";"DF000000000123";"Max Mustermann";"";"01.10.2019 08:00:00";"1023";"Arbeit";"DD-YF 123";"51.4";"13.1";"Musterstraße 17, 01234 Musterstadt";"Hauptzentrale";"K-47";"allgem. Arbeiten"
"A23";"DF000000000123";"Max Mustermann";"";"01.10.2019 12:00:00";"1024";"Pause";"DD-YF 123";"52.0";"11.3";"Testweg 23, 91234 Testhausen";"Müller GmbH";"";""

 Beispiele


Abruf der Buchungen mit Geokoordinaten


Sv translation
languageen


Info
titleCompatibility

This function is intended to be used with timerecording V3

If you are using the older V2 version, please use get_timerecording.asp

Returns all received timerecording bookings for the requested time range. This range may refer to the processing time in our computing center or to the booked date and time.

In case you are using bookings based on digitacho files, there is a delay of multiple hours between the booked time and when this booking is available via rti. The digitacho files with all bookings per (work) day are typically submitted at the next work day. Then this digitacho bookings will be translated into time bookings and are available after this is done. So working with digitacho bookings requires to use the insert date to get catch all bookings without a gap.

Description

get_timerecording.php?output=bookingslist&company=COMPANY_RTIKEY&import=COMPANY_IMPORTKEY&begin=YYYYMMDDHHMMSS&end=YYYYMMDDHHMMSS&format=CSV&version=1&date_query=insert

Parameter

ParameterDescriptionTypeHintMandatory
companyRTI company keystring
yes
importRTI import keystring
yes
beginstart time for outputstringthe difference between start and end must not ecxeed 31 daysyes
endend time for outputstringthe difference between start and end must not ecxeed 31 daysyes
formatoutput formatstring

valid output formats

  • csv
  • json
  • xml
yes
versionversion number for requestinteger

currently there is only the version 1

on change of any output parameter this version number will change, too

no
date_queryset the date reference for requeststring

'insert' (default) = get bookings by processing time

'gps' = get booking by booked date and time

no

Return values

This funtion returns a string. On error the return will be "Error:Description".

CSV Format

Returning a row per booking with all the data as defined below

Meta informations


SeparatorSemicolon ( ; )
DelimiterDouble quote ( " )
Line break0x0D 0x0A (CarriageReturn LineFeed)
HeaderRow 1
EncodingWindows-1252

Columns

Column

Description


 
PERSON_ID
  • self defined person number
  • in portal listed as "Ma-Nr"

PERSON_KEYBooking key, used by person
PERSON_NAMEname of person
PERSON_CARD_NUMBER
  • self defineable additional booking number
  • in portal listed as "Card Nr"

DATETIMEDateformat DD.MM.YYYY HH:MM:SS
ACTIVITY_ID

Short booging type definition


ACTIVITY_NAME

Description text for booking as defined


TERMINALportal Name of object, where the booking was done
LATLatitude
LONLongitude
ADDRESSAufgelöster Positionstext 
AREA

areas, as defined for this Position

delimiter: "%|%" 

DRIVERKEYpersonal key of person who did the booking 
COST_CENTER_IDtechnical ident of cost center 
COST_CENTER_NAMEname of used cost center

example