API de décodage NIV
L'API NIV Decode permet d'accéder aux données décodées NIV propriétaires de ClearVin. Notre décodeur NIV décompose le numéro NIV en dizaines de points de données concernant la fabrication du véhicule.
Autorisation
Vous devrez utiliser une adresse e-mail et un mot de passe pour obtenir le jeton d'accès en utilisant cette URL :POST https://www.clearvin.com/rest/vendor/login
La demande doit provenir d'une adresse IP enregistrée.
La charge utile doit être :{ "email" : “exampl[email protected]”, "password": "11111111" }
Réponse
ÉLÉMENT | LA DESCRIPTION | FORMAT |
---|---|---|
status | Indique si la demande a été traitée avec succès ou s'est terminée avec une erreur | error chaîne ou ok |
message | Contient des détails sur le résultat si le statut est error | Chaîne |
token | Jeton Web JSON. Le jeton expire dans 10 minutes | Chaîne |
Si l'e-mail et le mot de passe sont corrects, le jeton sera renvoyé en réponse avec le jeton comme suit :
{ "status": "ok", "token": " I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0" }
Rapport
Après avoir reçu ce jeton, vous pouvez l'utiliser pour accéder aux rapports à l'aide de cette URL :GET https://www.clearvin.com/rest/vendor/report?vin=5UXFA13544LU21050
Pour utiliser ce point de terminaison, vous devez fournir l'en-tête HTTP avec le jeton fourni comme suit :Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0
Réponse
ÉLÉMENT | LA DESCRIPTION | TYPE |
---|---|---|
status | Indique si la demande a été traitée avec succès ou s'est terminée avec une erreur | error chaîne ou ok |
message | Contient des détails sur le résultat si le statut est error | Chaîne |
Report id | Contient l'identifiant du rapport actuel | Chaîne |
Report vin | Niv demandé | Chaîne |
Report report | Contient des informations complètes sur le véhicule | Objet JSON |
Vous pouvez également recevoir des rapports en vue html en utilisant une URL comme celle-ci :
GET https://www.clearvin.com/rest/vendor/report?vin=5UXFA13544LU21050&format=html
Et fournissez les prochains en-têtes HTTP :
Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0
Content-Type: text/html
Succès de l'authentification
Demande
curl -X POST \ https://www.clearvin.com/rest/vendor/login \ -H 'Content-Type: application/json' \ -d '{ "email": "[email protected]", "password": "yourpassword" }
Succès de la réponse
{ "status": "ok", "token": "I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0" }
Erreur de réponse
{ "status": "error", "message": "Wrong username or password" }
Rapport
Demande
curl - X GET\ 'https://www.clearvin.com/rest/vendor/report?vin=WBAFR7C57CC811956'\ - H 'Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0'\ - H 'Content-Type: application/json'
Succès de la réponse
{ "status": "ok", "result": { "id": "3646F9E2", "vin": "5FNYF4H52BB038147", "report": { "decoder": { "vin": "5FNYF4H52BB038147", "make": "Honda", "msrp": "$35,595 USD", "trim": "EX-L 4WD 5-Spd AT", "year": "2011", "depth": "", "model": "Pilot", "style": "SPORT UTILITY 4-DR", "tires": "245/65R17", "width": "78.50 in.", "4WdAwd": "Std.", "engine": "3.5L V6 SOHC 24V", "height": "72.70 in.", "length": "190.90 in.", "madeIn": "UNITED STATES", "invoice": "", "cargoNet": "N/A", "cdPlayer": "Std.", "extended": true, "fuelTank": "21.00 gallon", "absBrakes": "Std.", "amFmRadio": "Std.", "cdChanger": "Std.", "driveline": "4WD", "dvdPlayer": "N/A", "fogLights": "Std.", "rearWiper": "Std.", "skidPlate": "N/A", "subwoofer": "Std.", "trackRear": "67.50 in.", "wheelbase": "109.20 in.", "tachometer": "Std.", "trackFront": "67.70 in.", "alloyWheels": "Std.", "cargoLength": "", "cargoVolume": "18.00 cu.ft.", "cityMileage": "16 miles/gallon", "firstAidKit": "N/A", "frontAirDam": "Std.", "leatherSeat": "Std.", "maximumGvwr": "6096 lbs", "rearHipRoom": "56.90 in.", "rearLegroom": "38.50 in.", "rearSpoiler": "N/A", "steelWheels": "N/A", "widthAtWall": "", "chromeWheels": "N/A", "driverAirbag": "Std.", "frontHipRoom": "58.60 in.", "frontLegroom": "41.40 in.", "interiorTrim": "Beige Leather Interior | Black Leather Interior | Gray Leather Interior", "keylessEntry": "Std.", "powerSunroof": "Std.", "powerWindows": "Std.", "rearHeadroom": "39.80 in.", "removableTop": "N/A", "runFlatTires": "N/A", "rustDistance": "Unlimited mile", "rustDuration": "60 month", "splashGuards": "Std.", "standardGvwr": "6096 lbs", "steeringType": "R&P", "tiltSteering": "Std.", "tripComputer": "Std.", "basicDistance": "36,000 mile", "basicDuration": "36 month", "cruiseControl": "Std.", "exteriorColor": "Alabaster Silver Metallic | Bali Blue Pearl | Crystal Black Pearl | Dark Cherry Pearl | Mocha Metallic | Polished Metal Metallic | Taffeta White", "frontHeadroom": "39.30 in.", "manualSunroof": "Std.", "maximumTowing": "4500 lbs", "navigationAid": "N/A", "powerTrunkLid": "N/A", "rearBrakeType": "Disc", "runningBoards": "Opt.", "cargoAreaCover": "Opt.", "cassettePlayer": "N/A", "frontBrakeType": "Disc", "highwayMileage": "22 miles/gallon", "intervalWipers": "Std.", "maximumPayload": "1552 lbs", "powerDoorLocks": "Std.", "rearSpringType": "Coil", "rearSuspension": "Ind", "remoteIgnition": "N/A", "standardTowing": "4500 lbs", "airConditioning": "Std.", "antiBrakeSystem": "4-Wheel ABS", "deepTintedGlass": "Std.", "frontCooledSeat": "N/A", "frontHeatedSeat": "Std.", "frontSideAirbag": "Std.", "frontSpringType": "Coil", "frontSuspension": "Ind", "genuineWoodTrim": "N/A", "groundClearance": "8.00 in.", "optionalSeating": "", "passengerAirbag": "Std.", "passengerVolume": "152.70 cu.ft.", "standardPayload": "1552 lbs", "standardSeating": "8", "tractionControl": "Std.", "turningDiameter": "38.60 in.", "curbWeightManual": "", "rearShoulderRoom": "62.20 in.", "telematicsSystem": "N/A", "towHitchReceiver": "Std.", "transmissionLong": "5-Speed Automatic", "vehicleAntiTheft": "Std.", "widthAtWheelwell": "", "cargoAreaTiedowns": "Std.", "destinationCharge": "$780 USD", "frontShoulderRoom": "61.50 in.", "fullSizeSpareTire": "N/A", "rainSensingWipers": "N/A", "transmissionShort": "5A", "viNqueryVehicleId": "40831", "powertrainDistance": "60,000 mile", "powertrainDuration": "60 month", "rearWindowDefogger": "Std.", "tiltSteeringColumn": "Std.", "automaticHeadlights": "Std.", "curbWeightAutomatic": "4544 lbs", "frontSplitBenchSeat": "N/A", "heatedSteeringWheel": "N/A", "lockingDifferential": "N/A", "pickupTruckBedLiner": "N/A", "productionSeqNumber": "038147", "secondRowHeatedSeat": "N/A", "secondRowSideAirbag": "N/A", "tirePressureMonitor": "Std.", "trunkAntiTrapDevice": "N/A", "adjustableFootPedals": "N/A", "childSafetyDoorLocks": "Std.", "daytimeRunningLights": "Std.", "electronicParkingAid": "Std.", "frontPowerMemorySeat": "N/A", "heatedExteriorMirror": "Std.", "leatherSteeringWheel": "Std.", "secondRowFoldingSeat": "Std.", "automaticLoadLeveling": "N/A", "sideHeadCurtainAirbag": "Std.", "thirdRowRemovableSeat": "Std.", "secondRowRemovableSeat": "Std.", "secondRowSoundControls": "N/A", "frontPowerLumbarSupport": "Std.", "limitedSlipDifferential": "N/A", "loadBearingExteriorRack": "Opt.", "powerSlidingSideVanDoor": "N/A", "voiceActivatedTelephone": "N/A", "pickupTruckCargoBoxLight": "N/A", "telescopicSteeringColumn": "Std.", "towingPreparationPackage": "N/A", "electronicBrakeAssistance": "Std.", "lockingPickupTruckTailgate": "N/A", "glassRearWindowOnConvertible": "N/A", "slidingRearPickupTruckWindow": "N/A", "steeringWheelMountedControls": "Std.", "windDeflectorForConvertibles": "N/A", "powerAdjustableExteriorMirror": "Std.", "vehicleStabilityControlSystem": "Std.", "driverMultiAdjustablePowerSeat": "Std.", "highIntensityDischargeHeadlights": "N/A", "frontSideAirbagWithHeadProtection": "N/A", "passengerMultiAdjustablePowerSeat": "Std.", "secondRowMultiAdjustablePowerSeat": "N/A", "electrochromicExteriorRearviewMirror": "N/A", "electrochromicInteriorRearviewMirror": "Std.", "secondRowSideAirbagWithHeadProtection": "N/A", "separateDriverFrontPassengerClimateControls": "Std." } } } }