SECOP Contracts by Provider
curl --request POST \
--url https://api.croma.run/co/secop/contracts-by-provider/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_document": "79372917"
}
'import requests
url = "https://api.croma.run/co/secop/contracts-by-provider/v1"
payload = { "provider_document": "79372917" }
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({provider_document: '79372917'})
};
fetch('https://api.croma.run/co/secop/contracts-by-provider/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/contracts-by-provider/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([
'provider_document' => '79372917'
]),
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/contracts-by-provider/v1"
payload := strings.NewReader("{\n \"provider_document\": \"79372917\"\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/contracts-by-provider/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_document\": \"79372917\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/contracts-by-provider/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 \"provider_document\": \"79372917\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"provider_document": "<string>",
"count": 123,
"capped": true,
"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": {}
}
}List the public-procurement contracts (SECOP II) awarded to one provider by cédula or NIT, across all contracting entities: the contractor profile (who hired them, values, status, dates). Capped at 500 results, newest first; capped: true flags an incomplete set.
POST
/
co
/
secop
/
contracts-by-provider
/
v1
SECOP Contracts by Provider
curl --request POST \
--url https://api.croma.run/co/secop/contracts-by-provider/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_document": "79372917"
}
'import requests
url = "https://api.croma.run/co/secop/contracts-by-provider/v1"
payload = { "provider_document": "79372917" }
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({provider_document: '79372917'})
};
fetch('https://api.croma.run/co/secop/contracts-by-provider/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/contracts-by-provider/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([
'provider_document' => '79372917'
]),
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/contracts-by-provider/v1"
payload := strings.NewReader("{\n \"provider_document\": \"79372917\"\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/contracts-by-provider/v1")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_document\": \"79372917\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.croma.run/co/secop/contracts-by-provider/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 \"provider_document\": \"79372917\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"provider_document": "<string>",
"count": 123,
"capped": true,
"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