SECOP Contract by ID
curl --request POST \
--url https://api.croma.run/co/secop/contract/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contract_id": "CO1.PCCNTR.6794799"
}
'import requests
url = "https://api.croma.run/co/secop/contract/v1"
payload = { "contract_id": "CO1.PCCNTR.6794799" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contract_id: 'CO1.PCCNTR.6794799'})
};
fetch('https://api.croma.run/co/secop/contract/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.croma.run/co/secop/contract/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contract_id' => 'CO1.PCCNTR.6794799'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.croma.run/co/secop/contract/v1"
payload := strings.NewReader("{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.croma.run/co/secop/contract/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/contract/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"found": true,
"contract_id": "<string>",
"contract": {
"contract_id": "<string>",
"entity": "<string>",
"provider": "<string>",
"provider_document": "<string>",
"status": "<string>",
"value": 123,
"reference": "<string>",
"entity_nit": "<string>",
"centralized_entity": "<string>",
"provider_document_type": "<string>",
"provider_code": "<string>",
"is_sme": true,
"is_group": true,
"legal_rep_name": "<string>",
"legal_rep_document_type": "<string>",
"legal_rep_document": "<string>",
"contract_type": "<string>",
"modality": "<string>",
"modality_justification": "<string>",
"unspsc_code": "<string>",
"object": "<string>",
"delivery_conditions": "<string>",
"invoiced_value": 123,
"paid_value": 123,
"pending_execution_value": 123,
"pending_payment_value": 123,
"advance_payment_enabled": true,
"advance_payment_value": 123,
"amortized_value": 123,
"pending_amortization_value": 123,
"sign_date": "2023-12-25",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"added_days": 123,
"duration": "<string>",
"can_be_extended": true,
"extension_notice_date": "2023-12-25",
"requires_liquidation": true,
"liquidation_start_date": "2023-12-25",
"liquidation_end_date": "2023-12-25",
"has_environmental_obligation": true,
"has_post_consumption_obligations": true,
"has_reversion": true,
"location": "<string>",
"supervisor": "<string>",
"expense_orderer": "<string>",
"funding_origin": "<string>",
"expense_destination": "<string>",
"sector": "<string>",
"branch": "<string>",
"updated_date": "2023-12-25",
"url": "<string>"
},
"additions": [
{
"addition_id": "<string>",
"type": "<string>",
"registered_date": "2023-12-25",
"description": "<string>"
}
],
"additions_capped": true,
"guarantees": [
{
"insurer": "<string>",
"policy_number": "<string>",
"value": 123,
"insured": "<string>",
"beneficiary": "<string>",
"policy_created_date": "2023-12-25",
"policy_sent_date": "2023-12-25",
"policy_end_date": "2023-12-25",
"policy_side": "<string>",
"status": "<string>",
"policy_type": "<string>",
"policy_subtype": "<string>",
"created_date": "2023-12-25"
}
],
"guarantees_capped": true,
"execution_items": [
{
"execution_type": "<string>",
"expected_delivery_date": "2023-12-25",
"plan_name": "<string>",
"expected_progress_percent": 123,
"actual_delivery_date": "2023-12-25",
"actual_progress_percent": 123,
"contract_status": "<string>",
"item_reference": "<string>",
"description": "<string>",
"unit": "<string>",
"awarded_quantity": 123,
"planned_quantity": 123,
"received_quantity": 123,
"pending_quantity": 123,
"created_date": "2023-12-25"
}
],
"execution_items_capped": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}SECOP Contract by ID
Resolve one electronic contract (SECOP II) by its contract id and return the full contract record plus its satellite history: registered additions/modifications, insurance policies (garantías) with insurer and validity, and the delivery plan with planned vs actual progress. found: false when no contract matches the id.
POST
/
co
/
secop
/
contract
/
v1
SECOP Contract by ID
curl --request POST \
--url https://api.croma.run/co/secop/contract/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contract_id": "CO1.PCCNTR.6794799"
}
'import requests
url = "https://api.croma.run/co/secop/contract/v1"
payload = { "contract_id": "CO1.PCCNTR.6794799" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contract_id: 'CO1.PCCNTR.6794799'})
};
fetch('https://api.croma.run/co/secop/contract/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.croma.run/co/secop/contract/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contract_id' => 'CO1.PCCNTR.6794799'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.croma.run/co/secop/contract/v1"
payload := strings.NewReader("{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.croma.run/co/secop/contract/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/contract/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contract_id\": \"CO1.PCCNTR.6794799\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"found": true,
"contract_id": "<string>",
"contract": {
"contract_id": "<string>",
"entity": "<string>",
"provider": "<string>",
"provider_document": "<string>",
"status": "<string>",
"value": 123,
"reference": "<string>",
"entity_nit": "<string>",
"centralized_entity": "<string>",
"provider_document_type": "<string>",
"provider_code": "<string>",
"is_sme": true,
"is_group": true,
"legal_rep_name": "<string>",
"legal_rep_document_type": "<string>",
"legal_rep_document": "<string>",
"contract_type": "<string>",
"modality": "<string>",
"modality_justification": "<string>",
"unspsc_code": "<string>",
"object": "<string>",
"delivery_conditions": "<string>",
"invoiced_value": 123,
"paid_value": 123,
"pending_execution_value": 123,
"pending_payment_value": 123,
"advance_payment_enabled": true,
"advance_payment_value": 123,
"amortized_value": 123,
"pending_amortization_value": 123,
"sign_date": "2023-12-25",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"added_days": 123,
"duration": "<string>",
"can_be_extended": true,
"extension_notice_date": "2023-12-25",
"requires_liquidation": true,
"liquidation_start_date": "2023-12-25",
"liquidation_end_date": "2023-12-25",
"has_environmental_obligation": true,
"has_post_consumption_obligations": true,
"has_reversion": true,
"location": "<string>",
"supervisor": "<string>",
"expense_orderer": "<string>",
"funding_origin": "<string>",
"expense_destination": "<string>",
"sector": "<string>",
"branch": "<string>",
"updated_date": "2023-12-25",
"url": "<string>"
},
"additions": [
{
"addition_id": "<string>",
"type": "<string>",
"registered_date": "2023-12-25",
"description": "<string>"
}
],
"additions_capped": true,
"guarantees": [
{
"insurer": "<string>",
"policy_number": "<string>",
"value": 123,
"insured": "<string>",
"beneficiary": "<string>",
"policy_created_date": "2023-12-25",
"policy_sent_date": "2023-12-25",
"policy_end_date": "2023-12-25",
"policy_side": "<string>",
"status": "<string>",
"policy_type": "<string>",
"policy_subtype": "<string>",
"created_date": "2023-12-25"
}
],
"guarantees_capped": true,
"execution_items": [
{
"execution_type": "<string>",
"expected_delivery_date": "2023-12-25",
"plan_name": "<string>",
"expected_progress_percent": 123,
"actual_delivery_date": "2023-12-25",
"actual_progress_percent": 123,
"contract_status": "<string>",
"item_reference": "<string>",
"description": "<string>",
"unit": "<string>",
"awarded_quantity": 123,
"planned_quantity": 123,
"received_quantity": 123,
"pending_quantity": 123,
"created_date": "2023-12-25"
}
],
"execution_items_capped": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"details": {}
}
}⌘I