🇨🇴 コロンビア — 選挙管理庁 身分証明書有効性証明(CC)
エンドポイント
GET https://api.verifik.co/v2/co/registraduria/certificado
documentNumber、発行日 date(DD/MM/YYYY)。同じフィールドで POST JSON も利用可能です。CC(市民権 ID) の有効性証明用です。
ヘッダー(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 に個人情報が含まれる場合があります。