Buy Bus Ticket Endpoint (DEPRECATED - V1)
⚠️ DEPRECATION NOTICE: This endpoint is deprecated and supports only Timed Schedules. Please use the new V2 endpoint which supports both Timed Schedules and Random Schedules.
Overview
Important Notes
Migrating to V2
Feature
V1 (This Endpoint)
V2(New Endpoint)
API Reference
Endpoint
Request Body Parameters
Parameter
Type
Required
Description
Response Fields
Field
Type
Description
Body
schedule_idintegerRequired
Unique identifier for the bus schedule being booked.
seatsinteger[]Required
List of seat ID’s being booked (e.g., [9, 4, 3] indicates seats with ID 9, 4, and 3).
departure_datestring · date-timeRequired
Date and time of the bus departure in YYYY-MM-DD HH:MM format (e.g., "2024-07-23 20:21").
Responses
200
Successful purchase of bus tickets.
application/json
successbooleanOptionalExample:
truestatusintegerOptionalExample:
201messagestringOptionalExample:
Bus Tickets Purchased Successfully400
Bad Request - Invalid input
application/json
500
Internal Server Error
application/json
post
/api/v1/merpi/transport/buy/ticketsKey Differences from V2
What V1 Does Not Support (Use V2 Instead):
V1 vs V2 Request Comparison
Important Implementation Notes
For Timed Schedules (This Endpoint)
Why You Need to Migrate to V2
Common Use Cases
Timed Schedule Example: Lagos to Abuja
Last updated