Skip to content

Overview

This service is used to search for available cars and returns the prices & availability for each car for the requested pickup location,drop off location,date and passenger combination. It is designed to book cars in real time and will cover all the required information/details to integrate this car REST services to complete the booking process.

API service to be exposed

API Call API end point(POST) Request message Response message
Log-In /api/v1/auth/login loginRequest loginResponse
Car Search /api/v1/car/search carSearchRequest carSearchResponse
Get Car Cancellation policies /api/v1/car/cancellation-policy carCancellationPolicyRequest carCancellationPolicyResponse
Car Pre book /api/v1/reservation/car-pre-book carPreBookRequest carPreBookResponse
Car Book /api/v1/reservation/car-book carBookRequest carBookResponse
Cancellation /api/v1/reservation/car-cancel carCancellationRequest carCancellationResponse
Booking Retrieve /api/v1/reservation/car-book-retrieve carBookingRetrieveRequest carBookingRetrieveResponse
Log-Out /api/v1/auth/logout logoutRequest logoutResponse

Car Work Flow

Figure1


Response Meta Data

Each response has metadata section, and it will describe overall status of each response. The Metadata parameters are given below.

Tags Attribute Description
meta meta
(Object)
Meta data Tag
success
(String)
Response status will be return.
Ex: "true" OR "false"
statusCode
(String)
Response statusCode will be return.
Ex: -3, -2, -1, 0, 1, 2, 3
statusMessage
(String)
Response statusMessage will be return.
Ex:
NOT FOUND
UNAUTHORIZED
ERROR
WARNING
SUCCESS
FETCH LATER
NOT YET AVAILABLE