GET v1/Clients/{clientId}/Tanks?facilityId={facilityId}
Gets all active tanks for the client that match the query, if provided.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
clientId |
Client identifier. |
globally unique identifier |
Required |
facilityId | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
A .
Collection of TankV1Name | Description | Type | Additional information |
---|---|---|---|
ClientId |
The client id. |
globally unique identifier |
None. |
FacilityId |
The facility id. |
integer |
None. |
Id |
The tank id. |
integer |
None. |
TankNumber |
The tank registration number. |
string |
None. |
AtgTankNumber |
The tank number as reported by the ATG. |
string |
None. |
LocationType |
The tank location type. Valid values include: "UST", "AST", "ASTUGP", "USTU", "ASTAGP". - UST = Underground Storage Tank - AST = Above Ground Storage Tank - ASTUGP = Above Ground Storage Tank with Underground Piping - USTU = Underground Storage Tank - Unregulated - ASTAGP = Above Ground Storage Tank with Above Ground Piping |
string |
None. |
TankStatusReferenceId |
The tank status. Valid values include can be retrieved from v1/Clients/{clientId}/References?type=TankStatus. |
integer |
None. |
TankStatusReferenceDescription |
The tank status description. |
string |
None. |
SubstanceProductReferenceId |
The substance/product the tank holds. Valid values include can be retrieved from v1/Clients/{clientId}/References?type=SubstanceProduct. |
integer |
None. |
SubstanceProductReferenceDescription |
The substance/product the tank holds. |
string |
None. |
Response Formats
application/json, text/json
[ { "ClientId": "7afb231f-aeff-47a8-af13-05becd3fdfc1", "FacilityId": 293313223, "Id": 293313223, "TankNumber": "1", "AtgTankNumber": "1", "LocationType": "UST", "TankStatusReferenceId": 293313223, "TankStatusReferenceDescription": null, "SubstanceProductReferenceId": 293313223, "SubstanceProductReferenceDescription": null }, { "ClientId": "b3598071-aedb-43c1-913e-9156c576acaf", "FacilityId": 293313223, "Id": 293313223, "TankNumber": "2", "AtgTankNumber": "2", "LocationType": "UST", "TankStatusReferenceId": 293313223, "TankStatusReferenceDescription": null, "SubstanceProductReferenceId": 293313223, "SubstanceProductReferenceDescription": null } ]
application/xml, text/xml
<ArrayOfTank xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Titan.API.Fuel.Models"> <Tank> <AtgTankNumber>1</AtgTankNumber> <ClientId>7afb231f-aeff-47a8-af13-05becd3fdfc1</ClientId> <FacilityId>293313223</FacilityId> <Id>293313223</Id> <LocationType>UST</LocationType> <SubstanceProductReferenceDescription i:nil="true" /> <SubstanceProductReferenceId>293313223</SubstanceProductReferenceId> <TankNumber>1</TankNumber> <TankStatusReferenceDescription i:nil="true" /> <TankStatusReferenceId>293313223</TankStatusReferenceId> </Tank> <Tank> <AtgTankNumber>2</AtgTankNumber> <ClientId>b3598071-aedb-43c1-913e-9156c576acaf</ClientId> <FacilityId>293313223</FacilityId> <Id>293313223</Id> <LocationType>UST</LocationType> <SubstanceProductReferenceDescription i:nil="true" /> <SubstanceProductReferenceId>293313223</SubstanceProductReferenceId> <TankNumber>2</TankNumber> <TankStatusReferenceDescription i:nil="true" /> <TankStatusReferenceId>293313223</TankStatusReferenceId> </Tank> </ArrayOfTank>