The approval and decline processes are generally the same. You can approve or decline an entire timesheet or only portions of it (individual days).
A partially approved or declined timesheet includes a mix of approved or declined and submitted time entries. The last action determines whether the timesheet status appears as partially approved or declined. For example, if you last approved entries, the timesheet appears as partially approved; if you last declined entries, the timesheet appears as partially declined.
Returns a collection with a key, ID, and link for each timesheet to approve. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "101",
- "id": "101",
- "href": "/objects/time/timesheet-to-approve/101"
}, - {
- "key": "102",
- "id": "102",
- "href": "/objects/time/timesheet-to-approve/102"
}, - {
- "key": "103",
- "id": "103",
- "href": "/objects/time/timesheet-to-approve/103"
}
], - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 3,
- "totalError": 0,
- "start": 1,
- "pageSize": 100,
- "next": 0,
- "previous": 0
}
}
Returns detailed information for a specified timesheet to approve.
key required | string system-assigned unique key for the timesheet-to-approve. Example: 99 |
OK
Bad Request
{- "ia::result": {
- "key": "23",
- "id": "23",
- "href": "/objects/projects/timesheet/23",
- "beginDate": "2025-01-01",
- "endDate": "2025-01-07",
- "postingDate": "2025-01-07",
- "state": "submitted",
- "unitOfMeasure": "Hours",
- "hoursInDay": 8,
- "billableQuantity": 40,
- "nonBillableQuantity": 2,
- "description": "Week of 2025-01-01",
- "calculationMethod": "hourly",
- "postActualLaborCost": false,
- "employee": {
- "key": "973",
- "id": "E-001",
- "href": "/objects/company-config/employee/973"
}, - "employeeContact": {
- "key": "973",
- "name": "John Smith",
- "firstName": "John",
- "lastName": "Smith",
- "href": "/objects/company-config/contact/973"
}, - "attachment": {
- "key": "8420",
- "id": "Attach-01",
- "href": "string"
}, - "lines": [
- {
- "key": "1411",
- "id": "1411",
- "href": "/objects/time/timesheet-to-approve-line/1411",
- "timesheetToApprove": {
- "key": "11",
- "id": "11",
- "href": "/objects/time/timesheet-to-approve/11"
}, - "entryDate": "2025-04-01",
- "quantity": 6,
- "lineNumber": 1,
- "description": "Week of 04/01/23",
- "notes": "Talked to client regarding project",
- "state": "approved",
- "timeType": {
- "key": "1",
- "id": "Salaries At Root",
- "name": "Salaries At Root",
- "href": "/objects/projects/time-type/1"
}, - "isBillable": true,
- "isBilled": "false",
- "statisticalJournal": {
- "key": "7483",
- "id": "TSSJ",
- "href": "/objects/general-ledger/statistical-journal/7483"
}, - "billableUtilizedGLAccount": {
- "key": "8293",
- "id": "9293",
- "href": "/objects/general-ledger/statistical-account/8293"
}, - "nonBillableUtilizedGLAccount": {
- "key": "8294",
- "id": "9294",
- "href": "/objects/general-ledger/statistical-account/8294"
}, - "billableNonUtilizedGLAccount": {
- "key": "8295",
- "id": "9295",
- "href": "/objects/general-ledger/statistical-account/8295"
}, - "nonBillableNonUtilizedGLAccount": {
- "key": "8296",
- "id": "9296",
- "href": "/objects/general-ledger/statistical-account/8296"
}, - "hours": {
- "billable": 8,
- "nonBillable": 2,
- "approved": 10,
- "approvedBillable": 8,
- "approvedNonBillable": 2,
- "utilized": 10,
- "nonUtilized": 4,
- "approvedUtilized": 3,
- "approvedNonUtilized": 2
}, - "externalPayroll": {
- "costRate": 1,
- "billingRate": 1,
- "amount": "90",
- "employerTaxes": 15,
- "fringes": 10,
- "cashFringes": 2
}, - "laborClass": {
- "key": "15",
- "id": "LC001",
- "name": "Labor Class",
- "href": "/objects/construction/labor-class/15"
}, - "laborShift": {
- "key": "18",
- "id": "LS001",
- "name": "Labor Shift",
- "href": "/objects/construction/labor-shift/18"
}, - "laborUnion": {
- "key": "20",
- "id": "LU001",
- "name": "Labor Union",
- "href": "/objects/construction/labor-union/20"
}, - "dimensions": {
- "location": {
- "key": "1",
- "id": "1",
- "name": "USA"
}, - "department": {
- "key": "1",
- "id": "1",
- "name": "IT"
}, - "employee": {
- "key": "10",
- "id": "EMP-10",
- "name": "Thomas, Glenn",
- "href": "/objects/company-config/employee/10"
}, - "project": {
- "key": "2",
- "id": "NET-XML30-2",
- "name": "Talcomp training",
- "href": "/objects/projects/project/2"
}, - "customer": {
- "key": "13",
- "id": "CUST-13",
- "name": "Jack In the Box",
- "href": "/objects/accounts-receivable/customer/13"
}, - "vendor": {
- "key": "357",
- "id": "1605212096809",
- "name": "GenLab",
- "href": "/objects/accounts-payable/vendor/357"
}, - "item": {
- "key": "13",
- "id": "Case 13",
- "name": "Platform pack",
- "href": "/objects/inventory-control/item/13"
}, - "warehouse": {
- "key": "6",
- "id": "WH01",
- "name": "WH01",
- "href": "/objects/inventory-control/warehouse/6"
}, - "class": {
- "key": "731",
- "id": "REST_CLS_001",
- "name": "Enterprises",
- "href": "/objects/company-config/class/731"
}, - "task": {
- "id": "1",
- "key": "1",
- "name": "Project Task",
- "href": "/objects/projects/task/1"
}, - "costType": {
- "id": "2",
- "key": "2",
- "name": "Project Expense",
- "href": "/objects/construction/cost-type/2"
}, - "asset": {
- "id": "A001",
- "key": "1",
- "name": "Laptop 1",
- "href": "/objects/asset/1"
}, - "contract": {
- "id": "CON-0045-1",
- "key": "12",
- "name": "ACME Widgets - Service",
- "href": "/objects/contracts/contract/12"
}
}, - "audit": {
- "createdDateTime": "2022-04-20T16:20:00Z",
- "modifiedDateTime": "2022-04-20T16:20:00Z",
- "createdBy": "1",
- "modifiedBy": "95"
}, - "entity": {
- "key": "46",
- "id": "Western Region",
- "name": "Western Region",
- "href": "/objects/company-config/entity/46"
}
}
], - "audit": {
- "createdDateTime": "2022-04-20T16:20:00Z",
- "modifiedDateTime": "2022-04-20T16:20:00Z",
- "createdBy": "1",
- "modifiedBy": "95"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}