Tank
The tank resource.
/tankList tanks
Retrieve a paginated list of tanks. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url '<your-host>/tank?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"owner": "string",
"status": "string",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"customerId": "xyz789"
}
]/tankRetrieve a tank
Fetch a single tank by filtering on `id`.
Query parameters
idstringMatch on the tank's `id`, e.g. `eq.{id}`.
curl --request GET \
--url '<your-host>/tank?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"owner": "string",
"status": "string",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"customerId": "xyz789"
}/tankCreate a tank
Create a new tank.
Body parameters
companyIdstringrequiredReferences company.id
customerIdstringReferences customer.id
customerLocationIdstringReferences customerLocation.id
waterCapacityGalnumberusableCapacityGalnumberownerstringrequiredserialNumberstringinstallDatedatelastInspectionDatedatestatusstringrequireddeliveryModetankDeliveryModeStanding delivery preference for this tank. Null is unknown. Never inferred from sensor provider or an individual order.
priceCodestringThe price class this tank is priced under; fuelPriceCode carries the class's price.
optimalDeliveryGallonsnumberThe drop the business plans at this tank, in gallons.
ticketCreationThresholdPercentnumberThe tank level, in percent, at which an automatic delivery ticket is raised.
inactiveDatedatereadableIdstringcurl --request POST \
--url <your-host>/tank \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789","owner":"string","status":"string"}'{
"id": "abc123def456",
"companyId": "xyz789",
"owner": "string",
"status": "string",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"customerId": "xyz789"
}/tankUpdate a tank
Update an existing tank, matched on `id`.
Body parameters
companyIdstringrequiredReferences company.id
customerIdstringReferences customer.id
customerLocationIdstringReferences customerLocation.id
waterCapacityGalnumberusableCapacityGalnumberownerstringrequiredserialNumberstringinstallDatedatelastInspectionDatedatestatusstringrequireddeliveryModetankDeliveryModeStanding delivery preference for this tank. Null is unknown. Never inferred from sensor provider or an individual order.
priceCodestringThe price class this tank is priced under; fuelPriceCode carries the class's price.
optimalDeliveryGallonsnumberThe drop the business plans at this tank, in gallons.
ticketCreationThresholdPercentnumberThe tank level, in percent, at which an automatic delivery ticket is raised.
inactiveDatedatereadableIdstringcurl --request PATCH \
--url '<your-host>/tank?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789"}'{
"id": "abc123def456",
"companyId": "xyz789",
"owner": "string",
"status": "string",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"customerId": "xyz789"
}/tankDelete a tank
Delete a tank, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the tank to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url '<your-host>/tank?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'