Skip to content

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
{
  "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

  • reported_at
    RulesWhen you counted. Not more than 5 minutes ahead of our clock, not older than 24 hours
  • fleet_total_drivers
    RulesRequired. All your active drivers, every area (for example, drove in the last 30 days)
  • areas
    RulesRequired, 1 to 50: one per state, city and tier
  • areas[].state
    RulesA Nigerian state: Rivers, FCT, Lagos. Abuja and Port Harcourt are understood
  • areas[].city
    RulesOptional. Leave it out for the whole state
  • areas[].tier
    RulesEconomy, Comfort or Premium
  • areas[].total_drivers
    RulesRequired. Active drivers in that area and tier
  • areas[].online_drivers
    RulesRequired. Online now, free or on a trip. At most total_drivers
  • areas[].on_trip_drivers
    RulesRecommended. On a trip now, on any app. At most online_drivers
  • cells
    RulesRequired, 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
{ "ok": true, "stored": 2, "ignored": 0, "cells": 1, "stale_after_seconds": 600 }
  • 200
    MeaningStored. ignored counts rows older than a report we already hold
  • 400 invalid_supply
    MeaningA missing or wrong field
  • 422 inconsistent_counts
    MeaningOnline over total, or on trip over online
  • 401, 411, 413
    MeaningAs for events
  • 429 rate_limited
    MeaningOver 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.

View this page as Markdown · hello@perfectride.io