Retrieve the properties and relationships of an timeRegistrationEntries object for Business Central.
HTTP request
Replace the URL prefix for Business Central depending on environment following the guideline.
GET businesscentralPrefix/companies({companyId})/timeRegistrationEntries({timeregistrationId})
GET businesscentralPrefix/companies({companyId})/employees({employeeId})/timeRegistrationEntries({timeregistrationId})
Note
Please note the $filter applied to timeRegistrationEntries API. The filter is applied to get timeRegistrationEntries for a specific employee.
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and an timeRegistrationEntries object in the response body.
Example
Request
Here's an example of the request.
GET https://{businesscentralPrefix}/api/v2.0/companies({id})timeRegistrationEntries?$filter=employeeId eq {employeeId}
Response
Here's an example of the response.
Note
The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
{
"id": "1a8b1fec-c0e3-ea11-aa60-000d3ad7cacb",
"employeeId": "258bb9c0-44e3-ea11-bb43-000d3a2feca1",
"employeeNumber": "AH",
"jobId": "00000000-0000-0000-0000-000000000000",
"jobNumber": "",
"jobTaskNumber": "",
"absence": "",
"lineNumber": 10000,
"date": "2019-02-02",
"quantity": 5,
"status": "Open",
"unitOfMeasureId": "56a6738a-44e3-ea11-bb43-000d3a2feca1",
"unitOfMeasureCode": "HOUR",
"lastModfiedDateTime": "2020-08-21T15:13:58.87Z"
}
Related information
Tips for working with the APIs
Error Codes
timeRegistrationEntries
Get timeRegistrationEntries
Post timeRegistrationEntries
Delete timeRegistrationEntries