๐จ๐ด ์ฝ๋กฌ๋น์ โ PEP(ํน๋ณ ์ฒด๋ฅ ํ๊ฐ)
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/foreigner-id/pep
documentNumber ์ ๋ฐ๊ธ์ผ expeditionDate(DD/MM/YYYY)๋ก ์กฐํํฉ๋๋ค. ๋์ผ ํ๋๋ก POST JSON ๋ณธ๋ฌธ๋ ์ง์ํฉ๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentNumber | string | yes | ๊ณต๋ฐฑยท๊ตฌ๋์ ์๋ PEP ๋ฒํธ. |
expeditionDate | string | yes | ๋ฐ๊ธ์ผ DD/MM/YYYY. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/foreigner-id/pep", {
params: { documentNumber: "123456789", expeditionDate: "10/10/2024" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/foreigner-id/pep"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentNumber": "123456789", "expeditionDate": "10/10/2024"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"documentType": "PEP",
"documentNumber": "123456789012345",
"status": "VIGENTE",
"fullName": "MATEO VERIFIK"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "August 22, 2023 8:02 PM"
},
"id": "tnlkb"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "expeditionDate must be a valid date in DD/MM/YYYY format"
}
์ฐธ๊ณ (Notes)โ
- ๋ ์ง ํ์์
DD/MM/YYYY์ ๋๋ค. GET/POST๋ชจ๋ ๋์ผ ์ฒ๋ฆฌ์ ๋๋ค.- ์์ฒ ์ฅ์ ์ 404 / 500 ์ด ๋ ์ ์์ต๋๋ค.