ExpendituresHoursDepartmentSumRequest
GET {{base_url}}/ExpenditureSummaryDepartmentProfitSplitVisualizationRequest?JobId={{integer}}
Retrieves a list of the total expenditures hours on a department based on a given identifier of a job.
API
Expenditure API
Requires Authentication
Yes
Returns
List [ExpendituresHoursDepartmentSum]
Batch?
No
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
JobId | string | Required. | |
(int32) | |||
The identifier of the associated Job. | |||
NOTE: For information about the Job object, see Job. | |||
From | string | Optional. | |
(date-time) | |||
The date and time stamp from which the expenditures hours department sum request is active. | |||
End | string | Optional. | |
(date-time) | |||
The date and time stamp for when the expenditures hours department sum request will end. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | Required. | |
The type of content accepted by the API endpoint. | |||
Content-Type | string | Required. | |
The type of content supported by the API endpoint. |
RESPONSES
status: OK
[{"Id":2147483601,"CompanyInitial":"BBA","EmployeeId":36197,"DepartmentName":"Awesome guys12","DepartmentId":74,"RegisteredHours":19,"CurrencyCode":"DKK","CostTotal":38000,"SaleTotal":38000},{"Id":2147483601,"CompanyInitial":"BBA","EmployeeId":40894,"DepartmentName":"Awesome guys12","DepartmentId":74,"RegisteredHours":26,"CurrencyCode":"DKK","CostTotal":0,"SaleTotal":59200},{"Id":2147483601,"CompanyInitial":"BBA","EmployeeId":19861,"DepartmentName":"_ans2","DepartmentId":469,"RegisteredHours":3,"CurrencyCode":"DKK","CostTotal":450,"SaleTotal":6000}]