Report Vehicle
API Endpoint:
Method: PUT
https://integration-api.freighttiger.com/integration/integration/indent/{feed_unique_id}/report/vehicle - Integration/Sandbox Environment
https://api.freighttiger.com/api/integration/indent/{feed_unique_id}/report/vehicle - Production Environment
Request Headers:
Name | Type | Location | Description | Example |
---|---|---|---|---|
Authorization | string | headers | JWT token required to authenticate API call. | Authorization: Bearer eyJhbGciOiJIUzI1Ni |
Request Method : “PUT”
This API can be used in the below 3 ways:
Report a vehicle placed by the Transporter
Place a vehicle and Report it
Replace an already placed vehicle, Place and Report a different vehicle. Pass
"replaced_vehicle_number": "VEH-XYZ"
to request the replace behaviour.
Responses:
Status code 200 (Vehicle reported successfully)
{
"success": true,
"value": "Vehicle reported successfully"
}
Status code 400 (Bad Request)
{
"success": false,
"value": "Failed with reason - Vehicle Number is mandatory"
}
Status code 400 (Bad Request)
{
"success": false,
"value": "Failed with reason - reported_at is mandatory"
}
Status code 400 (Bad Request)
{
"success": false,
"value": "Failed with reason - reported_at is invalid"
}
Status code 400 (Bad Request)
{
"success": false,
"value": "Failed with reason - Invalid feed Unique Id"
}
Status code 400 (Bad Request)
{
"success": false,
"value": "Failed with reason - Invalid reporting request, no placed vehicle found for vehicle number"
}
Status code 401 (Unauthorized user)
{
"message": "Unauthorized"
}
Status code 500 (Internal server error)
{
"status": "INTERNAL_SERVER_ERROR",
"message": [
"Internal Application Error."
]
}
Post your questions in the comment box to get answers from the experts who watch this page.
For engineering support: visit FT Support