Fastag API

Vehicle tracking is easy now. Get the Location of the Vehicle on a real-time basis - once the good departure till delivery what was the route the vehicle followed in the journey?

This API will take Vehicle registration number and connect with FASTAG API to get data.

NOTE:

Data related to Vehicle number will be available for the next 3 days or 72 hours for Example: the first transaction happens on 1st Jan (data will be available for 3rd Jan, on 4th Jan no data will be available regarding the previous transaction i.e. 1st Jan)

Name
Description

Method Type

POST

Header

Key
Values
Mandatory

Authorization

JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNDgsInVzZXJuYW1lIjoicHJhdGVla3JhaStkZW1vQG1hc3RlcnNpbmRpYS5jbyIsImV4cCI6MTY5NjA0Njc4MCwiZW1haWwiOiJwcmF0ZWVrcmFpK2RlbW9AbWFzdGVyc2luZGlhLmNvIiwib3JpZ19pYXQiOjE2OTU5NjAzODB9.zWJsCcqMd06X1aMjvXPQRqQGQddKjF6vpkOZgKFG_80

Yes

Subid

Yes- Will be shared during POC.

Productid

arap

Yes

Mode

Buyer

Yes

Body

raw - JSON

{
 "vehiclenumber": "AB03Y8611"
}

Action

Hit Send Button

Success Response

In case vehicle number exist

{
    "response": [
        {
            "response": {
                "result": "SUCCESS",
                "respCode": "000",
                "ts": "2023-05-22T15:26:03",
                "vehicle": {
                    "errCode": "000",
                    "vehltxnList": {
                        "totalTagsInMsg": "5",
                        "msgNum": "1",
                        "totalTagsInresponse": "5",
                        "totalMsg": "1",
                        "txn": [
                            {
                                "readerReadTime": "2023-05-19 16:18:45.0",
                                "seqNo": "4eb70376-2bbe-422f-8d98-b59bda007230",
                                "laneDirection": "E",
                                "tollPlazaGeocode": "32.197881,75.533697",
                                "tollPlazaName": "LADPALWAN TOLL PLAZA",
                                "vehicleType": "VC11",
                                "vehicleRegNo": "AB03Y8611"
                            },        
                            {
                                "readerReadTime": "2023-05-20 01:10:43.0",
                                "seqNo": "a2b48c5d-2df6-46c8-96fb-89dcd79d230e",
                                "laneDirection": "E",
                                "tollPlazaGeocode": "31.731947,75.041365",
                                "tollPlazaName": "WARYAM NANGAL TOLL PLAZA",
                                "vehicleType": "VC11",
                                "vehicleRegNo": "AB03Y8611"
                            }
                        ]
                    }
                }
            },
            "responseStatus": "SUCCESS"
        }
    ],
    "error": "false",
    "code": "200",
    "message": "Success"
}

if Invalid vehicle number

"response": null, 
"error": "true", 
"code": "400", 
"message": "Data format failed OR wrong value entered at:  vehiclenumber. 

Format should follow ^[A-Z0-9]{5,11}$|^[A-Z0-9]{17,20}$" }

In case of vehicle number does not exist in FASTAG system

{
    "success": true,
    "message": "Success",
    "data": {
        "response": [
            {
                "response": {
                    "result": "FAILED",
                    "respCode": "000",
                    "ts": "2025-06-26T15:48:15",
                    "vehicle": {
                        "errCode": "740"
                    }
                },
                "responseStatus": "SUCCESS"
            }
        ],
        "error": "false",
        "code": "200",
        "message": "Success"
    }
}

Errors

Status Code 200: vehicle data response Status Code 400: Bad request (Invalid json syntax, invalid json key) Status Code 401 or 403: Unauthenticated or Unauthorized Status Code 500: Some internal server error occurred Status Code 502: Server is not responding.

Last updated

Was this helpful?