🇨🇴 コロンビア — 国民ID(拡張)
エンドポイント
GET https://api.verifik.co/v2/co/cedula/extra
documentType=CC、documentNumber、発行日 date(DD/MM/YYYY)。同じ項目の POST JSON にも対応。
ヘッダー(Headers)
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
パラメータ(Parameters)
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | CC のみ。 |
documentNumber | string | yes | 番号(空白・句読点なし)。 |
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/cedula/extra", {
params: { documentType: "CC", 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/cedula/extra"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "123456789", "date": "10/10/2020"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
レスポンス(Response)
- 200
- 404
- 409
{
"data": {
"documentType": "CC",
"documentNumber": "123456789",
"fullName": "MATEO VERIFIK",
"gender": "HOMBRE",
"isAlive": true
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "August 23, 2022 11:42 AM"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "date format required: DD/MM/YYYY\n"
}
備考(Notes)
dateは 発行日(生年月日ではありません)。- 機微な個人データが含まれる場合があります。