Getting a Quote

A customer may choose to get a quote for the trip before proceeding to booking and confirming payment for the trip. The trip quote provides details and a breakdown of the cost of the trip. Therefore before your customers book a trip, they are allowed to see information about the cost of the trip. The trip quote is not considered a trip, therefore a trip is not initiated by the customer.

Collect trip information

The trip_type, category_size, scheduled_date, source, and destination parameters are required to calculate a charge for a quote, they can be optional fields. We also collect email, phone, first_name, and last_name fields for the user, they are also optional fields.

Endpoint
https://dodge-apis-c2btvqbhlq-uc.a.run.app/booking-service/booking/booking-trip/check_quote/
-H "Authorization: Bearer YOUR_PUBLIC_KEY"
-H "Organisation: YOUR_REFERENCE"
-X POST
Request body
{
    "last_name": "doe",
    "phone": "2348113780934",
    "first_name": "john",
    "email": "user@gmail.com",
    "source": {
        "address": "ikeja",
        "longitude": 3.3717084,
        "latitude": 7.144144799999999,
        "city": "ABẸ́ÒKÚTA",
        "state": "Abẹ́òkúta"
    },
    "destination": {
        "address": "ibadan",
        "longitude": 5.8564864,
        "latitude": 6.927869299999999,
        "state": "ibadan",
        "city": "bodija",
        "stops": {
            "number": 0,
            "stopovers": [
                
            ]
        }
    },
    "extras": {
        "shrink_wraps": 2,
        "loaders": 4,
        "destination_storeys": 2,
        "source_storeys": 3
    },  
    "category_size": "7ad1f8c3-0368-47b2-8f9a-6150adc1ebff",
    "scheduled_date": "2023-08-10 10:00:06.755446+00:00",
    "estimated_value": "1000000",
    "trip_type": "INTRASTATE"
}

Types of Quotes

There are three (3) types of quotes that can be initiated by a customer:

  • Empty Quote: An empty quote is created when any of trip_type, category_size, scheduled_date, source, and destination is treated as an optional field

  • Merchant Quote: A merchant quote is created when a merchant coupon is passed in the coupon field. The quote also calculates and displays the discounted amount gotten from the discount code

  • Customer Quote: A customer quote is created when the quote is initiated without a merchant coupon code. A coupon code (not belonging to a merchant) can be applied, and the dicount is calculated and displayed

Last updated