๐จ๐ด ์ฝ๋กฌ๋น์ โ ๊ตฐ ๋ณต๋ฌด(์ง๋ณ) ์ํ
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/situacion-militar
์ฟผ๋ฆฌ๋ก documentType=CC ์ documentNumber ๋ฅผ ๋ณด๋
๋๋ค. CC(์๋ฏผ์ฆ)๋ง ํ์ฉ๋ฉ๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | ๋ฐ๋์ CC. CEยทPPT ๋ฑ์ ์ด ์๋ํฌ์ธํธ์์ ๊ฑฐ์ ๋ฉ๋๋ค. |
documentNumber | string | yes | ์กฐํํ ์๋ฏผ์ฆ ๋ฒํธ. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/situacion-militar", {
params: { documentType: "CC", documentNumber: "1121329661" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/situacion-militar"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "1121329661"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"adress": "์ถ์ฒ์ ๋ฐ๋ฅธ ์ฃผ์ ๋๋ ์๋ด ๋ฌธ๊ตฌ",
"documentNumber": "1121329661",
"documentType": "CC",
"fullName": "์ฑ ์ด๋ฆ",
"place": "๊ธฐ๋ก์ ์ฅ์ ํ
์คํธ",
"remissSince": "ํด๋น ์ ๋ ์ง ๋๋ ์ํ ํ
์คํธ",
"state": "๊ตฐ ๋ณต๋ฌด ์ํฉ ํ
์คํธ"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "April 20, 2026 10:00 AM"
},
"id": "ABC12"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "์ ํจ์ฑ ์ค๋ฅ(์ฟผ๋ฆฌ ๋๋ฝ ๋๋ documentType์ด CC๊ฐ ์๋)."
}
adress ํ๋๋ช
์ API ์๋ต ๊ทธ๋๋ก์
๋๋ค.
์ฐธ๊ณ (Notes)โ
documentType์CC๋ง ์ ํจํฉ๋๋ค. UI์ ๋ค๋ฅธ ์ ๋ถ ์ ํ์ด ๋ณด์ฌ๋CC๊ฐ ์๋๋ฉด 409 ๊ฐ ๋ฉ๋๋ค.- ํ๋ ๋ด์ฉ์ ๊ณต์ ์ถ์ฒยท๋ ์ฝ๋์ ๋ฐ๋ผ ๋ฌ๋ผ์ง ์ ์์ต๋๋ค.