One hours booking offered to a third party, normally the customer, for approval. The header (ApprovedTimesheetHeaders) names the customer and contact person. Not the manager's approval of hours, which is TimesheetEntries.status.

Label in Fledge: ApprovedTimesheetLine

URLhttps://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines
Keyadministration_idapproved_timesheet_header_idapproved_timesheet_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBASISBASISAPP
ScopesFLEDGE_THIRD_PARTY_HOURS_APPROVALFLEDGE_PORTAL

Example requests

A page of rows, with only the fields you need. See Authentication for the token.

curl -G "https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status');
url.searchParams.set('$top', '50');

const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();
var url = "https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status"),
    "$top=" + Uri.EscapeDataString("50"));

http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);

One row by its key:

GET https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines(administration_id=1,approved_timesheet_header_id={approved_timesheet_header_id},approved_timesheet_line_id={approved_timesheet_line_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
approved_timesheet_header_idkeyInt32Volgnummer
approved_timesheet_line_idkeyInt32Volgnummer van regel
approved_atDateTimeOffsetDatumtijd fiattering

When the third party answered.

employee_idInt32Mannummer
memoStringMemo: Commentaar

The third party's comment.

modified_atDateTimeOffsetDatumtijd wijzig: Datumtijd laatste wijziging
modified_byInt32Gebr.wijzig: Gebruiker laatste wijziging
statusInt32Status
  • 0 No answer yet
  • 1 Approved
  • -1 Declined
timesheet_entry_dateDateDatum
timesheet_entry_idInt32Volgnr: Volgnummer om meerdere keren op zelfde orderschrapnr te kunnen boeken.

Relations

Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.

NavigationEntity set
AdministrationAdministrationsone
ApprovedTimesheetHeaderApprovedTimesheetHeadersone
EmployeeEmployeesone
TimesheetEntryTimesheetEntriesone
Wingman