Skip to main content

๐Ÿ‡จ๐Ÿ‡ด ๋ณด๊ณ ํƒ€ โ€” ์ฐจ๋Ÿ‰ ๊ณผํƒœ๋ฃŒ

์—”๋“œํฌ์ธํŠธโ€‹

GET https://api.verifik.co/v2/co/bogota/vehicle/fines

์ฝœ๋กฌ๋น„์•„ ๋ณด๊ณ ํƒ€์— ๋“ฑ๋ก๋œ ์ฐจ๋Ÿ‰์˜ ๋ฒˆํ˜ธํŒ(plate)์œผ๋กœ ๊ณผํƒœ๋ฃŒยทํ†ต๊ณ ๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. ์‘๋‹ต์—๋Š” ์œ ํ˜•, ์ƒํƒœ, ๋ฒˆํ˜ธ, ๋‚ ์งœ, ๋‚ฉ๋ถ€ ๊ด€๋ จ ์ •๋ณด๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

ํ—ค๋”(Headers)โ€‹

NameValue
Acceptapplication/json
AuthorizationBearer <token>

๋งค๊ฐœ๋ณ€์ˆ˜(Parameters)โ€‹

nametyperequireddescription
platestringyes์กฐํšŒํ•  ๋ฒˆํ˜ธํŒ. ๊ณต๋ฐฑยท๋งˆ์นจํ‘œ ์—†์ด ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

์š”์ฒญ(Request)โ€‹

import axios from "axios";

const { data } = await axios.get("https://api.verifik.co/v2/co/bogota/vehicle/fines", {
params: { plate: "ABC123" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`
},
});
console.log(data);

์‘๋‹ต(Response)โ€‹

{
"data": {
"fines": [
{
"type": "Comparendo - comparendera",
"status": "vigente",
"number": "11001000000035429360",
"plate": "ABC123",
"impositionDate": "14/11/2022",
"notificationDate": "14/11/2022",
"balance": "468500",
"discountValue": "0",
"pendingBalance": "549500",
"interest": "81000",
"total": "549500",
"totalCollections": "0",
"impositionMedium": "Control en vรญa apoyado en dispositivos mรณviles",
"courseAttendanceMessage": null,
"installmentNumber": "0",
"installmentStatus": null,
"installmentCount": "0",
"documentType": "C",
"documentNumber": "123456789",
"name": "MATEO VERIFIK",
"moratoryInterest": "0"
}
],
"plate": "ABC123"
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "July 3, 2024 4:03 PM"},
"id": "Y5GS6"
}

์ฐธ๊ณ (Notes)โ€‹

  • vigente ์ƒํƒœ๋Š” ๊ณผํƒœ๋ฃŒ๊ฐ€ ์œ ํšจํ•˜๋ฉฐ ๋‚ฉ๋ถ€๊ฐ€ ํ•„์š”ํ•จ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.
  • total ์—๋Š” ์›๊ธˆ ์™ธ ๋ˆ„์  ์ด์ž๊ฐ€ ํฌํ•จ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋‚ฉ๋ถ€ยท์ด์˜ ์‹ ์ฒญ ์‹œ ํŠน์ • ๊ณผํƒœ๋ฃŒ๋Š” number ๋กœ ์ง€์นญํ•ฉ๋‹ˆ๋‹ค.