GET api/WorkOrderTime/Log?AutoServiceMasterID={AutoServiceMasterID}&UserID={UserID}
Get Work Order Time
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
AutoServiceMasterID | integer |
None. |
|
UserID | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
WorkOrderTimeCostResponseModelName | Description | Type | Additional information |
---|---|---|---|
TotalHourLog | string |
None. |
|
TotalDuration | string |
None. |
|
TotalCost | decimal number |
None. |
|
TimeDm | Collection of WorkOrderTimeCostDataModel |
None. |
|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "totalHourLog": "sample string 1", "totalDuration": "sample string 2", "totalCost": 3.0, "timeDm": [ { "woTimeID": 1, "autoServiceMasterID": 2, "assignTo": 3, "assignedUser": "sample string 4", "hourlyRate": 5.0, "totalCost": 6.0, "isCostAddtoTotalCost": true, "startDateTime": "2025-07-17T04:53:08.0270215+00:00", "durationHour": 9, "durationMin": 10, "isTimeAddedtoTotalTime": true, "timeCategoryID": 12, "categoryName": "sample string 13", "addedDate": "2025-07-17T04:53:08.0270215+00:00" }, { "woTimeID": 1, "autoServiceMasterID": 2, "assignTo": 3, "assignedUser": "sample string 4", "hourlyRate": 5.0, "totalCost": 6.0, "isCostAddtoTotalCost": true, "startDateTime": "2025-07-17T04:53:08.0270215+00:00", "durationHour": 9, "durationMin": 10, "isTimeAddedtoTotalTime": true, "timeCategoryID": 12, "categoryName": "sample string 13", "addedDate": "2025-07-17T04:53:08.0270215+00:00" } ], "returnID": 4, "message": "sample string 5", "successful": true, "code": 7, "totalRecord": 8 }
application/xml, text/xml
Sample:
<WorkOrderTimeCostResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"> <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">7</Code> <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 5</Message> <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</ReturnID> <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful> <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">8</TotalRecord> <TimeDm> <WorkOrderTimeCostDataModel> <AddedDate>2025-07-17T04:53:08.0270215+00:00</AddedDate> <AssignTo>3</AssignTo> <AssignedUser>sample string 4</AssignedUser> <AutoServiceMasterID>2</AutoServiceMasterID> <CategoryName>sample string 13</CategoryName> <DurationHour>9</DurationHour> <DurationMin>10</DurationMin> <HourlyRate>5</HourlyRate> <IsCostAddtoTotalCost>true</IsCostAddtoTotalCost> <IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime> <StartDateTime>2025-07-17T04:53:08.0270215+00:00</StartDateTime> <TimeCategoryID>12</TimeCategoryID> <TotalCost>6</TotalCost> <WOTimeID>1</WOTimeID> </WorkOrderTimeCostDataModel> <WorkOrderTimeCostDataModel> <AddedDate>2025-07-17T04:53:08.0270215+00:00</AddedDate> <AssignTo>3</AssignTo> <AssignedUser>sample string 4</AssignedUser> <AutoServiceMasterID>2</AutoServiceMasterID> <CategoryName>sample string 13</CategoryName> <DurationHour>9</DurationHour> <DurationMin>10</DurationMin> <HourlyRate>5</HourlyRate> <IsCostAddtoTotalCost>true</IsCostAddtoTotalCost> <IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime> <StartDateTime>2025-07-17T04:53:08.0270215+00:00</StartDateTime> <TimeCategoryID>12</TimeCategoryID> <TotalCost>6</TotalCost> <WOTimeID>1</WOTimeID> </WorkOrderTimeCostDataModel> </TimeDm> <TotalCost>3</TotalCost> <TotalDuration>sample string 2</TotalDuration> <TotalHourLog>sample string 1</TotalHourLog> </WorkOrderTimeCostResponseModel>
multipart/form-data
Sample:
<WorkOrderTimeCostResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">7</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 5</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">8</TotalRecord><TimeDm><WorkOrderTimeCostDataModel><AddedDate>2025-07-17T04:53:08.0270215+00:00</AddedDate><AssignTo>3</AssignTo><AssignedUser>sample string 4</AssignedUser><AutoServiceMasterID>2</AutoServiceMasterID><CategoryName>sample string 13</CategoryName><DurationHour>9</DurationHour><DurationMin>10</DurationMin><HourlyRate>5</HourlyRate><IsCostAddtoTotalCost>true</IsCostAddtoTotalCost><IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime><StartDateTime>2025-07-17T04:53:08.0270215+00:00</StartDateTime><TimeCategoryID>12</TimeCategoryID><TotalCost>6</TotalCost><WOTimeID>1</WOTimeID></WorkOrderTimeCostDataModel><WorkOrderTimeCostDataModel><AddedDate>2025-07-17T04:53:08.0270215+00:00</AddedDate><AssignTo>3</AssignTo><AssignedUser>sample string 4</AssignedUser><AutoServiceMasterID>2</AutoServiceMasterID><CategoryName>sample string 13</CategoryName><DurationHour>9</DurationHour><DurationMin>10</DurationMin><HourlyRate>5</HourlyRate><IsCostAddtoTotalCost>true</IsCostAddtoTotalCost><IsTimeAddedtoTotalTime>true</IsTimeAddedtoTotalTime><StartDateTime>2025-07-17T04:53:08.0270215+00:00</StartDateTime><TimeCategoryID>12</TimeCategoryID><TotalCost>6</TotalCost><WOTimeID>1</WOTimeID></WorkOrderTimeCostDataModel></TimeDm><TotalCost>3</TotalCost><TotalDuration>sample string 2</TotalDuration><TotalHourLog>sample string 1</TotalHourLog></WorkOrderTimeCostResponseModel>