v1 — Online (sandbox open; live keys at onboarding)

Teksi Ride Partner API — v1

Rider-side Partner API for airlines and airports: quotes, bookings, tracking, passenger–driver chat, and automatic flight notices. Open to airline and airport partners worldwide. Sample payloads are illustrative — no secrets, no live fares.

Status
The API is online at the base URLs below. Sandbox keys are issued after an NDA is signed, for integration testing (no real dispatch). Live keys are issued per partner after onboarding and a signed commercial agreement.

Contents

  1. Overview and use cases
  2. Scope
  3. Environments and base URL
  4. Authentication
  5. Rate limits and idempotency
  6. Endpoints
  7. Passenger–driver chat
  8. Flight-aware pickups and notices
  9. Webhooks
  10. Booking status lifecycle
  11. Errors
  12. Billing and invoicing
  13. Data protection
  14. Versioning
  15. Support

1. Overview and use cases

Teksi Ride (teksiride.com) is a ride-hailing app, currently live in South Africa (ZA, ZAR) and Zimbabwe (ZW, USD), with more countries being added. The Partner API is open to airlines, airports and travel partners anywhere in the world; rides can be booked in any country Teksi Ride operates in. This Partner API lets airline and airport systems create fare quotes and manage bookings on behalf of riders — passengers, crew, and VIP guests — without building their own dispatch stack.

Typical partner use cases:

2. Scope

Rider-side only
Partners act as booking agents for riders. The API exposes quotes, bookings, cancellation, trip tracking, and booking-scoped chat. It does not expose driver registration, driver accounts, fleet management, or any driver-side control plane.
In scopeQuotes, bookings, cancel, tracking, passenger–driver chat, flight notices, service areas, partner webhooks, partner billing
Out of scopeDriver apps, driver onboarding, driver payouts, dispatcher tools, rider consumer auth
MarketsOpen to partners worldwide. Rides are currently available in ZA (South Africa) and ZW (Zimbabwe), with more countries added over time — check GET /service-areas for the live list.
Ride conceptsImmediate and scheduled bookings; airport transfers; shared / pool where offered in-market

3. Environments and base URL

EnvironmentBase URLPurpose
Sandboxhttps://teksi.teksiride.workers.dev/partner/sandbox/v1Integration testing with sandbox keys; simulated drivers, no real dispatch
Productionhttps://teksi.teksiride.workers.dev/partner/v1Live bookings through normal Teksi dispatch (live keys only)

All paths below are relative to the environment base URL. JSON request and response bodies use Content-Type: application/json and UTF-8. Each environment has an unauthenticated health check at /health. Sandbox keys start with tsk_test_ and live keys with tsk_live_; a key only works on its own environment.

4. Authentication

Each partner receives one or more API keys. Send the key as a Bearer token on every request:

Authorization: Bearer PARTNER_API_KEY_PLACEHOLDER

5. Rate limits and idempotency

Rate limit120 requests / minute / partner key
Quota headersX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
IdempotencySend Idempotency-Key (UUID) on POST /quotes and POST /bookings

Replaying the same Idempotency-Key with the same body within 24 hours returns the original result without creating a duplicate booking. A conflicting body with a reused key returns 409 idempotency_conflict.

6. Endpoints

All samples use placeholder data — not live Teksi fares or credentials.

POST /quotes

Fare estimate before booking.

Sample request

{"country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A","label":"OR Tambo Intl — Terminal A"},"dropoff":{"lat":-26.2041,"lng":28.0473,"label":"Sandton City"},"scheduled_at":null,"passengers":1}

Sample response

{"quote_id":"qte_01JPLACEHOLDER","currency":"ZAR","amount_total":450.00,"amount_excl_vat":391.30,"vat":58.70,"distance_km":28.4,"duration_min":35,"expires_at":"2026-11-09T08:15:00+02:00","ride_type":"airport","country":"ZA"}

Supported ride_type values: adhoc, airport, and shared (pool) where available in that country.

POST /bookings

Create an immediate or scheduled ride for a passenger/crew rider.

Sample request

{"quote_id":"qte_01JPLACEHOLDER","country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A","label":"OR Tambo Intl — Terminal A"},"dropoff":{"lat":-26.2041,"lng":28.0473,"label":"Sandton City"},"scheduled_at":"2026-11-09T14:30:00+02:00","flight":{"number":"SA123","airline_code":"SA","scheduled_arrival":"2026-11-09T14:10:00+02:00"},"passenger":{"name":"Alex Passenger","phone":"+27000000000","email":"passenger@example.com"},"payment_mode":"partner_account","partner_reference":"PNR-ABC123","notes":"Meet at arrivals — name board"}

