UN(ONU) ์ ์ฌ ๋ช ๋จ ์กฐํ
API ๋ ํผ๋ฐ์คโ
์๋ํฌ์ธํธโ
https://api.verifik.co/v2/onu
documentType๊ณผ documentNumber, ๋๋ fullName์ ์ฌ์ฉํด ๊ฐ์ธ ๋๋ ๋ฒ์ธ์ด ์ ์ ์ ์ฌ ๋ช
๋จ์ ํฌํจ๋๋์ง ์กฐํํฉ๋๋ค. ๊ฒฐ๊ณผ๋ ๊ฑฐ๋ ์๋ ๊ฒ์ฆ ์ ๊ธ๋ก๋ฒ ์ปดํ๋ผ์ด์ธ์ค, KYC, AML ์ํฌํ๋ก์ฐ์ ํ์ฉํ ์ ์์ต๋๋ค.
์ฐธ๊ณ : ๋ ์ง(์ถ์์ผ ๋๋ ๋ฐ๊ธ์ผ)๋ dd/mm/yyyy ํ์์ด์ด์ผ ํฉ๋๋ค.
ํค๋(Headers)โ
| ์ด๋ฆ | ๊ฐ |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์(Parameters)โ
info
์ง์๋๋ ๋ฌธ์ ์ข ๋ฅ์ ์ ์ฒด ๋ชฉ๋ก๊ณผ ๊ฐ ์ข ๋ฅ๋ณ ํ์ ๋งค๊ฐ๋ณ์๋ Document Types ๊ฐ์ด๋๋ฅผ ์ฐธ๊ณ ํด ์ฃผ์ธ์.
| ์ด๋ฆ | ํ์ | ํ์ | ์ค๋ช |
|---|---|---|---|
documentType | string | ์๋์ค | ์กฐํํ ๋ฌธ์ ์ข ๋ฅ |
documentNumber | string | ์๋์ค | ์กฐํํ ๋ฌธ์ ๋ฒํธ. ๊ณต๋ฐฑ์ด๋ ์ ์์ด ์ ๋ ฅํฉ๋๋ค. |
fullName | string | ์๋์ค | documentType๊ณผ documentNumber ๋์ ๊ฐ์ธ ๋๋ ๋ฒ์ธ์ ์ด๋ฆ์ ์ง์ ์ ๋ฌํ ์ ์์ต๋๋ค. |
ํ์ฉ ์ฌ๋กโ
- ๊ตญ์ ์ปดํ๋ผ์ด์ธ์ค: ์จ๋ณด๋ฉ ๋๋ ๊ฑฐ๋ ์ ์ ๊ฐ์ธ ๋ฐ ๋ฒ์ธ์ UN ์ ์ฌ ๋ช ๋จ๊ณผ ๋์กฐํด ๊ฒ์ฆํฉ๋๋ค.
- ์ํ ํ๊ฐ: ์ ์ฌ ๋์์์์ ๊ฑฐ๋๋ก ์ธํ ์ฌ๋ฌด ๋ฐ ํํ ๋ฆฌ์คํฌ๋ฅผ ์ค์ ๋๋ค.
- ๊ท์ ํ๋ก๊ทธ๋จ: ์ํ, ๊ธ์ต, ๋ณดํ ๋ถ์ผ์ KYC/AML ์๊ตฌ์ฌํญ์ ์ง์ํฉ๋๋ค.
์์ฒญ(Request)โ
- JavaScript
- Python
- Swift
- PHP
import axios from "axios";
const options = {
method: "GET",
url: "https://api.verifik.co/v2/onu",
params: { documentType: "CC", documentNumber: "80251972" },
headers: {
Accept: "application/json",
Authorization: "jwt <tu_token>",
},
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Accept': "application/json",
'Authorization': "JWT token"
}
conn.request("GET", "/v2/onu?fullName=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import Foundation
let headers = [
"Accept": "application/json",
"Authorization": "JWT token"
]
let request = NSMutableURLRequest(url: NSURL(string: "https://api.verifik.co/v2/onu?fullName=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.verifik.co/v2/onu?fullName=', [
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'JWT token',
],
]);
echo $response->getBody();
์๋ต(Response)โ
- 200
- 404
- 409
{
"data": {
"documentType": "CC",
"documentNumber": "1234567894",
"fullName": "MATEO VERIFIK",
"firstName": "MATEO",
"lastName": "VERIFIK",
"arrayName": ["MATEO", "VERIFIK"],
"foundInONU": true
},
"signature": {
"dateTime": "August 4, 2022 3:57 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentType\n. missing documentNumber\n"
}
๋น๊ณ โ
- UN ์ ์ฌ ๊ฒ์ฆ: ๊ฐ์ธ ๋ฐ ๋ฒ์ธ์ ๋์์ผ๋ก ํฉ๋๋ค.
- ๊ตฌ์กฐํ๋ ์๋ต: ํตํฉ์ ์ ํฉํ ํ์์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ฐํํ๋ฉฐ, ์์์ JavaScript, Python, PHP, Swift ์์ ๋ฅผ ์ ๊ณตํฉ๋๋ค.