SECOP Process by Notice
curl --request POST \
--url https://api.croma.run/co/secop/process/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notice_uid": "CO1.NTC.9458505"
}
'import requests
url = "https://api.croma.run/co/secop/process/v1"
payload = { "notice_uid": "CO1.NTC.9458505" }
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({notice_uid: 'CO1.NTC.9458505'})
};
fetch('https://api.croma.run/co/secop/process/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/process/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([
'notice_uid' => 'CO1.NTC.9458505'
]),
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/process/v1"
payload := strings.NewReader("{\n \"notice_uid\": \"CO1.NTC.9458505\"\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/process/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notice_uid\": \"CO1.NTC.9458505\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/process/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 \"notice_uid\": \"CO1.NTC.9458505\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"found": true,
"notice_uid": "<string>",
"process": {
"notice_uid": "<string>",
"process_id": "<string>",
"portfolio_id": "<string>",
"name": "<string>",
"entity": "<string>",
"entity_nit": "<string>",
"base_price": 123,
"phase": "<string>",
"url": "<string>",
"reference": "<string>",
"description": "<string>",
"entity_code": "<string>",
"entity_order": "<string>",
"entity_department": "<string>",
"entity_city": "<string>",
"procurement_unit": "<string>",
"procurement_unit_city": "<string>",
"modality": "<string>",
"modality_justification": "<string>",
"contract_type": "<string>",
"contract_subtype": "<string>",
"unspsc_code": "<string>",
"additional_categories": "<string>",
"duration": "<string>",
"duration_unit": "<string>",
"lots": 123,
"status_summary": "<string>",
"procedure_status": "<string>",
"opening_status": "<string>",
"published_date": "2023-12-25",
"last_published_date": "2023-12-25",
"awarded": true,
"awarded_value": 123,
"invited_providers": 123,
"responses": 123,
"views": 123
},
"contract_count": 123,
"contracts": [
{
"contract_id": "<string>",
"entity": "<string>",
"provider": "<string>",
"provider_document": "<string>",
"status": "<string>",
"value": 123,
"reference": "<string>",
"entity_nit": "<string>",
"provider_document_type": "<string>",
"provider_code": "<string>",
"is_sme": true,
"legal_rep_name": "<string>",
"contract_type": "<string>",
"object": "<string>",
"invoiced_value": 123,
"paid_value": 123,
"pending_execution_value": 123,
"pending_payment_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,
"location": "<string>",
"supervisor": "<string>",
"expense_orderer": "<string>",
"funding_origin": "<string>",
"sector": "<string>",
"branch": "<string>",
"updated_date": "2023-12-25",
"url": "<string>"
}
]
}
}{
"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": {}
}
}Resolve a Colombian public-procurement process (SECOP II) by its OpportunityDetail noticeUID and return the process header plus every awarded contract: providers, documents, values, dates, and execution amounts. Sourced from Colombia Compra Eficiente’s open data. found: false when no process matches the noticeUID.
POST
/
co
/
secop
/
process
/
v1
SECOP Process by Notice
curl --request POST \
--url https://api.croma.run/co/secop/process/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notice_uid": "CO1.NTC.9458505"
}
'import requests
url = "https://api.croma.run/co/secop/process/v1"
payload = { "notice_uid": "CO1.NTC.9458505" }
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({notice_uid: 'CO1.NTC.9458505'})
};
fetch('https://api.croma.run/co/secop/process/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/process/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([
'notice_uid' => 'CO1.NTC.9458505'
]),
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/process/v1"
payload := strings.NewReader("{\n \"notice_uid\": \"CO1.NTC.9458505\"\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/process/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notice_uid\": \"CO1.NTC.9458505\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/process/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 \"notice_uid\": \"CO1.NTC.9458505\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"found": true,
"notice_uid": "<string>",
"process": {
"notice_uid": "<string>",
"process_id": "<string>",
"portfolio_id": "<string>",
"name": "<string>",
"entity": "<string>",
"entity_nit": "<string>",
"base_price": 123,
"phase": "<string>",
"url": "<string>",
"reference": "<string>",
"description": "<string>",
"entity_code": "<string>",
"entity_order": "<string>",
"entity_department": "<string>",
"entity_city": "<string>",
"procurement_unit": "<string>",
"procurement_unit_city": "<string>",
"modality": "<string>",
"modality_justification": "<string>",
"contract_type": "<string>",
"contract_subtype": "<string>",
"unspsc_code": "<string>",
"additional_categories": "<string>",
"duration": "<string>",
"duration_unit": "<string>",
"lots": 123,
"status_summary": "<string>",
"procedure_status": "<string>",
"opening_status": "<string>",
"published_date": "2023-12-25",
"last_published_date": "2023-12-25",
"awarded": true,
"awarded_value": 123,
"invited_providers": 123,
"responses": 123,
"views": 123
},
"contract_count": 123,
"contracts": [
{
"contract_id": "<string>",
"entity": "<string>",
"provider": "<string>",
"provider_document": "<string>",
"status": "<string>",
"value": 123,
"reference": "<string>",
"entity_nit": "<string>",
"provider_document_type": "<string>",
"provider_code": "<string>",
"is_sme": true,
"legal_rep_name": "<string>",
"contract_type": "<string>",
"object": "<string>",
"invoiced_value": 123,
"paid_value": 123,
"pending_execution_value": 123,
"pending_payment_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,
"location": "<string>",
"supervisor": "<string>",
"expense_orderer": "<string>",
"funding_origin": "<string>",
"sector": "<string>",
"branch": "<string>",
"updated_date": "2023-12-25",
"url": "<string>"
}
]
}
}{
"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