Skip to content

Example

Driverless vehicle: idle parking ​

One driverless vehicle through a complete idle stay, with every request and response in order. Use it as a blueprint for your own dispatch backend: search for a space, reserve it without an end time, check in, and check out the moment a ride is hailed.

Illustrative persona

Halo Robotaxi is a fictional driverless ride-hailing operator in Phoenix, made up for this example. It is not a real partner integration. The IDs, plates, and times are sample data, and the example runs with a key of the sandbox workspace. The same calls work with a key of the production workspace.

The situation ​

Halo's robotaxi Unit 0142 has just dropped off a rider in downtown Phoenix at 07:00 local time (14:00 UTC). There is no next ride yet. Circling burns energy and blocks traffic, so Halo's fleet backend parks the vehicle at a nearby location until dispatch assigns a new ride. That usually takes less than 45 minutes, but Halo never knows in advance, so it reserves without an end time and checks out when the ride comes.

vehicle

Unit 0142

e3bb4bac-9680-45d2-a627-64582f482379, plate HALO142 (Arizona), "fuel_type": "electric", "is_driverless": true.

where

Downtown Phoenix

Near 33.4484, -112.0740. Search within 3 km.

when

Until a ride is hailed

From 14:00 UTC, open-ended. Usually less than 45 minutes.

constraint

205 cm tall

With roof sensors. Halo keeps the height in its own fleet system.

The vehicle itself never talks to Stage. Halo's backend makes every call, server to server: it reserves, sends the vehicle a destination and entry instructions, and checks the reservation in and out as the vehicle parks and pulls out. Halo registered its fleet earlier (step 1).

Check the integration at startup ​

When the dispatch backend starts

The backend calls GET /fleet/v1/account once to confirm that the key works, that it belongs to the expected workspace, and that it has the scopes the backend needs.

GET/fleet/v1/accountRetrieve the account

Request

sh
curl https://fleet.parkingmgt.com/fleet/v1/account \
  -H "Authorization: ******"

200 OK

json
{
  "object": "account",
  "fleet": {
    "id": "de7a13cd-74af-4ea2-bfbe-b3f795d84c66",
    "name": "Halo Robotaxi (example)",
    "status": "production"
  },
  "workspace": {
    "id": "a3c7b8ce-ed8d-4e38-8706-345bd77e8a2e",
    "name": "Sandbox",
    "type": "sandbox"
  },
  "livemode": false,
  "key": {
    "id": "c9245b38-aff4-4691-bac6-1c70d92f00b8",
    "name": "Dispatch backend",
    "mask": "Hal0...Robotaxi",
    "scopes": ["locations:read", "reservations:write", "webhooks:read"],
    "created_at": "2026-10-30T18:00:00Z",
    "expires_at": null
  },
  "rate_limit": { "limit": 25, "window_seconds": 1 },
  "api_version": "2026-11-01"
}

The key has locations:read, reservations:write (which includes reservations:read), and webhooks:read. workspace.type is sandbox, as expected for this build. If the workspace were wrong or a scope were missing, the backend would refuse to start instead of failing later with 404 not_found or 403 insufficient_scope. It also reads GET /fleet/v1/services and keeps the id of Parking (5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60 here), which it passes as service_id.

Search nearby locations ​

14:00 UTC · the rider is dropped off

Dispatch sees no waiting rider nearby and decides to park Unit 0142. The backend searches for Parking within 3 km of the vehicle.

A search always takes a time window: available is computed for exactly start_at to end_at. Halo doesn't know when the next ride comes, so it searches for the next hour. That shows what is free right now.

GET/fleet/v1/locationsSearch locations

Request

sh
curl -G https://fleet.parkingmgt.com/fleet/v1/locations \
  -H "Authorization: ******" \
  -d service_id=5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60 \
  -d lat=33.4484 -d lng=-112.0740 \
  -d radius_meters=3000 \
  -d start_at=2026-11-02T14:00:00Z \
  -d end_at=2026-11-02T15:00:00Z

Each result's service carries available capacity for 14:00–15:00.

200 OK

