๐จ๐ด ๋ณด๊ณ ํ โ ์ฐจ๋ ๊ณผํ๋ฃ
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/bogota/vehicle/fines
์ฝ๋กฌ๋น์ ๋ณด๊ณ ํ์ ๋ฑ๋ก๋ ์ฐจ๋์ ๋ฒํธํ(plate)์ผ๋ก ๊ณผํ๋ฃยทํต๊ณ ๋ฅผ ์กฐํํฉ๋๋ค. ์๋ต์๋ ์ ํ, ์ํ, ๋ฒํธ, ๋ ์ง, ๋ฉ๋ถ ๊ด๋ จ ์ ๋ณด๊ฐ ํฌํจ๋ฉ๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
plate | string | yes | ์กฐํํ ๋ฒํธํ. ๊ณต๋ฐฑยท๋ง์นจํ ์์ด ์ ๋ ฅํฉ๋๋ค. |
์์ฒญ(Request)โ
- Node.js
- Python
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);
import os, requests
url = "https://api.verifik.co/v2/co/bogota/vehicle/fines"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"plate": "ABC123"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"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"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate"
}
์ฐธ๊ณ (Notes)โ
- vigente ์ํ๋ ๊ณผํ๋ฃ๊ฐ ์ ํจํ๋ฉฐ ๋ฉ๋ถ๊ฐ ํ์ํจ์ ๋ํ๋ ๋๋ค.
total์๋ ์๊ธ ์ธ ๋์ ์ด์๊ฐ ํฌํจ๋ ์ ์์ต๋๋ค.- ๋ฉ๋ถยท์ด์ ์ ์ฒญ ์ ํน์ ๊ณผํ๋ฃ๋
number๋ก ์ง์นญํฉ๋๋ค.