API reference
All endpoints below require an Authorization: Bearer <accessToken> header (see Authentication) and are relative to https://api.boyasa.com/api.
Nearby drivers
/matching/find-driversFind nearby available drivers/riders for a trip or delivery.
{
"pickupLocation": { "lat": 6.5244, "lng": 3.3792 },
"destinationLocation": { "lat": 6.4550, "lng": 3.3841 },
"vehicleType": "BIKE",
"orderType": "PACKAGE_DELIVERY",
"countryId": "<country-id>",
"customerId": "<customer-id>",
"businessId": "<business-id>"
}Package delivery orders
/packages/estimateGet a fare estimate before creating an order.
/packages/createCreate a package delivery order. Requires the BUSINESS or CUSTOMER role.
{
"orderType": "BUSINESS_TO_CUSTOMER",
"businessId": "<business-id>",
"packageSize": "SMALL",
"description": "Documents",
"fragile": false,
"requiresSignature": true,
"vehicleType": "BIKE",
"pickupLat": 6.5244,
"pickupLng": 3.3792,
"pickupAddress": "12 Marina, Lagos Island",
"pickupContactName": "Ada",
"pickupContactPhone": "+2348012345678",
"deliveryLat": 6.4550,
"deliveryLng": 3.3841,
"deliveryAddress": "5 Admiralty Way, Lekki",
"deliveryContactName": "Chidi",
"deliveryContactPhone": "+2348098765432",
"paymentMethod": "WALLET"
}/packages/my-ordersList your package orders. Supports standard filter query params.
/packages/:idGet full details for a single order.
/packages/:id/cancelCancel a pending order.
Wallet
/walletGet the current user's wallet balance.
/wallet/transactionsPaginated wallet transaction history.
Payment links
Businesses use payment links to collect customer payment for orders that route back to the business wallet, instead of accepting payment directly.
/payment-linksCreate a payment link. Businesses only.
{
"amount": 5000,
"description": "Order #1032",
"currency": "NGN",
"orderId": "<order-id>",
"gatewayCode": "paystack"
}/payment-links/:referencePublic endpoint — no auth required. Used by the page the customer pays from.
Looking for something not listed here (drivers, staff, commissions, reports)? The full set of endpoints is documented via Swagger at https://api.boyasa.com/api/docs once your deployment enables it.
