API reference · Getting around
Locations
The airports where cars are collected and returned, and the terms to show your customers.
/locationsList hand-over points
The airports where cars are collected and returned. Any pick-up may be any drop-off (a one-way fee applies).
Response 200
A list in data. Each item:
codestringrequiredShort code, e.g. ABV or LOS.
namestringrequiredcitystringrequiredaddressstring · nullableinstructionsstring · nullableWhere our agent meets the customer.
openFromstringOpening time, HH:MM (Nigerian time).
openTostring
Errors
401unauthorized: the API key is missing, wrong or revoked.
curl "https://engine-production-0004.up.railway.app/api/v1/locations" \
-H "Authorization: Bearer wc_test_YOUR_KEY"{
"data": [
{
"code": "ABV",
"name": "Nnamdi Azikiwe International Airport, Abuja",
"city": "abuja",
"address": "Airport Road, Abuja",
"instructions": "Meet our agent at the arrivals hall.",
"openFrom": "00:00",
"openTo": "23:59"
}
]
}/locations/{code}Get a hand-over point
Path parameters
codestringrequiredThe airport code.
Example:
ABV
Response 200
In data:
codestringrequiredShort code, e.g. ABV or LOS.
namestringrequiredcitystringrequiredaddressstring · nullableinstructionsstring · nullableWhere our agent meets the customer.
openFromstringOpening time, HH:MM (Nigerian time).
openTostring
Errors
401unauthorized: the API key is missing, wrong or revoked.404not_found: no such thing, or it is not yours.
curl "https://engine-production-0004.up.railway.app/api/v1/locations/ABV" \
-H "Authorization: Bearer wc_test_YOUR_KEY"Response 200
In data:
rentalstringsalestringprivacystringpolicyobjectShow 2 fields
cancellationobjectShow 4 fields
fullRefundHoursintegerCancelling this many hours or more before pick-up refunds 100% of the rental price.
midRefundHoursintegerFrom here down to that many hours: midPercent.
midPercentintegerlatePercentintegerUnder midRefundHours (or a no-show): this percent of the rental price is refunded.
lateReturnobjectShow 2 fields
percentintegerThe late-return hourly rate is the daily price ÷ 24 times this percent.
graceMinutesintegerFree minutes after the return time.
Errors
401unauthorized: the API key is missing, wrong or revoked.
curl "https://engine-production-0004.up.railway.app/api/v1/terms" \
-H "Authorization: Bearer wc_test_YOUR_KEY"