json
{
  "object": "list",
  "data": [
    {
      "object": "location",
      "id": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
      "name": "Van Buren Street Garage",
      "address": {
        "line1": "333 E Van Buren St",
        "line2": null,
        "city": "Phoenix",
        "region": "AZ",
        "postal_code": "85004",
        "country": "US"
      },
      "coordinates": { "lat": 33.4515, "lng": -112.0688 },
      "timezone": "America/Phoenix",
      "distance_meters": 650,
      "access_method": "open",
      "access_instructions": "Enter from 3rd St. Fleet bays are on level 2.",
      "hours": { "always_open": true, "weekly": null },
      "height_limit_cm": 213,
      "amenities": ["covered", "security"],
      "services": [
        {
          "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
          "capacity": 30,
          "available": 6
        }
      ],
      "created_at": "2026-10-01T12:00:00Z",
      "livemode": false
    },
    {
      "object": "location",
      "id": "4efcd840-7184-4843-94ae-452a37bef020",
      "name": "Roosevelt Row Surface Lot",
      "address": {
        "line1": "901 N 4th St",
        "line2": null,
        "city": "Phoenix",
        "region": "AZ",
        "postal_code": "85004",
        "country": "US"
      },
      "coordinates": { "lat": 33.4579, "lng": -112.0689 },
      "timezone": "America/Phoenix",
      "distance_meters": 910,
      "access_method": "open",
      "access_instructions": "Use the Garfield St entrance. Fleet stalls are rows F–H.",
      "hours": {
        "always_open": false,
        "weekly": {
          "monday": { "open": "05:00", "close": "23:00" },
          "tuesday": { "open": "05:00", "close": "23:00" },
          "wednesday": { "open": "05:00", "close": "23:00" },
          "thursday": { "open": "05:00", "close": "23:00" },
          "friday": { "open": "05:00", "close": "23:00" },
          "saturday": { "open": "05:00", "close": "23:00" },
          "sunday": { "open": "05:00", "close": "23:00" }
        }
      },
      "height_limit_cm": null,
      "amenities": [],
      "services": [
        {
          "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
          "capacity": 20,
          "available": 9
        }
      ],
      "created_at": "2026-10-01T12:00:00Z",
      "livemode": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Pick a location ​

Stage does not compare vehicles with locations: height_limit_cm is information about the location, not a check. Halo's backend drops any result whose height_limit_cm is below Unit 0142's 205 cm (null means no limit is recorded). Both locations fit, so Halo ranks them by what matters for an idle stay of unknown length:

Van Buren Street GarageRoosevelt Row Surface Lot
Distance650 m910 m
Available for 14:00–15:0069
HoursAlways open05:00–23:00
Height limit213 cmNone recorded

Both are open locations: the vehicle drives in, and Halo's backend checks the reservation in and out via the API. The garage is closer, covered, and always open, so a long wait is never cut short by closing time. It picks Van Buren Street Garage.

Create an open-ended reservation ​

14:00 UTC

The backend reserves Parking without start_at and end_at: the reservation starts now and lasts until the vehicle checks out. It sends an Idempotency-Key so a retry after a timeout can never create a second reservation, and puts the unit and trip in external_reference so the reservation is easy to find later.

POST/fleet/v1/reservationsCreate a reservation

Request

sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b" \
  -H "Content-Type: application/json" \
  -d '{
    "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
    "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
    "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
    "external_reference": "halo-0142/trip-77310",
    "metadata": {
      "unit": "0142"
    }
  }'
  • status is confirmed and start_at is the time of the request.
  • end_at is null: the vehicle stays until it checks out.
  • hold_until is when the held capacity ends and check-in closes: start_at plus 4 hours, 11:00 local time. Stage checked capacity for that whole hold.
  • access.method is open and access.plate is null: there is nothing to authorize on site.
  • Stage also sends a reservation.confirmed webhook.

201 Created

json
{
  "object": "reservation",
  "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
  "status": "confirmed",
  "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
  "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
  "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
  "start_at": "2026-11-02T14:00:02Z",
  "end_at": null,
  "hold_until": "2026-11-02T18:00:02Z",
  "access": {
    "method": "open",
    "plate": null,
    "instructions": "Enter from 3rd St. Fleet bays are on level 2."
  },
  "checked_in_at": null,
  "check_in_source": null,
  "checked_out_at": null,
  "check_out_source": null,
  "cancelled_at": null,
  "cancellation_reason": null,
  "external_reference": "halo-0142/trip-77310",
  "metadata": {
    "unit": "0142"
  },
  "updated_at": "2026-11-02T14:00:02Z",
  "created_at": "2026-11-02T14:00:02Z",
  "livemode": false
}

Drive there ​

Halo's backend sends the vehicle a destination (the location's coordinates from the search) and access.instructions for its route planner: enter from 3rd St and park on level 2.

The vehicle should check in soon. Check-in is accepted until hold_until, but a reservation that is not checked in by start_at plus the location's grace period becomes no_show and the capacity is released. If dispatch needs the vehicle before it parks, cancel instead (variant).

Check in ​

14:06 UTC · Unit 0142 parks on level 2

As soon as the vehicle is parked, the backend checks the reservation in, with the vehicle's GPS fix.

POST/fleet/v1/reservations/{id}/check-inCheck in

Request

sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99/check-in \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 4d5e6f70-8192-4a3b-8c4d-5e6f7a8b9c0d" \
  -H "Content-Type: application/json" \
  -d '{
    "coordinates": { "lat": 33.4515, "lng": -112.0688 }
  }'

