๐จ๐ด ์ฝ๋กฌ๋น์ โ ์ฌ๋ฒ ์ ์ฐจ ์ธ๋ถ ์ ๋ณด
์๋ํฌ์ธํธโ
GET https://api.verifik.co/v2/co/rama/proceso
processNumber ๋ฅผ ๊ฒฝ๋ก ๋ง์ง๋ง ์ธ๊ทธ๋จผํธ๋ก ๋ถ์
๋๋ค. ๋ณดํต ์ฌ๋ฒ ์ ์ฐจ ๋ชฉ๋ก์ llaveProceso ์
๋๋ค.
ํค๋(Headers)โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
| name | type | required | description |
|---|---|---|---|
processNumber | string | yes | ๊ฒฝ๋ก ํ๋ผ๋ฏธํฐ. ์ต์ 7์, ๊ณต๋ฐฑ ์ ๊ฑฐ. |
์์ฒญ(Request)โ
- Node.js
- Python
import axios from "axios";
const processNumber = "18738473";
const { data } = await axios.get(
`https://api.verifik.co/v2/co/rama/proceso/${processNumber}`,
{
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
},
);
console.log(data);
import os, requests
process_number = "18738473"
url = f"https://api.verifik.co/v2/co/rama/proceso/{process_number}"
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}",
}
r = requests.get(url, headers=headers)
print(r.json())
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"processNumber": "18738473",
"details": {},
"subjects": [],
"actions": []
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "August 30, 2022 1:26 PM"
},
"id": "ABC12"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "\"processNumber\" length must be at least 7 characters long"
}
์ฐธ๊ณ (Notes)โ
processNumber๋ ๊ฒฝ๋ก์ ๋ถ์ต๋๋ค(API Explorer UI๋processNumberํ๋๋ก ํ์๋ ์ ์์).- 409 ๋ ๋๋ฝยทํ์ ์ค๋ฅ(7์ ๋ฏธ๋ง ๋ฑ)์ผ ๋ ํํฉ๋๋ค.