๐จ๐ด ์ฝ๋กฌ๋น์ โ ์ฌ๋ฒ ๊ธฐ๋ก(์ฌํ๋ถ ์ฌ๊ฑด)
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/rama/juzgado/expedientes
์ฟผ๋ฆฌ๋ก documentType(CC๋ง), documentNumber, city(์: BOGOTA)๋ฅผ ๋ณด๋
๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | CC ๋ง ํ์ฉ. |
documentNumber | string | yes | ์กฐํํ ๋ฒํธ. |
city | string | yes | ์ฌ๋ฒ๋ถ ํ๋ก ์ฝ๋(์: BOGOTA, MEDELLIN). |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/rama/juzgado/expedientes", {
params: { documentType: "CC", documentNumber: "1234567890", city: "BOGOTA" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/rama/juzgado/expedientes"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "1234567890", "city": "BOGOTA"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 404
{
"data": {
"documentType": "CC",
"documentNumber": "1234567890",
"city": "BOGOTA",
"courtOfepms": "EPMS EXAMPLE",
"filingNumber": "2024-000123"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "March 3, 2022 3:55 PM"
},
"id": "ABC12"
}
{
"code": "NotFound",
"message": "Record not found."
}
์ฐธ๊ณ (Notes)โ
- API๋
documentType=CC๋ง ํ์ฉํฉ๋๋ค. city๋ ์ฐ๋์์ ์ง์ํ๋ ์ฝ๋์ฌ์ผ ํฉ๋๋ค.