๐จ๐ด ์ฝ๋กฌ๋น์ โ PPT(์์ ๋ณดํธ ํ๊ฐ)
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/foreigner-id/ppt
documentNumber ์ ๋ฐ๊ธ์ผ expeditionDate(DD/MM/YYYY)๋ก ์กฐํํฉ๋๋ค. ๋์ผ ํ๋๋ก POST JSON ๋ณธ๋ฌธ๋ ์ง์ํฉ๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
์๋ฅ ์๊ฑดโ
๋์: ์ฝ๋กฌ๋น์ Migraciรณn Colombia์์ ์ด๋ฏผ ์ํ(์: VIGENTE, ๋ง๋ฃ์ผ)๊ฐ ํ์ํ Permiso de Protecciรณn Temporal (PPT) ๋ณด์ ๋ฒ ๋ค์์๋ผ ๊ตญ๋ฏผ.
| ํ๋ | ์๋ด |
|---|---|
documentNumber | PPT ๋ฒํธ, ์ซ์๋ง. ์ฝ๋กฌ๋น์์์ ํ๊ฐ ๋ฒํธ๋ ๋ณดํต ์ต๋ 7์๋ฆฌ. ์ผ๋ถ ์์คํ
(SENA, ๊ธ์ฌ)์ 15์๋ฆฌ๋ก ํจ๋ฉ โ ๊ธฐ๋ก์ ์๋ ์ซ์ ๊ฐ์ ์ ์ก. Migraciรณn ์: 2081381. |
expeditionDate | ๋ฐ๊ธ์ผ DD/MM/YYYY(์: 07/03/2022). ํ์. |
๋ณ๋ ์ ๊ณต: documentType=PPT๋ก /v2/co/cedula์์ ์ด๋ฆํ ์กฐํ(5โ10์๋ฆฌ ๊ฒ์ฆ, ๋ฐ๊ธ์ผ ๋ถํ์).
์ ์ฒด ๋น๊ต: ์ ๋ถ์ฆ ์ ํ ๊ฐ์ด๋.
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentNumber | string | yes | PPT ๋ฒํธ, ์ซ์๋ง. ์ผ๋ฐ์ ์ผ๋ก ์ต๋ 7์๋ฆฌ(์ผ๋ถ ์์คํ
์ 15์๋ฆฌ ํจ๋ฉ). ์: 2081381. |
expeditionDate | string | yes | ๋ฐ๊ธ์ผ DD/MM/YYYY(์: 07/03/2022). ๋ฌธ์์ ์ผ์นํด์ผ ํฉ๋๋ค. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/foreigner-id/ppt", {
params: { documentNumber: "123456789", expeditionDate: "07/03/2022" },
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/ppt"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentNumber": "123456789", "expeditionDate": "07/03/2022"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"documentType": "PPT",
"documentNumber": "2081381",
"status": "VIGENTE",
"fullName": "JUAN MIGUEL CAMERO MORALES"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "May 13, 2025 11:52 PM"
},
"id": "JD24J"
}
{
"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 ์ด ๋ ์ ์์ต๋๋ค.