公共契約(Public Contracts)
API リファレンス
エンドポイント
https://api.verifik.co/v2/co/contracts
公共契約サービスでは、文書番号と文書タイプを指定することで、対象者または対象企業に関連する公共契約の一覧を取得できます。レスポンスには契約者情報、契約金額、関係機関、契約期間など各契約の有用な詳細が含まれます。
本サービスは透明性を高め、コロンビアにおける国家との公共契約の監視を容易にします。
ヘッダー
| 名前 | 値 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
パラメーター
info
対応する 文書タイプ とそれぞれの必須パラメーターの一覧については、文書タイプ ガイドをご参照ください。
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
documentType | string | はい | 文書タイプ。許可される値: CC, NIT。 |
documentNumber | string | はい | 照会する文書番号。 |
リクエスト
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/co/contracts',
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 = {}
conn.request("GET", "/v2/co/contracts?documentType=CC&documentNumber=63535790", 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/contracts?documentType=CC&documentNumber=63535790")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
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/contracts?documentType=CC&documentNumber=63535790');
$request->setMethod(HTTP_Request2::METHOD_GET);
$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 (不正な文書タイプ)
{
"value": {
"data": {
"contractor": [
{
"contractor": "123456789",
"contractor_name": "MATEO VERIFIK",
"count": 19
}
],
"contracts": [
{
"contractor_reference": "18486325807904513",
"contractor_id": "63535790",
"contractor": "DIANA ROCIO GARCIA PEÑARANDA",
"entity_id": "824002672",
"entity": "CESAR ESE HOSPITAL CAMILO VILLAZON PUMAREJO PUEBLO BELLO",
"url": "https://www.contratos.gov.co/consultas/detalleProceso.do?numConstancia=18-4-8632580",
"value": 1250000,
"object": "PRESTACION DE SERVICIOS PARA EL MANTENIMIENTO PREVENTIVO PLANIFICADO Y CORRECTIVO DE LOS EQUIPOS BIOMEDICOS DE LAS DISTINTAS AREAS DE LA ESE HOSPITAL CAMILO VILLAZON PUMAREJO DE PUEBLO BELLO CESAR",
"process_id": "4",
"department": "CESAR",
"contract_start_date": "2018-11-01",
"contract_end_date": "2018-11-16"
}
]
},
"signature": {
"dateTime": "May 24, 2023 4:41 PM",
"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,NIT]"
}