Skip to main content

๐Ÿ‡จ๐Ÿ‡ด ๋ฒ•๋ฅ ์ธ ์ž๊ฒฉ ์ฆ๋ช…(์œ ํšจ์„ฑ)

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

GET https://api.verifik.co/v2/co/rama/certificado/vigencia

์ฝœ๋กฌ๋น„์•„ ๋ฒ•์กฐ์ธ ๋“ฑ๋กยท์ฆ๋ช… ์œ ํšจ์„ฑ์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ์ฟผ๋ฆฌ๋กœ documentType(๋ฐ˜๋“œ์‹œ CC ๋˜๋Š” CE), documentNumber, quality(์˜ˆ: ABG, JUEZPAZ, LT)๋ฅผ ๋ณด๋ƒ…๋‹ˆ๋‹ค. ์‘๋‹ต ํ•„๋“œ encalidad ์ฒ ์ž๋Š” API ์›๋ฌธ์„ ๋”ฐ๋ฆ…๋‹ˆ๋‹ค.

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

NameValue
Acceptapplication/json
AuthorizationBearer <token>

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

nametyperequireddescription
documentTypestringyesCC ๋˜๋Š” CE๋งŒ ํ—ˆ์šฉ.
documentNumberstringyes์กฐํšŒํ•  ์‹ ๋ถ„์ฆ ๋ฒˆํ˜ธ.
qualitystringyes์ง๊ตฐ ์ฝ”๋“œ(์˜ˆ: ABG, JUEZPAZ, LT).

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

import axios from "axios";

const { data } = await axios.get("https://api.verifik.co/v2/co/rama/certificado/vigencia", {
params: { documentType: "CC", documentNumber: "123456789", quality: "ABG" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);

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

{
"data": {
"certificado": "",
"documentNumber": "123456789",
"documentType": "CC",
"encalidad": "Abogado",
"estado": "Vigente",
"fechaCreacion": "30/05/2014",
"fechaExpedicion": "2014/05/30",
"idHojaDeVida": "5757153a-0e73-e123-80f1-001234b16b17",
"motivoNoVigencia": " - ",
"numeroTarCarLice": "123456",
"observacionesPenaAccesoria": null
},
"signature": {
"dateTime": "April 5, 2024 2:17 PM",
"message": "Certified by Verifik.co"
},
"id": "CHKEH"
}

์ฐธ๊ณ (Notes)โ€‹

  • documentType ์€ CCยทCE ๋งŒ ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค(NIT ๋ถˆ๊ฐ€).
  • quality ๋Š” ์—ฐ๋™ ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋งž๋Š” ์ฝ”๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.