GET api/Dashboard/GetUnits/{CompanyId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CompanyId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of UnitName | Description | Type | Additional information |
---|---|---|---|
UnitNumber | string |
None. |
|
Division | string |
None. |
|
Year | string |
None. |
|
Make | string |
None. |
|
VIN | string |
None. |
|
Driver1 | string |
None. |
|
Driver2 | string |
None. |
|
CurrentTrailer | string |
None. |
|
CurrentOrder | string |
None. |
|
CurrentDispatch | string |
None. |
|
Status | string |
None. |
|
DestinationCity | string |
None. |
|
DestinationState | string |
None. |
|
DestinationShortName | string |
None. |
|
DestinationArea | string |
None. |
|
ETA | date |
None. |
|
PTA | date |
None. |
|
InServiceDate | date |
None. |
|
PreplannedOrder | string |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
LastSatelliteLocation | string |
None. |
|
LastSatelliteLocationShortName | string |
None. |
|
CityTruckFlag | character |
None. |
|
UnitSupervisor | string |
None. |
|
FleetManager | string |
None. |
|
TankCapacity | integer |
None. |
|
PenskeTruck | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "UnitNumber": "sample string 1", "Division": "sample string 2", "Year": "sample string 3", "Make": "sample string 4", "VIN": "sample string 5", "Driver1": "sample string 6", "Driver2": "sample string 7", "CurrentTrailer": "sample string 8", "CurrentOrder": "sample string 9", "CurrentDispatch": "sample string 10", "Status": "sample string 11", "DestinationCity": "sample string 12", "DestinationState": "sample string 13", "DestinationShortName": "sample string 14", "DestinationArea": "sample string 15", "ETA": "2024-11-22T22:55:49.5880823-06:00", "PTA": "2024-11-22T22:55:49.5880823-06:00", "InServiceDate": "2024-11-22T22:55:49.5880823-06:00", "PreplannedOrder": "sample string 19", "Latitude": 20.0, "Longitude": 21.0, "LastSatelliteLocation": "sample string 22", "LastSatelliteLocationShortName": "sample string 23", "CityTruckFlag": "A", "UnitSupervisor": "sample string 25", "FleetManager": "sample string 26", "TankCapacity": 27, "PenskeTruck": "sample string 28" }, { "UnitNumber": "sample string 1", "Division": "sample string 2", "Year": "sample string 3", "Make": "sample string 4", "VIN": "sample string 5", "Driver1": "sample string 6", "Driver2": "sample string 7", "CurrentTrailer": "sample string 8", "CurrentOrder": "sample string 9", "CurrentDispatch": "sample string 10", "Status": "sample string 11", "DestinationCity": "sample string 12", "DestinationState": "sample string 13", "DestinationShortName": "sample string 14", "DestinationArea": "sample string 15", "ETA": "2024-11-22T22:55:49.5880823-06:00", "PTA": "2024-11-22T22:55:49.5880823-06:00", "InServiceDate": "2024-11-22T22:55:49.5880823-06:00", "PreplannedOrder": "sample string 19", "Latitude": 20.0, "Longitude": 21.0, "LastSatelliteLocation": "sample string 22", "LastSatelliteLocationShortName": "sample string 23", "CityTruckFlag": "A", "UnitSupervisor": "sample string 25", "FleetManager": "sample string 26", "TankCapacity": 27, "PenskeTruck": "sample string 28" } ]
text/html
Sample:
[{"UnitNumber":"sample string 1","Division":"sample string 2","Year":"sample string 3","Make":"sample string 4","VIN":"sample string 5","Driver1":"sample string 6","Driver2":"sample string 7","CurrentTrailer":"sample string 8","CurrentOrder":"sample string 9","CurrentDispatch":"sample string 10","Status":"sample string 11","DestinationCity":"sample string 12","DestinationState":"sample string 13","DestinationShortName":"sample string 14","DestinationArea":"sample string 15","ETA":"2024-11-22T22:55:49.5880823-06:00","PTA":"2024-11-22T22:55:49.5880823-06:00","InServiceDate":"2024-11-22T22:55:49.5880823-06:00","PreplannedOrder":"sample string 19","Latitude":20.0,"Longitude":21.0,"LastSatelliteLocation":"sample string 22","LastSatelliteLocationShortName":"sample string 23","CityTruckFlag":"A","UnitSupervisor":"sample string 25","FleetManager":"sample string 26","TankCapacity":27,"PenskeTruck":"sample string 28"},{"UnitNumber":"sample string 1","Division":"sample string 2","Year":"sample string 3","Make":"sample string 4","VIN":"sample string 5","Driver1":"sample string 6","Driver2":"sample string 7","CurrentTrailer":"sample string 8","CurrentOrder":"sample string 9","CurrentDispatch":"sample string 10","Status":"sample string 11","DestinationCity":"sample string 12","DestinationState":"sample string 13","DestinationShortName":"sample string 14","DestinationArea":"sample string 15","ETA":"2024-11-22T22:55:49.5880823-06:00","PTA":"2024-11-22T22:55:49.5880823-06:00","InServiceDate":"2024-11-22T22:55:49.5880823-06:00","PreplannedOrder":"sample string 19","Latitude":20.0,"Longitude":21.0,"LastSatelliteLocation":"sample string 22","LastSatelliteLocationShortName":"sample string 23","CityTruckFlag":"A","UnitSupervisor":"sample string 25","FleetManager":"sample string 26","TankCapacity":27,"PenskeTruck":"sample string 28"}]
application/xml, text/xml
Sample:
<ArrayOfUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels"> <Unit> <CityTruckFlag>65</CityTruckFlag> <CurrentDispatch>sample string 10</CurrentDispatch> <CurrentOrder>sample string 9</CurrentOrder> <CurrentTrailer>sample string 8</CurrentTrailer> <DestinationArea>sample string 15</DestinationArea> <DestinationCity>sample string 12</DestinationCity> <DestinationShortName>sample string 14</DestinationShortName> <DestinationState>sample string 13</DestinationState> <Division>sample string 2</Division> <Driver1>sample string 6</Driver1> <Driver2>sample string 7</Driver2> <ETA>2024-11-22T22:55:49.5880823-06:00</ETA> <FleetManager>sample string 26</FleetManager> <InServiceDate>2024-11-22T22:55:49.5880823-06:00</InServiceDate> <LastSatelliteLocation>sample string 22</LastSatelliteLocation> <LastSatelliteLocationShortName>sample string 23</LastSatelliteLocationShortName> <Latitude>20</Latitude> <Longitude>21</Longitude> <Make>sample string 4</Make> <PTA>2024-11-22T22:55:49.5880823-06:00</PTA> <PenskeTruck>sample string 28</PenskeTruck> <PreplannedOrder>sample string 19</PreplannedOrder> <Status>sample string 11</Status> <TankCapacity>27</TankCapacity> <UnitNumber>sample string 1</UnitNumber> <UnitSupervisor>sample string 25</UnitSupervisor> <VIN>sample string 5</VIN> <Year>sample string 3</Year> </Unit> <Unit> <CityTruckFlag>65</CityTruckFlag> <CurrentDispatch>sample string 10</CurrentDispatch> <CurrentOrder>sample string 9</CurrentOrder> <CurrentTrailer>sample string 8</CurrentTrailer> <DestinationArea>sample string 15</DestinationArea> <DestinationCity>sample string 12</DestinationCity> <DestinationShortName>sample string 14</DestinationShortName> <DestinationState>sample string 13</DestinationState> <Division>sample string 2</Division> <Driver1>sample string 6</Driver1> <Driver2>sample string 7</Driver2> <ETA>2024-11-22T22:55:49.5880823-06:00</ETA> <FleetManager>sample string 26</FleetManager> <InServiceDate>2024-11-22T22:55:49.5880823-06:00</InServiceDate> <LastSatelliteLocation>sample string 22</LastSatelliteLocation> <LastSatelliteLocationShortName>sample string 23</LastSatelliteLocationShortName> <Latitude>20</Latitude> <Longitude>21</Longitude> <Make>sample string 4</Make> <PTA>2024-11-22T22:55:49.5880823-06:00</PTA> <PenskeTruck>sample string 28</PenskeTruck> <PreplannedOrder>sample string 19</PreplannedOrder> <Status>sample string 11</Status> <TankCapacity>27</TankCapacity> <UnitNumber>sample string 1</UnitNumber> <UnitSupervisor>sample string 25</UnitSupervisor> <VIN>sample string 5</VIN> <Year>sample string 3</Year> </Unit> </ArrayOfUnit>