๐จ๐ด ๋ฒ๋ฅ ์ธ ์๊ฒฉ ์ฆ๋ช (์ ํจ์ฑ)
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/rama/certificado/vigencia
์ฝ๋กฌ๋น์ ๋ฒ์กฐ์ธ ๋ฑ๋กยท์ฆ๋ช
์ ํจ์ฑ์ ํ์ธํฉ๋๋ค. ์ฟผ๋ฆฌ๋ก documentType(๋ฐ๋์ CC ๋๋ CE), documentNumber, quality(์: ABG, JUEZPAZ, LT)๋ฅผ ๋ณด๋
๋๋ค. ์๋ต ํ๋ encalidad ์ฒ ์๋ API ์๋ฌธ์ ๋ฐ๋ฆ
๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | CC ๋๋ CE๋ง ํ์ฉ. |
documentNumber | string | yes | ์กฐํํ ์ ๋ถ์ฆ ๋ฒํธ. |
quality | string | yes | ์ง๊ตฐ ์ฝ๋(์: ABG, JUEZPAZ, LT). |
์์ฒญ(Request)โ
- Node.js
- Python
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);
import os, requests
url = "https://api.verifik.co/v2/co/rama/certificado/vigencia"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "123456789", "quality": "ABG"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"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"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "์ ํจ์ฑ ์ค๋ฅ(์ฟผ๋ฆฌ ๋๋ฝยท์ค๋ฅ ๋๋ documentType์ด CC/CE๊ฐ ์๋)."
}
์ฐธ๊ณ (Notes)โ
documentType์ CCยทCE ๋ง ํ์ฉ๋ฉ๋๋ค(NIT ๋ถ๊ฐ).quality๋ ์ฐ๋ ์๋๋ฆฌ์ค์ ๋ง๋ ์ฝ๋๋ฅผ ์ฌ์ฉํ์ธ์.