Route Stop
The route stop resource.
/routeStopList route stops
Retrieve a paginated list of route stops. 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>/routeStop?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"routePlanId": "xyz789",
"sequence": 0,
"createdAt": "2026-01-01T00:00:00Z",
"customerLocationId": "xyz789",
"tankId": "xyz789",
"salesInvoiceLineId": "xyz789"
}
]/routeStopRetrieve a route stop
Fetch a single route stop by filtering on `id`.
Query parameters
idstringMatch on the route stop's `id`, e.g. `eq.{id}`.
curl --request GET \
--url '<your-host>/routeStop?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"routePlanId": "xyz789",
"sequence": 0,
"createdAt": "2026-01-01T00:00:00Z",
"customerLocationId": "xyz789",
"tankId": "xyz789",
"salesInvoiceLineId": "xyz789"
}/routeStopCreate a route stop
Create a new route stop.
Body parameters
companyIdstringrequiredReferences company.id
routePlanIdstringrequiredReferences routePlan.id
sequencenumberrequiredcustomerLocationIdstringReferences customerLocation.id
tankIdstringReferences tank.id
salesInvoiceLineIdstringReferences salesInvoiceLine.id
plannedGallonsnumberplannedArrivaltimestampplannedDriveSecondsnumberdeliveryFillOrderIdstringcurl --request POST \
--url <your-host>/routeStop \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789","routePlanId":"xyz789","sequence":0}'{
"id": "abc123def456",
"companyId": "xyz789",
"routePlanId": "xyz789",
"sequence": 0,
"createdAt": "2026-01-01T00:00:00Z",
"customerLocationId": "xyz789",
"tankId": "xyz789",
"salesInvoiceLineId": "xyz789"
}/routeStopUpdate a route stop
Update an existing route stop, matched on `id`.
Body parameters
companyIdstringrequiredReferences company.id
routePlanIdstringrequiredReferences routePlan.id
sequencenumberrequiredcustomerLocationIdstringReferences customerLocation.id
tankIdstringReferences tank.id
salesInvoiceLineIdstringReferences salesInvoiceLine.id
plannedGallonsnumberplannedArrivaltimestampplannedDriveSecondsnumberdeliveryFillOrderIdstringcurl --request PATCH \
--url '<your-host>/routeStop?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",
"routePlanId": "xyz789",
"sequence": 0,
"createdAt": "2026-01-01T00:00:00Z",
"customerLocationId": "xyz789",
"tankId": "xyz789",
"salesInvoiceLineId": "xyz789"
}/routeStopDelete a route stop
Delete a route stop, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the route stop to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url '<your-host>/routeStop?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'