Skip to main content

๐Ÿ‡จ๐Ÿ‡ด ๋ณด๊ณ ํƒ€ โ€” ์ฐจ๋Ÿ‰์„ธ

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

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

๋ณด๊ณ ํƒ€์— ๋“ฑ๋ก๋œ ์ฐจ๋Ÿ‰์˜ ์„ธ๊ธˆ ์˜๋ฌด ์ •๋ณด๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. ์†Œ์œ ์ž documentType, documentNumber ์™€ ์ฐจ๋Ÿ‰ plate ๋ฅผ ์ฟผ๋ฆฌ ๋ฌธ์ž์—ด๋กœ ๋ณด๋ƒ…๋‹ˆ๋‹ค. ์‘๋‹ต์—๋Š” ์ฐจ๋Ÿ‰ ์„ธ๋ถ€ ์ •๋ณด์™€ ๊ณผ์„ธ ์—ฐ๋„๋ณ„ ์˜๋ฌด ์ƒํƒœ๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

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

NameValue
Acceptapplication/json
AuthorizationBearer <token>

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

nametyperequireddescription
platestringyes์กฐํšŒํ•  ๋ฒˆํ˜ธํŒ. 5โ€“6์ž. ๊ณต๋ฐฑยท๋งˆ์นจํ‘œ ์—†์Œ.
documentNumberstringyes์กฐํšŒํ•  ์‹ ๋ถ„/์‚ฌ์—…์ž ๋ฒˆํ˜ธ. ๊ณต๋ฐฑยท๋งˆ์นจํ‘œ ์—†์Œ.
documentTypestringyes์ฆ๋ช… ์œ ํ˜•. ํ—ˆ์šฉ: CC, NIT.

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

import axios from "axios";

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

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

{
"data": {
"details": "",
"documentNumber": "123456789",
"documentType": "CC",
"obligation": {
"vehicle": [
{
"brand": "MAZDA",
"form": "2020003010100010240",
"linea": "050365",
"model": "2021",
"obligation": "1.080.000",
"obligationStatus": "Moroso",
"plate": "ABC123",
"reference": "0000020034588543",
"taxableYear": "2020",
"totalToPay": "1.080.000"
}
]
},
"plate": "ABC123"
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "July 3, 2024 3:59 PM"},
"id": "5P20N"
}

์ฐธ๊ณ (Notes)โ€‹

  • CC ๋Š” ์ฝœ๋กฌ๋น„์•„ ์‹œ๋ฏผ ์‹ ๋ถ„์ฆ, NIT ์€ ๋‚ฉ์„ธ์ž(์‚ฌ์—…์ž) ์‹๋ณ„๋ฒˆํ˜ธ์ž…๋‹ˆ๋‹ค.
  • obligationStatus ๊ฐ€ Moroso ์ด๋ฉด ๋ฏธ๋‚ฉ ์„ธ๊ธˆ์ด ์žˆ์Šต๋‹ˆ๋‹ค.