Report what the tenant has configured
curl --request GET \
--url https://api.cufea.com/v1/tenant/configuration \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cufea.com/v1/tenant/configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cufea.com/v1/tenant/configuration"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"dian_environment": "<string>",
"invalid": [
"<string>"
],
"issuer": "configured",
"missing": [
"<string>"
],
"numbering": {
"end_date": "2023-12-25",
"prefix": "<string>",
"range_from": 499999999,
"range_to": 499999999,
"resolution_number": "18760000001",
"start_date": "2023-12-25"
},
"numbering_range": "configured",
"ready_to_invoice": true,
"secrets": [
"<string>"
],
"signer": "ready",
"stage": "sandbox",
"test_set_accepted": true,
"numbering_ranges": [
{
"end_date": "2023-12-25",
"prefix": "<string>",
"range_from": 499999999,
"range_to": 499999999,
"resolution_number": "18760000001",
"start_date": "2023-12-25"
}
],
"production_secrets": [
"<string>"
]
}{
"code": "unauthorized",
"detail": "Missing or invalid API key.",
"request_id": "3668a7374b1e4314b2f932a5620da1f1",
"status": 401,
"title": "Unauthorized",
"type": "urn:cufea:problem:unauthorized"
}{
"code": "rate_limited",
"detail": "This API key made more than 120 requests in the current window. Retry after 17 seconds.",
"request_id": "5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b",
"status": 429,
"title": "Too Many Requests",
"type": "urn:cufea:problem:rate_limited"
}{
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"dian": {
"rule": "<string>",
"text": "<string>"
}
}Report what the tenant has configured
Presence and state of the issuer, the numbering range, the stored secret kinds and the signer. It never contains a secret value, the NIT or personal data. ready_to_invoice is true when an invoice could be created right now.
GET
/
v1
/
tenant
/
configuration
Report what the tenant has configured
curl --request GET \
--url https://api.cufea.com/v1/tenant/configuration \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cufea.com/v1/tenant/configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cufea.com/v1/tenant/configuration"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"dian_environment": "<string>",
"invalid": [
"<string>"
],
"issuer": "configured",
"missing": [
"<string>"
],
"numbering": {
"end_date": "2023-12-25",
"prefix": "<string>",
"range_from": 499999999,
"range_to": 499999999,
"resolution_number": "18760000001",
"start_date": "2023-12-25"
},
"numbering_range": "configured",
"ready_to_invoice": true,
"secrets": [
"<string>"
],
"signer": "ready",
"stage": "sandbox",
"test_set_accepted": true,
"numbering_ranges": [
{
"end_date": "2023-12-25",
"prefix": "<string>",
"range_from": 499999999,
"range_to": 499999999,
"resolution_number": "18760000001",
"start_date": "2023-12-25"
}
],
"production_secrets": [
"<string>"
]
}{
"code": "unauthorized",
"detail": "Missing or invalid API key.",
"request_id": "3668a7374b1e4314b2f932a5620da1f1",
"status": 401,
"title": "Unauthorized",
"type": "urn:cufea:problem:unauthorized"
}{
"code": "rate_limited",
"detail": "This API key made more than 120 requests in the current window. Retry after 17 seconds.",
"request_id": "5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b",
"status": 429,
"title": "Too Many Requests",
"type": "urn:cufea:problem:rate_limited"
}{
"code": "<string>",
"detail": "<string>",
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>",
"dian": {
"rule": "<string>",
"text": "<string>"
}
}Autorizaciones
Respuesta
Successful Response
What the tenant has set up. Reports presence and state only, never values.