Get Driver Cancellation Reasons
GET /tms/drivers/cancellation-reasons
Description
This endpoint retrieves the list of reasons why drivers cancel trips. It provides detailed information on various reasons that may be used for driver cancellation.
Parameters
- tenantId (
string, header, required): The ID of the tenant. - countryCode (
string, header, required): The country code to filter the cancellation reasons.
Responses
-
200 OK
-
Media type: Controls Accept header.
-
Example Value:
{
"status": true,
"statusCode": 0,
"message": "Found driver cancellation reasons",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}
-
-
400 Bad Request
- Description: Invalid request.
- No links.
-
404 Not Found
- Description: Drivers cancellation reasons not found.
- No links.
LANGUAGE
CURL REQUEST
curl --request GET \
--url /tms/drivers/cancellation-reasons \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!