Fastag API 02

Get the details of the Fastag, that are active on vehicle number, check weather the vehicle contains any Fastag or Not

NOTE:

User have to enter vehiclenumber or tagid in request body. If user will enter both vehiclenumber and tagid in request body, user will get the error response from Fastag API. User have to enter one of these either vehiclenumber or tagid for get the response.

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": "MP09HF4987", 
"tagid": "34161FA8203286140F4064E0"
}

Enter either Vehicle number ot tag to find the details

Action

Hit Send Button

Success Response

In case tag id or vehicle number or Tagid exist

```json
{
    "success": true,
    "message": "Success",
    "data": {
        "response": [
            {
                "response": {
                    "result": "SUCCESS",
                    "successReqCnt": "1",
                    "totReqCnt": "1",
                    "respCode": "000",
                    "ts": "2024-07-12T11:43:38",
                    "vehicle": {
                        "errCode": "000",
                        "vehicledetails": [
                            {
                                "detail": [
                                    {
                                        "name": "TAGID",
                                        "value": "34161FA820328972487BE420"
                                    },
                                    {
                                        "name": "REGNUMBER",
                                        "value": "MP09DJ2744"
                                    },
                                    {
                                        "name": "TID",
                                        "value": "E200680A0000400AAC53CC34"
                                    },
                                    {
                                        "name": "VEHICLECLASS",
                                        "value": "VC20"
                                    },
                                    {
                                        "name": "TAGSTATUS",
                                        "value": "A"
                                    },
                                    {
                                        "name": "ISSUEDATE",
                                        "value": "2024-04-09"
                                    },
                                    {
                                        "name": "EXCCODE",
                                        "value": "00"
                                    },
                                    {
                                        "name": "BANKID",
                                        "value": "607417"
                                    },
                                    {
                                        "name": "COMVEHICLE",
                                        "value": "T"
                                    }
                                ]
                            }
                        ]
                    }
                },
                "responseStatus": "SUCCESS"
            }
        ],
        "error": "false",
        "code": "200",
        "message": "Success"
    }
}
```

IIn case if we enter both vehiclenumber and tagid

In case of vehiclenumber or tagid does not exist in FASTAG system - "errCode": "239"

In case of Invalid vehicle number ot tagid - "code": "400",

In case if we enter vehiclenumber or tagid null or empty - "code": "200",

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?