Get Available Drivers
GET /tms/drivers/available
Description
This endpoint retrieves a list of available drivers based on the specified parameters. It allows filtering by vehicle type and requires tenant and country information for accurate results.
Parameters
- tenantId (
string, header, required): The ID of the tenant. - countryCode (
string, header, required): The code for the country. - vehicleType (
string, query, optional): The type of vehicle to filter available drivers.
Responses
-
200 OK
-
Description: Found available drivers.
-
Media Type: Controls Accept header.
-
Example Value:
{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}
-
-
400 Bad Request
- Description: Invalid request.
- No links.
-
404 Not Found
- Description: Resource not found.
- No links.
LANGUAGE
CURL REQUEST
curl --request GET \
--url /tms/drivers/available \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!