List the numbering resolutions
curl --request GET \
--url https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions"
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}/resolutions', 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}/resolutions",
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}/resolutions"
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}/resolutions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions")
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{
"resolutions": [
{
"prefix": "SETP",
"resolution_number": "18760000001",
"min_number": 990000000,
"max_number": 995000000,
"start_date": "2019-01-19",
"end_date": "2030-01-19",
"technical_key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c"
}
]
}{
"error": "missing enrollment"
}{
"error": "not found"
}{
"error": "the DIAN TestSetId is required"
}{
"error": "internal error"
}Colombia
List resolutions
List the DIAN numbering resolutions linked to a registered supplier, fetched live from the DIAN.
GET
/
apps
/
gov-co
/
v1
/
entries
/
{silo_entry_id}
/
resolutions
List the numbering resolutions
curl --request GET \
--url https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions"
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}/resolutions', 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}/resolutions",
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}/resolutions"
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}/resolutions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-co/v1/entries/{silo_entry_id}/resolutions")
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{
"resolutions": [
{
"prefix": "SETP",
"resolution_number": "18760000001",
"min_number": 990000000,
"max_number": 995000000,
"start_date": "2019-01-19",
"end_date": "2030-01-19",
"technical_key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c"
}
]
}{
"error": "missing enrollment"
}{
"error": "not found"
}{
"error": "the DIAN TestSetId is required"
}{
"error": "internal error"
}Lists the DIAN numbering resolutions linked to the supplier, with their prefix, authorized range, validity dates and technical key. Use the prefix as the invoice
series, and pick codes within the range and validity dates.
Sandbox suppliers always return the fixed DIAN test resolution (series
SETP). Production suppliers return their current resolutions, fetched live from the DIAN. 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 numbering resolutions.
Numbering resolutions; empty when the DIAN has none for the supplier.
Show child attributes
Show child attributes
Was this page helpful?