status is checked_in and check_in_source is api. coordinates is optional; Stage records the distance from the location in the vehicle's history and flags a check-in far away from it. Stage also sends reservation.checked_in to Halo's webhook endpoint, which confirms the call to any other system listening for events.

200 OK

json
{
  "object": "reservation",
  "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
  "status": "checked_in",
  "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
  "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
  "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
  "start_at": "2026-11-02T14:00:02Z",
  "end_at": null,
  "hold_until": "2026-11-02T18:00:02Z",
  "access": {
    "method": "open",
    "plate": null,
    "instructions": "Enter from 3rd St. Fleet bays are on level 2."
  },
  "checked_in_at": "2026-11-02T14:06:12Z",
  "check_in_source": "api",
  "checked_out_at": null,
  "check_out_source": null,
  "cancelled_at": null,
  "cancellation_reason": null,
  "external_reference": "halo-0142/trip-77310",
  "metadata": {
    "unit": "0142"
  },
  "updated_at": "2026-11-02T14:06:12Z",
  "created_at": "2026-11-02T14:00:02Z",
  "livemode": false
}

Wait for a ride ​

While Unit 0142 is parked

There is nothing to call while the vehicle waits. Stage holds the space until hold_until (18:00:02 UTC, 11:00 local), and while the vehicle is checked in it keeps extending the hold:

  • About 15 minutes before hold_until, Stage extends the hold by an hour if the location still has capacity, and sends reservation.updated with the new hold_until. Had Unit 0142 still been parked at 17:45 UTC, hold_until would have moved to 2026-11-02T19:00:02Z, and so on every hour.
  • If the location is full, the hold is not extended. The vehicle may still stay, but 15 minutes after hold_until Stage adds an overstay event to the vehicle's history and sends reservation.updated. Halo treats that as a signal to move the vehicle or check it out.

Halo's webhook receiver verifies the Stage-Signature, deduplicates on the event id, and stores the latest hold_until with the unit. See Webhooks.

Event body: reservation.updated (hold extended at 17:45 UTC)
json
{
  "object": "event",
  "id": "62d6e1f2-7960-405a-8e26-a681f0177ddc",
  "type": "reservation.updated",
  "api_version": "2026-11-01",
  "data": {
    "object": {
      "object": "reservation",
      "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
      "status": "checked_in",
      "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
      "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
      "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
      "start_at": "2026-11-02T14:00:02Z",
      "end_at": null,
      "hold_until": "2026-11-02T19:00:02Z",
      "access": {
        "method": "open",
        "plate": null,
        "instructions": "Enter from 3rd St. Fleet bays are on level 2."
      },
      "checked_in_at": "2026-11-02T14:06:12Z",
      "check_in_source": "api",
      "checked_out_at": null,
      "check_out_source": null,
      "cancelled_at": null,
      "cancellation_reason": null,
      "external_reference": "halo-0142/trip-77310",
      "metadata": {
        "unit": "0142"
      },
      "updated_at": "2026-11-02T17:45:04Z",
      "created_at": "2026-11-02T14:00:02Z",
      "livemode": false
    }
  },
  "created_at": "2026-11-02T17:45:05Z",
  "livemode": false
}

Check out when a ride is hailed ​

14:33 UTC · a new ride is assigned

Dispatch assigns Unit 0142 a ride. As the vehicle pulls out, the backend checks the reservation out, which completes it and releases the space.

POST/fleet/v1/reservations/{id}/check-outCheck out

Request

sh
curl -X POST https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99/check-out \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b"
  • status is completed and check_out_source is api.
  • end_at stays null: the stay had no fixed end. checked_out_at is when it ended.
  • Stage sends reservation.completed.

If the backend never checked out, the reservation would stay checked_in and keep its hold.

200 OK

