Early access · v1 preview

PerfectRide Partner API

Get PerfectRide riders. Fulfil their trips with your own drivers, at your normal prices.

For ride-hailing apps with their own drivers and dispatch. We handle booking, payment, support and verification. Running a fleet without an app? Fleet Connect.

Quote
under 2 seconds
Auth
Bearer key, both ways
Webhooks
HMAC-SHA256 signed
Money
kobo, NGN

How it works

Five steps, three calls.

  1. 1A rider requests a trip in PerfectRide.
  2. 2PerfectRide asks your API for a quote.
  3. 3If your quote is chosen, PerfectRide books the trip with you.
  4. 4Your driver fulfils it, and you send trip events back.
  5. 5The rider pays in PerfectRide or in cash, then rates the trip.

PerfectRide

rider app

Your API

your drivers

Getting started

From application to live.

  1. 1

    Apply

    Your platform, cities and daily trip volume

  2. 2

    Review

    We contact selected partners

  3. 3

    Sandbox access

    Sandbox keys; build against this spec

  4. 4

    Certification

    Pass our test suite

  5. 5

    Verification & agreement

    Business verification and partner agreement

  6. 6

    Pilot

    One city, limited volume

  7. 7

    Live

    Full access after a successful pilot

What certification checks10 tests
  • Quote returned within 2 seconds
  • Trip completed, paid in PerfectRide
  • Trip completed, paid in cash
  • All trip events sent in the correct order
  • Cancellation by the rider and by the driver
  • trip.no_driver sent when no driver is available
  • Ratings in both directions
  • Duplicate requests handled with Idempotency-Key
  • Webhook signatures sent and verified
  • Settlement report matches completed trips

Basics

Conventions used everywhere.

  • Direction
    RuleYou host the endpoints; PerfectRide calls them. You send events to us by webhook.
  • Authentication
    RuleAuthorization: Bearer <api_key>, both directions
  • Webhook signing
    RuleHMAC-SHA256 of the raw body, in X-PR-Signature
  • Idempotency
    RuleCreate and cancel requests include Idempotency-Key; repeats must not create duplicates
  • Money
    RuleIntegers in kobo. 1000000 = ₦10,000. NGN
  • Rates
    RuleBasis points. 2000 = 20%
  • Time
    RuleISO 8601, UTC
  • Environments
    RuleSandbox and live, separate keys, issued during onboarding

Endpoints you implement

You host these six. Tap one for the request and response.

POST/quotesGet a quote. Respond within 2 seconds.
Request
{
  "pickup":  { "lat": 6.4281, "lng": 3.4219, "address": "1 Admiralty Way, Lekki" },
  "dropoff": { "lat": 6.4474, "lng": 3.3903, "address": "Eko Hotel, Victoria Island" },
  "ride_class": "standard",
  "passengers": 1,
  "payment_method": "perfectride"
}
Response 200
{
  "quote_id": "q_8f21",
  "price": 1000000,
  "commission_rate_bps": 2000,
  "eta_seconds": 300,
  "expires_at": "2026-12-03T10:05:00Z"
}
  • price: what your own app charges for the same trip.
  • commission_rate_bps: your platform commission on this trip.
  • Quotes should stay valid for at least 2 minutes.
POST/tripsBook a trip.
Request
{
  "quote_id": "q_8f21",
  "pr_trip_id": "pr_55a9",
  "rider": { "first_name": "Ada", "masked_phone": "+2347000000123", "pin": "4821" },
  "payment_method": "perfectride"
}
Response 201
{ "partner_trip_id": "t_9931", "status": "searching" }
  • perfectride
    Driver collectsNothing. The rider already paid PerfectRide
  • cash
    Driver collectsThe final fare shown in the app

The driver must enter the rider’s pin to start the trip.

POST/trips/{partner_trip_id}/cancelCancel a trip.
Request
{ "reason": "rider_cancelled" }
Response 200
{ "status": "cancelled", "cancellation_fee": 0 }
GET/trips/{partner_trip_id}Get a trip. Used if a webhook is missed.

Returns the current status, driver, vehicle and fare.

POST/trips/{partner_trip_id}/ratingReceive the rider's rating and tip.
Request
{ "stars": 4, "tags": ["on_time", "clean_car"], "comment": "Great driver", "tip": 50000 }

