Skip to content

Delivery Fill Order

The delivery fill order resource.

Base/deliveryFillOrder
GET/deliveryFillOrder

List delivery fill orders

Retrieve a paginated list of delivery fill orders. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GET/deliveryFillOrder
curl --request GET \
  --url '<your-host>/deliveryFillOrder?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "companyId": "xyz789",
    "tankId": "xyz789",
    "readableId": "xyz789",
    "serviceDate": "2026-01-01",
    "status": "string",
    "kind": "string",
    "origin": "string"
  }
]
GET/deliveryFillOrder

Retrieve a delivery fill order

Fetch a single delivery fill order by filtering on `id`.

Query parameters

idstring

Match on the delivery fill order's `id`, e.g. `eq.{id}`.

GET/deliveryFillOrder
curl --request GET \
  --url '<your-host>/deliveryFillOrder?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "tankId": "xyz789",
  "readableId": "xyz789",
  "serviceDate": "2026-01-01",
  "status": "string",
  "kind": "string",
  "origin": "string"
}
POST/deliveryFillOrder

Create a delivery fill order

Create a new delivery fill order.

Body parameters

tankIdstringrequired
readableIdstringrequired
serviceDatedaterequired
statusstringrequired
kindstringrequired
originstringrequired
requestedGallonsnumber
deliveredGallonsnumber
plannedServiceSecondsnumberrequired
notesstring
windowStarttimestamp
windowEndtimestamp
deliveryStatestringrequired
gaugeBeforePercentnumber

The tank gauge as the driver read it before the drop, in percent. What the books say, even over 100.

gaugeAfterPercentnumber

The tank gauge as the driver read it after the drop, in percent.

POST/deliveryFillOrder
curl --request POST \
  --url <your-host>/deliveryFillOrder \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"tankId":"xyz789","readableId":"xyz789","serviceDate":"2026-01-01","status":"string","kind":"string","origin":"string","plannedServiceSeconds":0,"deliveryState":"string"}'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "tankId": "xyz789",
  "readableId": "xyz789",
  "serviceDate": "2026-01-01",
  "status": "string",
  "kind": "string",
  "origin": "string"
}
PATCH/deliveryFillOrder

Update a delivery fill order

Update an existing delivery fill order, matched on `id`.

Body parameters

tankIdstringrequired
readableIdstringrequired
serviceDatedaterequired
statusstringrequired
kindstringrequired
originstringrequired
requestedGallonsnumber
deliveredGallonsnumber
plannedServiceSecondsnumberrequired
notesstring
windowStarttimestamp
windowEndtimestamp
deliveryStatestringrequired
gaugeBeforePercentnumber

The tank gauge as the driver read it before the drop, in percent. What the books say, even over 100.

gaugeAfterPercentnumber

The tank gauge as the driver read it after the drop, in percent.

PATCH/deliveryFillOrder
curl --request PATCH \
  --url '<your-host>/deliveryFillOrder?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"tankId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "companyId": "xyz789",
  "tankId": "xyz789",
  "readableId": "xyz789",
  "serviceDate": "2026-01-01",
  "status": "string",
  "kind": "string",
  "origin": "string"
}
DELETE/deliveryFillOrder

Delete a delivery fill order

Delete a delivery fill order, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the delivery fill order to delete, e.g. `eq.{id}`.

DELETE/deliveryFillOrder
curl --request DELETE \
  --url '<your-host>/deliveryFillOrder?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content