Self inspection Token status

See Self Inspection SSO Token Status

You can know the last known status of a token (and hence, of the self inspection) by calling the Tokenmanager/test route and entering the token followed by "-pwa", like so:

GET https://alto.tchek.fr/apiV1/tokenmanager/test?deviceId=[tokenUid-pwa]

Path Parameters

Name
Type
Description

deviceid*

String

The tokenUid followed by "-pwa". ex: T0F3DF9-pwa

{
    "token": {
        "expired": false, //whether the validity duration has expired
        "id": "zH10GzxInV", 
        "createdAt": "2023-06-13T07:01:31.475Z",
        "updatedAt": "2023-06-13T07:05:53.879Z",
        "tradeinVehicle": true,
        "tradeinStatus": 5, // the status of the inspection, see table above
        "tradeinStatusUpdatedAt": "2023-06-13T07:05:53.747Z",
        "sendingType": 0, // 0=Email, 1=SMS, 2=Email&SMS
        "tchekPtr": {
            "id": "cD3BrVtuhh", // the inspection ID related to the token
            "type": 0,
            "percentDamage": null
        },
        "vehiclePtr": {
            "id": "iJgGBgndLi" // the vehicle ID 
        },
        "customerPtr": {
            "id": "jI33qU2Dz1"  //the customer ID 
        },
        "creatorUserPtr": {
            "id": "xNsqRXw9gn" //the ID of the agent that entered the lead in the sytem
        },
        "uid": "T3D6288", 
        "deviceId": "T3D6288-pwa",
        "expiresIn": "2023-07-13T07:01:31.061Z", //the expiry date of the token
        "options": {
            "thirdParty": false, //the expiry date of the token
            "fastTrack": false, //false if the final user is not in charge of validating the damages
            "shootInspect": true,
            "cost": false, //false as the current token does not grant access to a report
            "report": false, //false as the current token does not grant access to a report
            "downloadRoi": false, //false as the current token does not grant access to a report
            "loadTchek": true //false as the current token is does not grant access to a report
        },
        "APITokenPtr": {
            "id": "lMIgFXXXXX" // the ApitokenId of the company that issued the token 
        }
    },
    "webApiVersion": "v2" // the version of the Shoot Inspect
}

Here are the status:

TradeinStatus
Description

0

The token has been created. The final user has not opened the URL to start the inspection.

1

The final user has opened the URL to start the inspection; but they have not yet taken the first picture.

2

The final user has taken at least the first picture, however they have not taken all the required pictures to complete the inspection.

3

The final user has taken all the required pictures to complete the inspection.

4

The damage validation (AKA "Fast Track") is being performed.

5

The inspection is complete (a report has been created after the damage validation).

6

The final user has received a chase-up message.

Last updated

Was this helpful?