...
Code Block | ||
---|---|---|
| ||
{ "status": true, "message": "Trip 9098273 has been cancelled." } |
Tipnote |
---|
Status code 200 422 Trying to cancel an a already cancelled trip |
Code Block | ||
---|---|---|
| ||
{ "success": false, "message": [ "Trip is already cancelled" ] } |
Note |
---|
Status code 200 422 Trying to cancel a closed trip |
Code Block |
---|
{ "success": false, "message": [ "Could not cancel trip. Trip is in closed state." ] } |
Note |
---|
Status 200 422 No trip found |
Code Block | ||
---|---|---|
| ||
{ "success": false, "message": [ "No trip found." ] } |
Note |
---|
Status 200 500 Comment is required |
Code Block | ||
---|---|---|
| ||
{ "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. |