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 TankV1| Name | 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": "b2d1fc26-b1d8-4f77-a98c-17df10ef8533",
"FacilityId": 580624434,
"Id": 580624434,
"TankNumber": "1",
"AtgTankNumber": "1",
"LocationType": "UST",
"TankStatusReferenceId": 580624434,
"TankStatusReferenceDescription": null,
"SubstanceProductReferenceId": 580624434,
"SubstanceProductReferenceDescription": null
},
{
"ClientId": "d6d12e6e-b0a5-40cc-88ec-acb772b04399",
"FacilityId": 580624434,
"Id": 580624434,
"TankNumber": "2",
"AtgTankNumber": "2",
"LocationType": "UST",
"TankStatusReferenceId": 580624434,
"TankStatusReferenceDescription": null,
"SubstanceProductReferenceId": 580624434,
"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>b2d1fc26-b1d8-4f77-a98c-17df10ef8533</ClientId>
<FacilityId>580624434</FacilityId>
<Id>580624434</Id>
<LocationType>UST</LocationType>
<SubstanceProductReferenceDescription i:nil="true" />
<SubstanceProductReferenceId>580624434</SubstanceProductReferenceId>
<TankNumber>1</TankNumber>
<TankStatusReferenceDescription i:nil="true" />
<TankStatusReferenceId>580624434</TankStatusReferenceId>
</Tank>
<Tank>
<AtgTankNumber>2</AtgTankNumber>
<ClientId>d6d12e6e-b0a5-40cc-88ec-acb772b04399</ClientId>
<FacilityId>580624434</FacilityId>
<Id>580624434</Id>
<LocationType>UST</LocationType>
<SubstanceProductReferenceDescription i:nil="true" />
<SubstanceProductReferenceId>580624434</SubstanceProductReferenceId>
<TankNumber>2</TankNumber>
<TankStatusReferenceDescription i:nil="true" />
<TankStatusReferenceId>580624434</TankStatusReferenceId>
</Tank>
</ArrayOfTank>