# Supply reports

> Required: driver counts by area and ~5 km cell, every 1 to 5 minutes while you have drivers online.

POST driver counts to `https://www.perfectride.io/api/partner/v1/supply`, signed like events with path `/supply`. At least every 15 minutes when nobody is online. Counts only: no driver names, ids or exact locations.

**Body**

```json
{
  "reported_at": "2026-12-05T09:30:00Z",
  "fleet_total_drivers": 420,
  "areas": [
    { "state": "Rivers", "city": "Port Harcourt", "tier": "Economy",
      "total_drivers": 180, "online_drivers": 42, "on_trip_drivers": 17 }
  ],
  "cells": [
    { "geohash5": "s0v52", "tier": "Economy", "online_drivers": 9 }
  ]
}
```

## Fields

| Field | Rules |
|---|---|
| `reported_at` | When you counted. Not more than 5 minutes ahead of our clock, not older than 24 hours |
| `fleet_total_drivers` | Required. All your active drivers, every area (for example, drove in the last 30 days) |
| `areas` | Required, 1 to 50: one per state, city and tier |
| `areas[].state` | A Nigerian state: `Rivers`, `FCT`, `Lagos`. `Abuja` and `Port Harcourt` are understood |
| `areas[].city` | Optional. Leave it out for the whole state |
| `areas[].tier` | `Economy`, `Comfort` or `Premium` |
| `areas[].total_drivers` | Required. Active drivers in that area and tier |
| `areas[].online_drivers` | Required. Online now, free or on a trip. At most `total_drivers` |
| `areas[].on_trip_drivers` | Recommended. On a trip now, on any app. At most `online_drivers` |
| `cells` | Required, up to 500, empty when nobody is online. Online drivers per geohash cell of precision 5 (`geohash5`, about 5 km). Leave out cells with 0 |

## Answers

**Response 200**

```json
{ "ok": true, "stored": 2, "ignored": 0, "cells": 1, "stale_after_seconds": 600 }
```

| Answer | Meaning |
|---|---|
| 200 | Stored. `ignored` counts rows older than a report we already hold |
| 400 `invalid_supply` | A missing or wrong field |
| 422 `inconsistent_counts` | Online over total, or on trip over online |
| 401, 411, 413 | As for events |
| 429 `rate_limited` | Over 60 reports a minute |

## Coverage

- We keep your latest report per area and cell. A report is stale after 10 minutes.
- We use them to see where your drivers are and where to bring riders.
- A live partner with no report for 15 minutes shows as degraded. Your rides are never held back for it.
- Certification needs one valid report with your sandbox key during the run.

## Next

- [Go-live checklist](https://docs.perfectride.io/docs/go-live.md): Everything that must be done before PerfectRide starts your pilot with live riders.
- [Errors](https://docs.perfectride.io/docs/errors.md): Every error code we return, why, and how to fix it.
- [Data rules](https://docs.perfectride.io/docs/data-rules.md): Rider data belongs to PerfectRide. What you may do with rider and driver data, and for how long.

Source: https://docs.perfectride.io/docs/supply-reports
