Report Vehicle

Report Vehicle

API Endpoint:

Request Headers:

Name

Type

Location

Description

Example

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:

  1. Report a vehicle placed by the Transporter

  2. Place a vehicle and Report it

  3. 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