json
{
  "object": "reservation",
  "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
  "status": "completed",
  "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
  "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
  "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
  "start_at": "2026-11-02T14:00:02Z",
  "end_at": null,
  "hold_until": "2026-11-02T18:00:02Z",
  "access": {
    "method": "open",
    "plate": null,
    "instructions": "Enter from 3rd St. Fleet bays are on level 2."
  },
  "checked_in_at": "2026-11-02T14:06:12Z",
  "check_in_source": "api",
  "checked_out_at": "2026-11-02T14:33:40Z",
  "check_out_source": "api",
  "cancelled_at": null,
  "cancellation_reason": null,
  "external_reference": "halo-0142/trip-77310",
  "metadata": {
    "unit": "0142"
  },
  "updated_at": "2026-11-02T14:33:40Z",
  "created_at": "2026-11-02T14:00:02Z",
  "livemode": false
}

Check the status ​

Webhooks keep Halo's view current, but the backend can always ask. For example, after a restart it re-reads every reservation it still considers active. To find reservations by unit or trip, list them with external_reference, for example GET /fleet/v1/reservations?external_reference=halo-0142/trip-77310.

GET/fleet/v1/reservations/{id}Retrieve a reservation
sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99 \
  -H "Authorization: ******"

The response is the reservation as returned by the last call: here the completed reservation from the check-out. While a vehicle is parked, hold_until shows how long the space is held.

Variants ​

The same integration handles the detours. Each one is a single extra call.

Know when the ride is: set an end

PATCH end_at with If-Match; the hold follows the new end.

Dispatched before check-in: cancel

Release the capacity before the vehicle parks.

The garage is full

Branch on capacity_unavailable and try the next location.

Going offline overnight

The same open-ended call, held through the night.

Know when the ride is: set an end ​

14:20 UTC

Sometimes dispatch knows the next job in advance: here, a scheduled pickup nearby at 15:40 UTC, so Unit 0142 must leave by 15:30. The backend gives the reservation a fixed end. It reads the reservation first and sends its ETag as If-Match, so it never overwrites a change it hasn't seen (such as a hold extension).

PATCH/fleet/v1/reservations/{id}Extend or change a reservation

Request

sh
curl -i https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99 \
  -H "Authorization: ******"
# HTTP/2 200
# etag: "7Hq2LmX9cV4bN1zR8tY6wK3pJ5s"

curl -X PATCH https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99 \
  -H "Authorization: ******" \
  -H 'If-Match: "7Hq2LmX9cV4bN1zR8tY6wK3pJ5s"' \
  -H "Content-Type: application/json" \
  -d '{ "end_at": "2026-11-02T15:30:00Z" }'

The reservation is now a fixed one: hold_until equals end_at, and a reservation.updated webhook follows. Staying more than 15 minutes past end_at is recorded as an overstay.

Any future end_at works, before or after the current hold_until, also once the vehicle is checked in. An end_at later than the hold needs capacity: if the garage is full, the backend gets 409 capacity_unavailable. A 412 precondition_failed means the reservation changed since the read: read it again and retry. A PATCH without end_at (for example, only metadata) keeps a reservation open-ended. "end_at": null is not accepted: a fixed reservation cannot become open-ended again.

200 OK

json
{
  "object": "reservation",
  "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
  "status": "checked_in",
  "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
  "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
  "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
  "start_at": "2026-11-02T14:00:02Z",
  "end_at": "2026-11-02T15:30:00Z",
  "hold_until": "2026-11-02T15:30:00Z",
  "access": {
    "method": "open",
    "plate": null,
    "instructions": "Enter from 3rd St. Fleet bays are on level 2."
  },
  "checked_in_at": "2026-11-02T14:06:12Z",
  "check_in_source": "api",
  "checked_out_at": null,
  "check_out_source": null,
  "cancelled_at": null,
  "cancellation_reason": null,
  "external_reference": "halo-0142/trip-77310",
  "metadata": {
    "unit": "0142"
  },
  "updated_at": "2026-11-02T14:20:05Z",
  "created_at": "2026-11-02T14:00:02Z",
  "livemode": false
}

Dispatched before check-in: cancel ​

14:03 UTC

While Unit 0142 is still on its way to the garage, dispatch assigns it a ride. The backend cancels the reservation so the capacity is released.

POST/fleet/v1/reservations/{id}/cancelCancel a reservation

Request

sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations/e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99/cancel \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b" \
  -H "Content-Type: application/json" \
  -d '{ "reason": "New ride dispatched before check-in" }'

Cancelling releases the capacity right away; a reservation that is never checked in becomes a no_show instead. A reservation that has already checked_in cannot be cancelled; the vehicle checks out instead (step 8).

200 OK

