๐จ๐ด ์ฝ๋กฌ๋น์ โ ์ฌ๋ฒ ์ ์ฐจ
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/rama/procesos
์ฟผ๋ฆฌ๋ก documentType(CC ๋๋ NIT)๊ณผ documentNumber ๋ฅผ ๋ณด๋
๋๋ค. ์ฌ๋ฒ๋ถ ์กฐํ๋ ์ด๋ฆ ๋งค์นญ์ ์์กดํ๋ฏ๋ก ๊ฒฐ๊ณผ๊ฐ ์๊ฑฐ๋ ๋ถ์์ ํ ์ ์์ต๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | CC ๋๋ NIT. |
documentNumber | string | yes | ์กฐํํ ๋ฒํธ. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/rama/procesos", {
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/rama/procesos"
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": {
"consultedSubject": "MATEO VERIFIK",
"documentNumber": "123456789",
"documentType": "CC",
"list": [
{
"despacho": "JUZGADO XXX CIVIL MUNICIPAL DE BOGOTร ",
"departamento": "BOGOTร",
"fechaProceso": "2007-09-21T00:00:00",
"llaveProceso": "110014003XXXXXXXXX"
}
],
"pagination": {
"page": "1",
"pages": "2",
"records": "21"
}
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "March 3, 2022 3:55 PM"
},
"id": "ABC12"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "์ ํจ์ฑ ์ค๋ฅ(CCยทNIT ์ธ documentType ๋ฑ)."
}
์ฐธ๊ณ (Notes)โ
documentType์CC๋๋NIT๋ง ํ์ฉ๋ฉ๋๋ค.- ์ด๋ฆ ๊ธฐ๋ฐ ์กฐํ ํ๊ณ๋ก ๋น ๋ชฉ๋ก์ด ๋์ฌ ์ ์์ต๋๋ค.