# ApprovedTimesheetLines

> One hours booking offered to a third party, normally the customer, for approval.

Subject: Hours.

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.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines` |
| Key | `administration_id`, `approved_timesheet_header_id`, `approved_timesheet_line_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP |
| Write licenses | BASIS, BASISAPP |
| Scopes | FLEDGE_THIRD_PARTY_HOURS_APPROVAL, FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines?$filter=administration_id eq 1&$select=approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status&$top=50
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

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `approved_timesheet_header_id` (key) | Int32, not null | Volgnummer |
| `approved_timesheet_line_id` (key) | Int32, not null | Volgnummer van regel |
| `approved_at` | DateTimeOffset | Datumtijd fiattering. When the third party answered. |
| `employee_id` | Int32 | Mannummer |
| `memo` | String | Memo: Commentaar. The third party's comment. |
| `modified_at` | DateTimeOffset | Datumtijd wijzig: Datumtijd laatste wijziging |
| `modified_by` | Int32 | Gebr.wijzig: Gebruiker laatste wijziging |
| `status` | Int32 | Status. Values: 0 = No answer yet; 1 = Approved; -1 = Declined |
| `timesheet_entry_date` | Date | Datum |
| `timesheet_entry_id` | Int32 | Volgnr: Volgnummer om meerdere keren op zelfde orderschrapnr te kunnen boeken. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `ApprovedTimesheetHeader` → [ApprovedTimesheetHeaders](https://docs.fledge.nl/en/api/reference/ApprovedTimesheetHeaders.md) (one)
- `Employee` → [Employees](https://docs.fledge.nl/en/api/reference/Employees.md) (one)
- `TimesheetEntry` → [TimesheetEntries](https://docs.fledge.nl/en/api/reference/TimesheetEntries.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/ApprovedTimesheetLines
