๐จ๐ด SIMIT โ ๊ฒฐ์
์๋ํฌ์ธํธโ
https://api.verifik.co/v2/co/simit/resoluciones
SIMIT ๊ฒฐ์ ์๋น์ค๋ ์ฝ๋กฌ๋น์ ๋ด ํน์ ๊ฐ์ธ ๋๋ ๊ธฐ์ ์ ๋ํ ๊ตํต ์๋ฐ ๊ฒฐ์์ ์์ธ ์ ๋ณด๋ฅผ ์กฐํํ ์ ์๋๋ก ํฉ๋๋ค. ์๋ต์๋ ์๋ฐ์์ ์ด๋ฆ, ๊ฒฐ์ ์ํ, ๊ฒฐ์ ์ผ์, ๋ฏธ๋ฉ ๊ธ์ก ๋ฑ์ ๋ฐ์ดํฐ๊ฐ ํฌํจ๋ฉ๋๋ค.
ํค๋(Headers)โ
| ์ด๋ฆ | ๊ฐ |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| ์ด๋ฆ | ํ์ | ํ์ | ์ค๋ช |
|---|---|---|---|
documentType | string | ์ | ๋ฌธ์ ์ข
๋ฅ. ํ์ฉ ๊ฐ: CC, PA, CE, TI, RC. |
documentNumber | string | ์ | ์กฐํํ ๋ฌธ์ ๋ฒํธ. ๊ณต๋ฐฑ์ด๋ ์ ์์ด ์ ๋ ฅํฉ๋๋ค. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/simit/resoluciones", {
params: {
documentType: "CC",
documentNumber: "123456789"
},
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/simit/resoluciones"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "123456789"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"resoluciones": [
{
"estadosResoluciones": "Pendiente de pago",
"fechaComparendo": "20190503",
"fechaResolucion": "20191001",
"nombresInfractores": "PEPE SALGADO",
"NรบmeroComparendo": "99999999000000000936",
"resoluciones": "S709332197",
"secretarias": "Barrancabermeja",
"total": "146770.0"
}
]
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "March 3, 2022 4:09 PM"}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentType. missing documentNumber"
}
๋น๊ณ โ
- SIMIT ๊ฒฐ์๋ ๊ตํต ์๋ฐ๊ณผ ๊ด๋ จ๋ ๊ณต์ ๊ฒฐ์ ์ ์๋ฏธํฉ๋๋ค.
- "Pendiente de pago" ์ํ๋ ํด๋น ๊ฒฐ์๊ฐ ๋ฏธ๋ฉ ์ํ์์ ๋ํ๋ ๋๋ค.
- ๊ฒฐ์ ๋ฒํธ๋ ํน์ ํ์ ๊ฒฐ์ ์ ์ถ์ ํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค.
- ๊ธ์ก์ ์ฝ๋กฌ๋น์ ํ์(COP)๋ก ์ ๊ณต๋ฉ๋๋ค.