Fetch the enablement status
curl --request GET \
--url https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement', 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.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "pending"
}{
"error": "missing enrollment"
}{
"error": "not found"
}{
"error": "internal error"
}Colombia
Fetch enablement status
Fetch the current DIAN enablement state of a registered supplier.
GET
/
apps
/
gov-co
/
v1
/
entries
/
{silo_entry_id}
/
enablement
Fetch the enablement status
curl --request GET \
--url https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement', 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.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/enablement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "pending"
}{
"error": "missing enrollment"
}{
"error": "not found"
}{
"error": "internal error"
}Returns the supplier’s current DIAN enablement state:
status is omitted until a test set has been submitted, then moves through pending to accepted or failed.
Use this endpoint to drive your own onboarding UI instead of the hosted portal. The silo entry must belong to the authenticated workspace and have been registered with the Colombia app first.
Authorizations
Authenticate using a valid Invopop enrollment token in the Bearer
scheme.
Example: Authorization: Bearer <token>
Path Parameters
ID of the org.Party silo entry the supplier was registered with.
Example:
"5b45453c-cdd0-11ed-afa1-0242ac120002"
Response
The supplier's current enablement state.
Current enablement state. Omitted until a test set has been submitted.
pending: test set submitted, awaiting the DIAN outcome.accepted: the DIAN accepted the test set; the supplier is enabled.failed: the DIAN rejected the test set or the submission failed.
Available options:
pending, accepted, failed Example:
"pending"
Was this page helpful?