Info

Created 22-01-2020 by Lavinia Gheghea

Revision



Description

The API allows you to mark a time ledger entry as transferred

Endpoints

POST: /marktimeledgerentrytransfered


Parameters
 Name
 Description
 Type
 API-key - required
 Authorization Token 
 String(64)
 UID - required
 UID -how can be obtained
 String
 DEVICEID - required
 DEVICEID 
 String
 nID 
 ID of  single time ledger entry
 Integer
 sIDList list of IDs of time ledger entries separated by comma string


Curl example with single ID
curl -X POST "https://smartapi.smarttid.dk/marktimeledgerentrytransfered?nID=xxx" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d ""

Curl example with multiple IDs
curl -X POST "https://smartapi.smarttid.dk/marktimeledgerentrytransfered?sIDList=ID1,ID2,ID3,...." -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d ""


Response

200 (OK) : Success message

Response Body
Success message
Response Headers
content-encoding: gzip 
 content-length: 138 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 09:24:44 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding  x-powered-by: ASP.NET

400 (ERROR) : Error message

Response Body
Error message