json
{
  "object": "reservation",
  "id": "e4fe2beb-94a2-4daa-9ed3-e8b82cb96b99",
  "status": "cancelled",
  "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
  "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
  "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
  "start_at": "2026-11-02T14:00:02Z",
  "end_at": null,
  "hold_until": "2026-11-02T18:00:02Z",
  "access": {
    "method": "open",
    "plate": null,
    "instructions": "Enter from 3rd St. Fleet bays are on level 2."
  },
  "checked_in_at": null,
  "check_in_source": null,
  "checked_out_at": null,
  "check_out_source": null,
  "cancelled_at": "2026-11-02T14:03:00Z",
  "cancellation_reason": "New ride dispatched before check-in",
  "external_reference": "halo-0142/trip-77310",
  "metadata": {
    "unit": "0142"
  },
  "updated_at": "2026-11-02T14:03:00Z",
  "created_at": "2026-11-02T14:00:02Z",
  "livemode": false
}

The garage is full: try the next location ​

Between the search and the reservation, other fleets may take the remaining capacity. For an open-ended reservation, Stage needs capacity for the whole first hold, not just the hour Halo searched. If there is none, the request fails with 409. Halo branches on code, not on the message: for capacity_unavailable it moves to the next location in its ranked list, with a new Idempotency-Key (it is a different request).

First attempt: 409 Conflict

json
{
  "type": "https://fleet.parkingmgt.com/docs/reference?error=capacity-unavailable#description/errors",
  "title": "Capacity unavailable",
  "status": 409,
  "detail": "No capacity is available for the requested window.",
  "instance": "/fleet/v1/reservations",
  "code": "capacity_unavailable",
  "request_id": "f0f674fb-456e-49f9-bde4-6e68f7834d2e"
}

Then: the next location

sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 0a9b8c7d-6e5f-4a3b-9c2d-1e0f2a3b4c5d" \
  -H "Content-Type: application/json" \
  -d '{
    "location": "4efcd840-7184-4843-94ae-452a37bef020",
    "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
    "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
    "external_reference": "halo-0142/trip-77310",
    "metadata": {
      "unit": "0142"
    }
  }'

The response is a 201 open-ended reservation at the Roosevelt Row Surface Lot, with a 4-hour hold until 11:00 local. The lot closes at 23:00 and has no overnight access, so a reservation made there later in the day gets a shorter hold that ends at closing time. Check-in and check-out work exactly as above. Every error code, with what to do about it, is in the API reference.

Going offline overnight ​

05:00 UTC · 22:00 local

At the end of the service day Halo parks Unit 0142 at the garage until the morning shift. It is the same open-ended call, made at 22:00 local (05:00 UTC). There is no separate overnight service.

sh
curl https://fleet.parkingmgt.com/fleet/v1/reservations \
  -H "Authorization: ******" \
  -H "Idempotency-Key: 2b3c4d5e-6f70-4a81-9b2c-3d4e5f6a7b8c" \
  -H "Content-Type: application/json" \
  -d '{
    "location": "559d15ed-9b15-4a0a-8aee-6201e6d7eece",
    "vehicle": "e3bb4bac-9680-45d2-a627-64582f482379",
    "service_id": "5f1c2a8e-3b47-4d9a-8e6f-1c2d3b4a5e60",
    "external_reference": "halo-0142/overnight-2026-11-02",
    "metadata": {
      "unit": "0142"
    }
  }'

The first hold runs 4 hours, until 02:00 local (09:00 UTC), and Stage extends it an hour at a time through the night while the vehicle is checked in. The backend checks in when the vehicle parks and checks out when it leaves for its first ride at 06:10 local (13:10 UTC).

If Halo knows the vehicle's schedule, a fixed reservation works too: start_at 2026-11-03T05:00:00Z and end_at 2026-11-03T13:00:00Z (22:00 to 06:00 local) holds the space for exactly that time. The Roosevelt Row lot (open 05:00–23:00) is not a candidate for either: an open-ended hold there would end at 23:00, and a fixed overnight window gets 422 outside_operating_hours.

What Halo built ​

A complete dispatch integration

  • A startup check with GET /fleet/v1/account, and Parking's id from GET /fleet/v1/services.
  • A search for Parking around the vehicle for the next hour, and its own clearance check against height_limit_cm.
  • A ranking by distance, availability, and hours.
  • POST /fleet/v1/reservations without start_at and end_at, with an Idempotency-Key and external_reference, falling back to the next location on capacity_unavailable.
  • /check-in when the vehicle parks and /check-out when a ride is hailed.
  • A webhook receiver for reservation.* events that tracks hold_until and reacts to overstays.
  • PATCH with If-Match to set an end when the next job is known, and /cancel when a ride comes before check-in.

Next ​

Webhooks

Receive and verify reservation events.

Conventions

IDs, pagination, idempotency, and errors.