GET SubAccounts/{id}
Gets a SubAccount by it's ID, represented as SubAccountDto.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the SubAccount. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
The SubAccount data.
SubAccountDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Description | string |
None. |
|
IdentificationsDescription | string |
None. |
|
ContractDescription | string |
None. |
|
BalanceDate | date |
None. |
|
CurrentBalance | decimal number |
None. |
|
PreviousBalance | decimal number |
None. |
|
Consumption | decimal number |
None. |
|
Limit | decimal number |
None. |
|
IdentificationIds | Collection of globally unique identifier |
None. |
|
DriverId | globally unique identifier |
None. |
|
DriverCode | string |
None. |
|
DriverFirstName | string |
None. |
|
DriverLastName | string |
None. |
|
VehicleId | globally unique identifier |
None. |
|
VehicleCode | string |
None. |
|
VehicleYear | integer |
None. |
|
VehicleOdometer | integer |
None. |
|
VehicleEngineHours | integer |
None. |
|
VehicleConsumption | decimal number |
None. |
|
FleetDescription | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "1b9bad9e-2c99-4cd1-aa70-1effbcd98c80", "Description": "sample string 2", "IdentificationsDescription": "sample string 3", "ContractDescription": "sample string 4", "BalanceDate": "2025-04-25T16:32:31.2785554Z", "CurrentBalance": 6.0, "PreviousBalance": 7.0, "Consumption": 8.0, "Limit": 9.0, "IdentificationIds": [ "d8532db8-98f9-4a59-a5c6-3ea9e07fe3b8", "109b06cc-7179-479b-b357-3e53b8df4188" ], "DriverId": "b586a332-133a-4437-a38b-5885bb3692f1", "DriverCode": "sample string 10", "DriverFirstName": "sample string 11", "DriverLastName": "sample string 12", "VehicleId": "21174a73-cce7-4beb-96e3-d0375bfeeb5a", "VehicleCode": "sample string 13", "VehicleYear": 1, "VehicleOdometer": 1, "VehicleEngineHours": 1, "VehicleConsumption": 14.0, "FleetDescription": "sample string 15" }
application/xml, text/xml
Sample:
<SubAccountDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model"> <BalanceDate>2025-04-25T16:32:31.2785554Z</BalanceDate> <Consumption>8</Consumption> <ContractDescription>sample string 4</ContractDescription> <CurrentBalance>6</CurrentBalance> <Description>sample string 2</Description> <DriverCode>sample string 10</DriverCode> <DriverFirstName>sample string 11</DriverFirstName> <DriverId>b586a332-133a-4437-a38b-5885bb3692f1</DriverId> <DriverLastName>sample string 12</DriverLastName> <FleetDescription>sample string 15</FleetDescription> <Id>1b9bad9e-2c99-4cd1-aa70-1effbcd98c80</Id> <IdentificationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>d8532db8-98f9-4a59-a5c6-3ea9e07fe3b8</d2p1:guid> <d2p1:guid>109b06cc-7179-479b-b357-3e53b8df4188</d2p1:guid> </IdentificationIds> <IdentificationsDescription>sample string 3</IdentificationsDescription> <Limit>9</Limit> <PreviousBalance>7</PreviousBalance> <VehicleCode>sample string 13</VehicleCode> <VehicleConsumption>14</VehicleConsumption> <VehicleEngineHours>1</VehicleEngineHours> <VehicleId>21174a73-cce7-4beb-96e3-d0375bfeeb5a</VehicleId> <VehicleOdometer>1</VehicleOdometer> <VehicleYear>1</VehicleYear> </SubAccountDto>