Contraloría 証明書
API リファレンス
エンドポイント
https://api.verifik.co/v2/co/contraloria/certificado
本サービスでは、文書タイプと文書番号を入力するだけで、コロンビア会計検査院(Contraloría General de Colombia)が発行する善行証明書を検証できます。照会日と base64 エンコードされた PDF 証明書が返却されます。コロンビアの企業や個人が良好な状態にあることを迅速に確認するのに最適です。
ヘッダー
| 名前 | 値 |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
パラメーター
info
対応する 文書タイプ とそれぞれの必須パラメーターの一覧については、文書タイプ ガイドをご参照ください。
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
documentType | string | はい | 文書タイプ。許可される値: CC, CE, PA, PEP。 |
documentNumber | string | はい | 照会対象者の文書番号。スペースやドットを含めずに入力してください。 |
リクエスト
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/co/contraloria/certificado',
params: {documentType: 'CC', documentNumber: '123456789'},
headers: {
Accept: 'application/json',
Authorization: 'Bearer <your_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")
payload = ''
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("GET", "/v2/co/contraloria/certificado?documentType=CC&documentNumber=123456789", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/co/contraloria/certificado?documentType=CC&documentNumber=123456789")!,
timeoutInterval: Double.infinity)
request.httpMethod = "GET"
request.setValue("application/json", forHTTPHeaderField: "Accept")
request.setValue("Bearer <your_token>", forHTTPHeaderField: "Authorization")
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/co/contraloria/certificado?documentType=CC&documentNumber=123456789');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setHeader('Accept', 'application/json');
$request->setHeader('Authorization', 'Bearer <your_token>');
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
レスポンス
- 200
- 404
- 409 (パラメーター不足)
- 409 (不正な文書タイプ)
{
"data": {
"documentType": "CC",
"documentNumber": "1020729123",
"searchDate": "2022-03-22T15:37:23.487Z",
"pdfBase64": "data:application/pdf;base64,STRING_BASE_64"
},
"signature": {
"dateTime": "March 22, 2022 4:37 AM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentType\n. missing documentNumber\n"
}
{
"code": "MissingParameter",
"message": "documentType must be one of: [CC, CE, PA, PEP]"
}