POST api/VehicleLoad/GetVehicleRooms

Request Information

URI Parameters

None.

Body Parameters

VehicleLoad_GetVehicleRoomsRequest
NameDescriptionTypeAdditional information
DeviceUniqueId

string

None.

IdVehicle

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceUniqueId": "sample string 1",
  "IdVehicle": 2
}

application/xml, text/xml

Sample:
<VehicleLoad_GetVehicleRoomsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PharmatoolsWarehouseAPI.Models">
  <DeviceUniqueId>sample string 1</DeviceUniqueId>
  <IdVehicle>2</IdVehicle>
</VehicleLoad_GetVehicleRoomsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VehicleLoad_GetVehicleRoomsResponse
NameDescriptionTypeAdditional information
Result

VehicleLoad_GetVehicleRoomsResult

None.

VehicleRooms

Collection of VehicleRoom

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 0,
  "VehicleRooms": [
    {
      "IdVehicle": 1,
      "IdVehicleRoom": 2,
      "ProbeCode": "sample string 3",
      "RoomType": {
        "IdVehicleRoomType": 1,
        "Description": "sample string 2",
        "LowerBound": 3.0,
        "UpperBound": 4.0
      }
    },
    {
      "IdVehicle": 1,
      "IdVehicleRoom": 2,
      "ProbeCode": "sample string 3",
      "RoomType": {
        "IdVehicleRoomType": 1,
        "Description": "sample string 2",
        "LowerBound": 3.0,
        "UpperBound": 4.0
      }
    }
  ]
}

application/xml, text/xml

Sample:
<VehicleLoad_GetVehicleRoomsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PharmatoolsWarehouseAPI.Models">
  <Result>GenericError</Result>
  <VehicleRooms>
    <VehicleRoom>
      <IdVehicle>1</IdVehicle>
      <IdVehicleRoom>2</IdVehicleRoom>
      <ProbeCode>sample string 3</ProbeCode>
      <RoomType>
        <Description>sample string 2</Description>
        <IdVehicleRoomType>1</IdVehicleRoomType>
        <LowerBound>3</LowerBound>
        <UpperBound>4</UpperBound>
      </RoomType>
    </VehicleRoom>
    <VehicleRoom>
      <IdVehicle>1</IdVehicle>
      <IdVehicleRoom>2</IdVehicleRoom>
      <ProbeCode>sample string 3</ProbeCode>
      <RoomType>
        <Description>sample string 2</Description>
        <IdVehicleRoomType>1</IdVehicleRoomType>
        <LowerBound>3</LowerBound>
        <UpperBound>4</UpperBound>
      </RoomType>
    </VehicleRoom>
  </VehicleRooms>
</VehicleLoad_GetVehicleRoomsResponse>