๐จ๐ด ์ฝ๋กฌ๋น์ โ ์ ๊ฑฐ์ฒญ ์ ๋ถ์ฆ ์ ํจ์ฑ ์ฆ๋ช ์(CC)
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/registraduria/certificado
documentNumber, ๋ฐ๊ธ์ผ date(DD/MM/YYYY). ๋์ผ ํ๋๋ก POST JSON ๋ ์ง์ํฉ๋๋ค. ์ด ์๋น์ค๋ CC(์๋ฏผ๊ถ ์ ๋ถ์ฆ) ์ ํจ์ฑ ์ฆ๋ช
์ฉ์
๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentNumber | string | yes | ๊ณต๋ฐฑยท๊ตฌ๋์ ์๋ CC ๋ฒํธ. |
date | string | yes | ๋ฌธ์ ๋ฐ๊ธ์ผ DD/MM/YYYY. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/registraduria/certificado", {
params: { documentNumber: "123456789", date: "10/10/2020" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/registraduria/certificado"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentNumber": "123456789", "date": "10/10/2020"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"codigoVerificacion": "ABC123XYZ",
"novedad": "VIGENTE",
"pdfBase64": "JVBERi0xLjQK...",
"documento": {
"cedula": "123456789",
"fechaExpedicion": "10/10/2020",
"lugarExpedicion": "BOGOTA D.C.",
"nombre": "JUAN PEREZ"
}
},
"signature": {
"dateTime": "August 23, 2022 11:42 AM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "date format required: DD/MM/YYYY\n"
}
์ฐธ๊ณ (Notes)โ
date๋ ๋ฐ๊ธ์ผ์ ๋๋ค (์๋ ์์ผ ์๋).GET/POST๋์ผ ์ฒ๋ฆฌ.- pdfBase64 ๋ฑ์ ๋ฏผ๊ฐ์ ๋ณด์ ๋๋ค.