Sample response

{"booking_id":"bkg_01JPLACEHOLDER","status":"confirmed","currency":"ZAR","amount_total":450.00,"scheduled_at":"2026-11-09T14:30:00+02:00","payment_mode":"partner_account","partner_reference":"PNR-ABC123","tracking_url":"https://teksiride.com/t/PLACEHOLDER"}

payment_mode: partner_account or passenger_pays. Omit scheduled_at for immediate dispatch.

GET /bookings/{id}

Retrieve booking status and details.

Sample response

{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A"},"dropoff":{"lat":-26.2041,"lng":28.0473},"scheduled_at":"2026-11-09T14:30:00+02:00","flight":{"number":"SA123","status":"on_time"},"passenger":{"name":"Alex Passenger","phone":"+27000000000"},"vehicle":{"category":"airport","label":"Assigned vehicle","plate_masked":"CA •••• 123"},"driver_display":{"name":"Jordan D.","rating":4.9},"amount_total":450.00,"currency":"ZAR","payment_mode":"partner_account"}

driver_display and masked plate are rider-facing presentation fields. Partners cannot list, assign, or manage drivers through this API.

PATCH /bookings/{id}

Update pickup time and/or flight details before trip start.

Sample request

{"scheduled_at":"2026-11-09T15:05:00+02:00","flight":{"number":"SA123","scheduled_arrival":"2026-11-09T14:45:00+02:00","delay_minutes":35}}

Sample response

{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","scheduled_at":"2026-11-09T15:05:00+02:00","flight":{"number":"SA123","status":"delayed","delay_minutes":35},"updated_at":"2026-11-09T13:40:00+02:00"}

When scheduled_at changes and a driver is already assigned, the platform notifies that assigned driver of the new pickup time only (no reassignment).

POST /bookings/{id}/cancel

Cancel a booking on behalf of the rider.

Sample request

{"reason":"flight_cancelled","note":"Inbound flight cancelled by carrier"}

Sample response

{"booking_id":"bkg_01JPLACEHOLDER","status":"cancelled","cancelled_at":"2026-11-09T13:42:00+02:00","cancellation_fee":0,"currency":"ZAR"}

GET /bookings/{id}/tracking

Rider-view live location and ETA for an assigned trip.

Sample response

{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","eta_minutes":12,"driver_location":{"lat":-26.1501,"lng":28.2104,"updated_at":"2026-11-09T14:18:00+02:00"},"pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A"}}

Available after driver_assigned until completed or cancelled. Trip-scoped rider tracking only.

GET /service-areas

List supported airports, terminals, and operating countries. Query example: GET /service-areas?country=ZA

Sample response

{"countries":[{"code":"ZA","currency":"ZAR","active":true},{"code":"ZW","currency":"USD","active":true}],"airports":[{"code":"JNB","name":"O.R. Tambo International","country":"ZA","terminals":["A","B"],"active":true},{"code":"CPT","name":"Cape Town International","country":"ZA","terminals":["1"],"active":true},{"code":"HRE","name":"Robert Gabriel Mugabe International","country":"ZW","terminals":["1"],"active":true}]}

POST /bookings/{id}/messages · GET /bookings/{id}/messages

Passenger–driver chat for an active booking (partner sends on behalf of the passenger).

Sample POST body

{"body":"I am at arrivals — Terminal A"}

Sample POST response

{"message_id":"msg_01JPLACEHOLDER","booking_id":"bkg_01JPLACEHOLDER","sender":"passenger","body":"I am at arrivals — Terminal A","created_at":"2026-11-09T14:20:00+02:00"}

Allowed from driver_assigned through completed. Messages sanitized and capped (maximum 500 characters). Driver replies arrive as webhook message.received.

PUT /webhooks · GET /webhooks

Register or inspect the partner HTTPS callback URL and event subscriptions. Webhook secret is shown on register/replace (store securely).

POST /bookings/{id}/flight-sync

Sandbox only: simulates a flight status (delayed, landed or departed) so you can test the driver notices and webhooks. In production this returns 501, because flight changes are sent with PATCH /bookings/{id}.

7. Passenger–driver chat

Partners can relay short messages to the assigned driver on behalf of the passenger, and read the thread for that booking. Booking-scoped rider chat only.

8. Flight-aware pickups and notices

Partners may attach a flight number and scheduled arrival when creating or updating a booking. In sandbox, POST /bookings/:id/flight-sync uses a mock feed. In production, flight-sync returns 501 flight_data_not_configured; partners move pickups with PATCH scheduled_at, and the assigned driver is told the new time.

Automatic notices
On delayed, landed, or departed, Teksi notifies the assigned driver and the passenger/partner via webhooks flight.delayed, flight.landed, or flight.departed. On delay, pickup time is also adjusted and only the assigned driver is updated — no reassignment, no automatic fare change.

9. Webhooks

Partners register an HTTPS callback URL. Teksi POSTs JSON event payloads when a booking progresses.

EventWhen it fires
booking.confirmedBooking accepted and awaiting dispatch / schedule
driver.assignedA driver is assigned to the booking
driver.arrivedAssigned driver marked arrived at pickup
trip.startedTrip in progress
trip.completedTrip completed; final amounts available
booking.cancelledBooking cancelled by partner, rider, or system
message.receivedDriver replied on the booking chat thread
flight.delayedFlight adapter reported a delay (pickup may be adjusted)
flight.landedFlight adapter reported landed
flight.departedFlight adapter reported departed

Sample webhook payload

{"id":"evt_01JPLACEHOLDER","type":"driver.assigned","created_at":"2026-11-09T14:05:00+02:00","data":{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","eta_minutes":18,"partner_reference":"PNR-ABC123"}}

Signature verification

Each delivery includes header X-Teksi-Signature: t=TIMESTAMP,v1=HMAC_SHA256_HEX where the signed string is TIMESTAMP + "." + raw_body and the key is the partner webhook secret. Reject if the timestamp is older than 5 minutes or the HMAC does not match.

Retries

Failed deliveries (non-2xx or timeout) are retried up to 5 times, after 1 minute, 5 minutes, 15 minutes, 1 hour and 6 hours. Partners should treat events as at-least-once and dedupe on id.

10. Booking status lifecycle

Flow: confirmed → driver_assigned → driver_arrived → in_progress → completed. Cancel may occur from confirmed / assigned / arrived (dashed transitions).

StatusMeaning
confirmedBooking created; waiting for schedule or dispatch
driver_assignedDriver assigned; tracking may begin
driver_arrivedDriver at pickup
in_progressTrip underway
completedTrip finished
cancelledBooking cancelled; terminal state

11. Errors

Errors return a consistent JSON body:

{"error":{"code":"invalid_request","message":"pickup.terminal is required for airport ride_type","request_id":"req_01JPLACEHOLDER"}}
HTTPcodeWhen
400invalid_requestValidation failed
401unauthorizedMissing or invalid API key
403forbiddenKey not allowed for this action or IP
404not_foundUnknown booking or quote
409conflictIllegal status transition
409idempotency_conflictSame Idempotency-Key, different body
422unprocessableQuote expired or outside service area
429rate_limitedPartner rate limit exceeded
500internal_errorUnexpected server fault
503unavailableTemporary outage; retry with backoff

12. Billing and invoicing

When payment_mode is partner_account, completed trips accrue to the partner’s corporate ledger. Invoicing cadence, currency per country (for example ZAR in South Africa and USD in Zimbabwe), and dispute windows are set in the commercial agreement.

13. Data protection

Partners must process passenger personal information in line with applicable law, including POPIA (Protection of Personal Information Act) for South Africa, Zimbabwe’s data-protection requirements, and the data-protection laws of the partner’s own country (such as the GDPR) where they apply. Collect only what is needed to fulfil the transfer. Do not use Teksi rider data for unrelated marketing without a lawful basis and Teksi’s written agreement.

Webhook endpoints must use HTTPS. Retain booking data only as long as required for operations, compliance, and the partner agreement.

14. Versioning

Current versionv1
URL policyMajor version in path (/partner/v1); breaking changes require a new major version
CompatibilityAdditive fields may appear in minor revisions without a path change

15. Support

Partner integrationspartners@teksiride.com
Technical supportpartners@teksiride.com
OnboardingRequest access at partners@teksiride.com. Sandbox keys are issued once an NDA is signed (immediately if one is already in place). Live keys are issued after onboarding and a signed commercial agreement.