Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "status": true,
    "message": "Trip 9098273 has been cancelled."
}
Tipnote

Status code 200 422 Trying to cancel an a already cancelled trip

Code Block
languagejson
{
    "success": false,
    "message": [
        "Trip is already cancelled"
    ]
}
Note

Status code 200 422 Trying to cancel a closed trip

language
Code Block
json
{
    "success": false,
    "message": [
        "Could not cancel trip. Trip is in closed state."
    ]
}
Note

Status 200 422 No trip found

Code Block
languagejson
{
    "success": false,
    "message": [
        "No trip found."
    ]
}
Note

Status 200 500 Comment is required

Code Block
languagejson
{
    "success": false,
    "message": [
        "\"comment\" is required"
    ]
}

If the trip is in transit and tracking has started, trip cancellation will not be allowed.

Info

There could be multiple scenarios for errors. Most frequent errors are listed above.