๐จ๐ด ๋ณด๊ณ ํ โ ์ฐจ๋์ธ
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/bogota/vehicle/tax
๋ณด๊ณ ํ์ ๋ฑ๋ก๋ ์ฐจ๋์ ์ธ๊ธ ์๋ฌด ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค. ์์ ์ documentType, documentNumber ์ ์ฐจ๋ plate ๋ฅผ ์ฟผ๋ฆฌ ๋ฌธ์์ด๋ก ๋ณด๋
๋๋ค. ์๋ต์๋ ์ฐจ๋ ์ธ๋ถ ์ ๋ณด์ ๊ณผ์ธ ์ฐ๋๋ณ ์๋ฌด ์ํ๊ฐ ํฌํจ๋ฉ๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
plate | string | yes | ์กฐํํ ๋ฒํธํ. 5โ6์. ๊ณต๋ฐฑยท๋ง์นจํ ์์. |
documentNumber | string | yes | ์กฐํํ ์ ๋ถ/์ฌ์ ์ ๋ฒํธ. ๊ณต๋ฐฑยท๋ง์นจํ ์์. |
documentType | string | yes | ์ฆ๋ช
์ ํ. ํ์ฉ: CC, NIT. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/bogota/vehicle/tax", {
params: {
plate: "ABC123",
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/bogota/vehicle/tax"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"plate": "ABC123", "documentType": "CC", "documentNumber": "123456789"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ต(Response)โ
- 200
- 400
- 409
{
"data": {
"details": "",
"documentNumber": "123456789",
"documentType": "CC",
"obligation": {
"vehicle": [
{
"brand": "MAZDA",
"form": "2020003010100010240",
"linea": "050365",
"model": "2021",
"obligation": "1.080.000",
"obligationStatus": "Moroso",
"plate": "ABC123",
"reference": "0000020034588543",
"taxableYear": "2020",
"totalToPay": "1.080.000"
}
]
},
"plate": "ABC123"
},
"signature": {"message": "Certified by Verifik.co", "dateTime": "July 3, 2024 3:59 PM"},
"id": "5P20N"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate"
}
์ฐธ๊ณ (Notes)โ
CC๋ ์ฝ๋กฌ๋น์ ์๋ฏผ ์ ๋ถ์ฆ,NIT์ ๋ฉ์ธ์(์ฌ์ ์) ์๋ณ๋ฒํธ์ ๋๋ค.obligationStatus๊ฐMoroso์ด๋ฉด ๋ฏธ๋ฉ ์ธ๊ธ์ด ์์ต๋๋ค.