Authentication
The Areye Business API uses API key authentication. Include your key in the X-Business-API-Key header on every request. You can find and rotate your key in the Business Portal under Settings & API.
X-Business-API-Key: your_api_key_here
Keep your API key secret. Never expose it in client-side code or public repositories. Use environment variables. Rotate your key immediately from the Business Portal if you suspect it has been compromised.
Endpoints
All paths are relative to the base URL https://api.areye.app/api. Every request is authenticated with your X-Business-API-Key unless marked public.
Bookings & Trips
/business/book
Book a ride, parcel, cargo or airport transfer on behalf of an employee or guest — supports scheduling and up to 3 stops
/business/trips
List all trips (filter by date range, employee, status, service type)
/business/trips/active
List trips currently in progress
/business/trips/{id}
Retrieve a single trip with receipt and route details
/business/trips/{id}/cancel
Cancel a trip before driver assignment (full refund to wallet)
/business/trips/{id}/waybill
Download the printable waybill for a delivery
/trip-track/{reference}
Public shareable tracking link — no authentication required
Batches & Subscriptions
/business/batches
Submit a bulk delivery batch (segment: parcel or cargo, up to 50 stops)
/business/batches
List batches with per-stop status
/business/batches/{id}
Retrieve a single batch with all stops
/business/subscriptions
Create a recurring delivery (parcel/cargo, days of week, pickup time)
/business/subscriptions
List recurring delivery subscriptions
/business/subscriptions/{id}/{action}
Pause, resume or cancel a subscription
Car Rental & Fleet
/business/rentals/vehicles
List your rental fleet with rates, deposits and availability
/business/rentals/vehicles
Add a vehicle to your rental fleet (photos, daily rate, km limits)
/business/rentals/vehicles/bulk
Bulk-add vehicles to your fleet
/business/rentals/vehicles/mode
Bulk-set listing mode (rental / ride-hailing / both)
/business/rentals/vehicles/{id}
Update a vehicle — rates, deposit, marketplace publishing
/business/rentals/vehicles/{id}
Remove a vehicle from your fleet
/business/rentals/bookings
List rental bookings against your fleet
/business/rentals/bookings
Create a rental booking (self-drive or chauffeured)
/business/rentals/bookings/{id}/{action}
Confirm, complete or cancel a rental booking
Rent-to-Own & Driver Applications
/business/rto
List rent-to-own agreements against your vehicles
/business/rto
Create a rent-to-own agreement (earnings-skim or direct-pay, chosen cadence)
/business/rto/{id}/payments
Record an instalment payment toward an agreement
/business/fleet-applications
List driver applications for your marketplace-published vehicles
/business/fleet-applications/{id}/{action}
Approve or reject a driver application (assigns the vehicle / opens the agreement)
Wallet, Payouts & Billing
/business/wallet
Get current wallet balance and billing type
/business/wallet/transactions
List wallet transactions (debits, credits, top-ups)
/business/wallet/topup
Initiate a wallet top-up via a payment gateway
/business/wallet/topup/{ref}/status
Poll the status of a wallet top-up
/business/payment-gateways
List available payment gateways for your zone
/business/payouts
List earnings payout requests
/business/payouts
Request a payout of positive earnings
/business/payouts/{id}
Cancel a pending payout request
/business/billing/statements
List monthly billing statements
People, Groups & Coupons
/business/people
List all employees and their spending limits
/business/people
Invite an employee to your business account
/business/people/{id}
Update employee details, group or spending limit
/business/people/{id}
Remove an employee from your account
/business/groups
List groups for organising employees
/business/groups
Create a group
/business/coupons
List employee discount coupons
/business/coupons
Issue a new coupon (fixed or percent)
/business/coupons/{id}/deactivate
Revoke a coupon
Reference Data
/business/vehicle-types
List vehicle types with live pricing and availability
/business/parcel-sizes
List parcel size tiers with rates
/business/zones
List active service zones
Account
/business/profile
Retrieve your business account profile and settings
/business/profile
Update company name, billing contact, webhook URL or low-balance threshold
/business/api-key
Retrieve API key metadata
/business/api-key/regenerate
Rotate your API key (previous key invalidated immediately)
/business/dashboard
Aggregate account metrics — trips, spend, active employees
Example: Book a ride for an employee
curl -X POST https://api.areye.app/api/business/book \
-H "X-Business-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"type": "ride",
"passenger_name": "Jane Smith",
"passenger_phone": "+267XXXXXXXX",
"pickup_address": "Plot 64271, Block 3 Industrial, Gaborone",
"pickup_lat": -24.6282,
"pickup_lng": 25.9231,
"dropoff_address": "Molapo Crossing Mall, Gaborone",
"dropoff_lat": -24.6540,
"dropoff_lng": 25.9110,
"vehicle_type_id": 1,
"expense_code": "TRAVEL-Q3"
}'
{
"success": true,
"data": {
"reference": "ARY-8F3A21",
"status": "pending",
"type": "ride",
"fare": 85.00,
"currency": "BWP",
"tracking_url": "https://api.areye.app/api/trip-track/ARY-8F3A21"
}
}
Booking a delivery instead? Set "type": "parcel" or "cargo" and add recipient details. Track any booking via the returned reference.
Webhooks
Set your webhook URL in Business Portal → Settings & API. Areye signs every payload — verify the X-Areye-Signature header (HMAC-SHA256 of the raw body using your webhook secret) before processing to confirm the event originated from Areye. The event name is also sent in the X-Areye-Event header.
| Event | Description |
|---|---|
trip.completed |
A trip booked under your account completed — final fare, receipt and route data available |
coupon.redeemed |
An employee redeemed a discount coupon on a trip |
wallet.low_balance |
Wallet balance fell below your configured threshold |
fleet.application.received |
A driver applied for one of your marketplace-published vehicles |
Rate Limits
The Business API operates on a fair-use basis suitable for normal booking and fleet-management workloads. If you are planning high-volume or bulk automation, contact our team so we can provision the right limits for your account. Endpoints that trigger external payment gateways may apply stricter per-minute limits.
Errors
Areye uses standard HTTP status codes. Responses are JSON with a success flag and, on failure, a human-readable message.
| Status | Meaning |
|---|---|
| 200 | Success |
| 201 | Created — resource was successfully created |
| 401 | Unauthorized — missing or invalid API key |
| 403 | Forbidden — your account does not have this feature enabled |
| 404 | Not Found — resource does not exist |
| 422 | Unprocessable — validation failed, insufficient wallet balance, or credit limit exceeded |
| 429 | Too Many Requests — rate limit exceeded |
| 500 | Internal Server Error — contact support |
SDKs & Libraries
Official SDKs are under development. In the meantime, use the REST API directly with your preferred HTTP client.
Ready to build?
Request an API key and sandbox access. Our team will set you up within 24 hours.
Request API Access