CancelTrip using feedUniqueId
API to cancel a trip
Clients call this API to cancel a previously created trip. trip_id needs to be passed to cancel trip URL /feedUniqueId/{feed_unique_id}. Also, a field comment
should be passed in the JSON body
API Endpoint:
https://integration.freighttiger.com/saas/trip/feedUniqueId/{feed_unique_id}/cancel - Integration/Sandbox Environment
https://www.freighttiger.com/saas/trip/feedUniqueId/{feed_unique_id}/cancel - Production Environment
Request Parameters:
Name | Type | Location | Description | Example |
---|---|---|---|---|
Authorization | string | headers | JWT token required to authenticate API call. | Authorization: Bearer eyJhbGciOiJIUzI1Ni |
Request Body:
Example value:
{
"comment": "Trip cancellation comment"
}
Schema:
{
"comment":{
"description":"trip cancellation comment",
"datatype":"string",
"example":"cancelling this trip because of duplicate entry",
"mandatory":true
}
}
Responses:
Status code 200 Trip cancelled successfully
{
"status": true,
"message": "Trip 9098273 has been cancelled."
}
Status code 422 Trying to cancel a already cancelled trip
Post your questions in the comment box to get answers from the experts who watch this page.
For engineering support: visit FT Support