Info

Created 22-01-2021 by Lavinia Gheghea

Revision



Description

The API allows you to get time ledger entry

Endpoints


GET:  /gettimeledgerentry


Parameters
Headers and Query
 Name
 Description
 Type
 API-key - required
 Authorization Token
 String(64)
 UID - required
 UID -how can be obtained
 String
 DEVICEID - required
 DEVICEID
 String
 offset
 starting record
 Integer
 limit
 how many records displayed on a page
 Integer
 OrderFieldName
 field name to order the recordset
 String
 OrderDirection
 ASC or DESC
 String
 Filter
 filter the recordset
 String
Curl example

curl -X GET "https://smartapi.smarttid.dk/gettimelegderentry" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response

200 (OK) :  array of time ledger entry

Response body
[ 
{ "EntryID": 120, "EmployeeCode": "0019", "Name": "Per Hansen", "Date": "2018-02-16T00:00:00", "LogStart": null, "LogEnd": null, "WorkTypeCode": "FERIE", "BreakTime": "1900-01-01T00:30:00", "StartTime": "1900-01-01T07:00:00", "EndTime": "1900-01-01T14:30:00", "TotalTime": 7, "WorkCalendarCode": "DAG1", "Export": false, "Type": "Absence", "TransferedToOutlook": false, "Remark": null, "DepartmentCode": "", "WorkFunctionCode": null, "Relative": false, "PeriodName": "2018-06-07", "JournalCode": "TIME", "EmployeeGroupCode": null, "DistrictCode": null, "TeamLeaderCode": null, "Canceled": false, "PayrollTypeCode": null, "JournalLineEntryID": 1451, "OverTimeCode": null, "DimensionCode1": null, "DimensionCode2": null, "DimensionCode3": null, "DimensionCode4": null, "DimensionCode5": null, "DimensionCode7": null, "DimensionCode6": null, "DimensionCode8": null, "DimensionCode9": null, "DimensionCode10": null, "PayrollReference": "", "JournalLineID": 1449 }, { "EntryID": 580, "EmployeeCode": "0019", "Name": "Per Hansen", "Date": "2018-01-01T00:00:00", "LogStart": null, "LogEnd": null, "WorkTypeCode": "FERIEFRIOP", "BreakTime": null, "StartTime": null, "EndTime": null, "TotalTime": 37, "WorkCalendarCode": "DAG1", "Export": false, "Type": "Absence", "TransferedToOutlook": false, "Remark": "Oprettet fra korrektionskladden", "DepartmentCode": null, "WorkFunctionCode": null, "Relative": false, "PeriodName": "2017-52-01", "JournalCode": "TIME", "EmployeeGroupCode": null, "DistrictCode": null, "TeamLeaderCode": null, "Canceled": false, "PayrollTypeCode": null, "JournalLineEntryID": null, "OverTimeCode": null, "DimensionCode1": null, "DimensionCode2": null, "DimensionCode3": null, "DimensionCode4": null, "DimensionCode5": null, "DimensionCode7": null, "DimensionCode6": null, "DimensionCode8": null, "DimensionCode9": null, "DimensionCode10": null, "PayrollReference": "", "JournalLineID": null }, ]


Response headers:
content-encoding: gzip 
 content-length: 238 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 08:01:23 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding 
 x-pagination: {"totalCount":4,"totalFiltered":4,"Offset":0,"Limit":4,"Returned":4} 
 x-powered-by: ASP.NET 

400 (ERROR) : Error message

Response Body
Error message

SQL Procedure 

sp_IntegrationGetTimeLedgerEntry