Tags: on_time clean_car safe_driving polite good_route late unsafe_driving wrong_route overcharged asked_for_cash rude

GET/settlements?date=2026-12-03Settlement report. One row per trip for the day.
Response 200
{
  "date": "2026-12-03",
  "trips": [
    {
      "pr_trip_id": "pr_55a9",
      "partner_trip_id": "t_9931",
      "final_price": 1000000,
      "commission_rate_bps": 2000,
      "payment_method": "cash",
      "cash_collected": 1000000,
      "tip": 0,
      "status": "completed"
    }
  ]
}

Events you send

To the webhook URL we give you at onboarding.

Every event includes event, partner_trip_id, pr_trip_id and occurred_at.

  • trip.driver_assigned
    WhenA driver accepts
    Also senddriver, vehicle, eta_seconds
  • trip.driver_location
    WhenEvery 10 s before pickup, every 30 s during the trip
    Also sendlocation
  • trip.driver_arrived
    WhenDriver at pickup
    Also send—
  • trip.started
    WhenCorrect PIN entered
    Also send—
  • trip.completed
    WhenDrop-off
    Also sendfinal_price, commission_rate_bps, payment_method, cash_collected, tip
  • trip.cancelled
    WhenEither side cancels
    Also sendcancelled_by, reason, cancellation_fee
  • trip.no_driver
    WhenNo driver could be assigned
    Also send—
  • trip.rider_rated
    WhenDriver rates the rider
    Also sendstars, tags
Example: trip.driver_assigned
json
{
  "event": "trip.driver_assigned",
  "partner_trip_id": "t_9931",
  "pr_trip_id": "pr_55a9",
  "occurred_at": "2026-12-03T10:01:12Z",
  "driver": { "id": "d_771", "name": "Musa A.", "photo_url": "https://cdn.partner.com/d_771.jpg", "rating": 4.9, "trips": 2140 },
  "vehicle": { "make": "Toyota", "model": "Corolla", "color": "Black", "plate": "LND-123-AA" },
  "location": { "lat": 6.4301, "lng": 3.4188 },
  "eta_seconds": 240
}
Example: trip.completed
json
{
  "event": "trip.completed",
  "partner_trip_id": "t_9931",
  "pr_trip_id": "pr_55a9",
  "occurred_at": "2026-12-03T10:24:40Z",
  "final_price": 1000000,
  "commission_rate_bps": 2000,
  "payment_method": "cash",
  "cash_collected": 1000000,
  "tip": 0
}

Events PerfectRide sends you

  • driver.paused
    MeaningA driver is temporarily not eligible for PerfectRide trips (reason, until)
  • driver.reinstated
    MeaningThe driver is eligible again
  • partner.balance_due
    MeaningA settlement balance is due
  • account.status_changed
    MeaningYour account moved stage (for example sandbox → pilot)

Trip lifecycle

Left to right. Dashed states end the trip early.

  1. searchingno_driver
  2. driver_assignedcancelled
  3. driver_arrivedcancelled
  4. started
  5. completed

Errors

What PerfectRide does with each response.

  • 400
    MeaningInvalid request
    We thenCorrect it and resend
  • 401
    MeaningInvalid or missing key
    We thenStop the integration; both teams alerted
  • 409
    MeaningDuplicate Idempotency-Key
    We thenTreat it as success
  • 422
    MeaningNo drivers, or outside service area
    We thenTry another provider
  • 429
    MeaningRate limited
    We thenRetry after Retry-After
  • 5xx
    MeaningServer error
    We thenRetry once, then try another provider
Error body
{ "error": { "code": "no_drivers", "message": "No drivers available near pickup" } }

Technical requirements

  • Quote response
    RequirementUnder 2 seconds
  • Driver assignment
    RequirementWithin 3 minutes, or send trip.no_driver
  • Event delivery
    RequirementWithin 5 seconds of the event
  • Availability
    Requirement99.5% monthly
  • Security
    RequirementHTTPS only, keys server-side, webhook signatures verified

Versioning

v1 preview: it may change during early access. After general availability, new fields may appear at any time, so ignore ones you don’t recognise. Breaking changes ship as a new version with 90 days’ notice.

Apply for early access

We reply to selected partners. Questions: hello@perfectride.io

Developer integrations are not yet generally available. Submitting this form registers your interest only — it does not grant API access.