Booking a standard trip

Booking a standard trip is a feature available on the customer dashboard, and via Open API that allows your customers to create a trip, while you manage the trip information processes from initiation to reconciliation.

So when your customers book a trip, they can view the trip on their dashboard, while you manage the trip process on your dashboard.

Collect trip information

The trip_type, category_size, scheduled_date, source, destination, and parameters are required to book a customer trip. They are not optional. The email, first_name, last_name, and phone fields allow us to validate the user.

The callback_url field is an optional field which redirects back to your application after a successful payment checkout.

Endpoint
https://dodge.truq.it/booking-service/booking/booking-trip/create_open_trip/
-H "Authorization: Bearer YOUR_PUBLIC_KEY"
-H "Organisation: YOUR_REFERENCE"
-X POST
Request Body
{ 
    "source": { 
        "address": "Ikoyi", 
        "latitude": 6.4500, 
        "longitude": 3.4333, 
        "state": "Lagos" 
    }, 
    "destination": { 
        "address": "Ikoyi", 
        "latitude": 6.4500, 
        "longitude": 3.4333, 
        "state": "Lagos",
        "stops": {
            "number": 0,
            "stopovers": []
        }
    },
    "email": "john@doe.com",
    "first_name": "John",
    "last_name": "Doe",
    "phone": "2348000000000",
    "trip_type": "INTRASTATE",
    "category_size": "422cd8e2-4a19-42c2-97c8-xxxxxxxxxxxx",
    "callback_url": "https://beta.mytruq.com/tracking-page",
    "scheduled_date": "2023-03-22T10:00:00.755446+00:00"   
}

Last updated