๐จ๐ด ์ฝ๋กฌ๋น์ โ ๊ตญ๋ฏผ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๋ ๋ฐ๊ธ์ผ์ ๋๋ค (์๋ ์์ผ ์๋).- ๋ฏผ๊ฐ ๊ฐ์ธ์ ๋ณด๊ฐ ํฌํจ๋ ์ ์์ต๋๋ค.