# Stops

> Up to 3 stops between pickup and drop-off, priced in your quote. Off until you turn them on.

> **Note:** Nothing changes for you while your Max stops is 0, the default.

## Max stops

- Your own setting, 0 to 3, in the portal under **Stops**. Only an owner can change it. There is no API endpoint for it.
- We only ask you for a quote with N stops when your Max stops is N or more.
- Until a certification run with the stops check passes, we send you no trips with stops. Raising Max stops above what a run proved needs a new run.

## Quote and book

**Quote body with stops**

```json
{
  "pickup":  { "lat": 4.8156, "lng": 7.0345, "address": "Hotel Presidential, Aba Road, Port Harcourt" },
  "dropoff": { "lat": 4.8242, "lng": 6.9969, "address": "Genesis Centre, GRA Phase 2, Port Harcourt" },
  "stops": [
    { "lat": 4.8201, "lng": 7.0102, "address": "Garrison Junction, Port Harcourt", "order": 1 }
  ],
  "ride_class": "standard",
  "passengers": 1,
  "payment_method": "perfectride"
}
```

- `order` runs 1 to N in driving order. No `stops`, or an empty array, means no stops.
- Your `price` covers the whole route: pickup, each stop in order, then drop-off. No fee per stop.
- Waiting at stops is handled by PerfectRide with the rider. Do not add it to the price.
- `POST /trips` carries the same `stops` you quoted. Show them in order in your driver app.
- Stops are set before booking and never change during the trip.

## Stop events

Optional. Send them only between `trip.started` and `trip.completed`. They do not change the trip status; we use them to time waits.

**trip.arrived_at_stop**

```json
{
  "event": "trip.arrived_at_stop",
  "event_id": "ev_0020",
  "partner_trip_id": "t_9931",
  "pr_trip_id": "pr_55a9",
  "occurred_at": "2026-12-03T10:12:30Z",
  "stop_order": 1
}
```

**trip.departed_stop**

```json
{
  "event": "trip.departed_stop",
  "event_id": "ev_0021",
  "partner_trip_id": "t_9931",
  "pr_trip_id": "pr_55a9",
  "occurred_at": "2026-12-03T10:15:10Z",
  "stop_order": 1
}
```

| Case | Our answer |
|---|---|
| Sent before `trip.started` | 409 `retry_later` |
| A `stop_order` the trip does not have | 400 `invalid_event` |
| A repeat | 200, `result: "duplicate"` |

## Next

- [Trip events](https://docs.perfectride.io/docs/trip-events.md): Tell PerfectRide what happens on each trip, in order, and handle our answers.
- [Sandbox and test data](https://docs.perfectride.io/docs/sandbox.md): Test against PerfectRide before any rider is involved: portal tests, certification trips and fixed scenarios.
- [Quotes and booking](https://docs.perfectride.io/docs/quotes-and-booking.md): The four endpoints you host: quote, book, cancel and get a trip.

Source: https://docs.perfectride.io/docs/stops
