Consultar un pedido y retirar el CAF
curl --request GET \
--url https://api.tupana.ai/v2/folio-requests/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/folio-requests/{id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/folio-requests/{id}/', 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.tupana.ai/v2/folio-requests/{id}/",
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: <api-key>"
],
]);
$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.tupana.ai/v2/folio-requests/{id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.tupana.ai/v2/folio-requests/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/folio-requests/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "fir_8d4a2f7c1e9b5",
"dte_type": 33,
"status": "completed",
"requested_quantity": 50,
"granted_quantity": 50,
"folio_start": 539,
"folio_end": 588,
"caf_xml": "<AUTORIZACION><CAF version=\"1.0\">…</CAF></AUTORIZACION>",
"idempotency_key": "pedido-facturas-2026-08-27-01",
"error": "",
"created_at": "2026-08-27T14:30:00Z",
"completed_at": "2026-08-27T14:32:11Z"
}{
"detail": "No tienes acceso a esta entidad."
}{
"error": "Pedido no encontrado."
}Folios
Consultar un pedido de folios y retirar el CAF (API v2)
Estado de un pedido de timbraje y descarga del CAF entregado por el SII.
GET
/
folio-requests
/
{id}
/
Consultar un pedido y retirar el CAF
curl --request GET \
--url https://api.tupana.ai/v2/folio-requests/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/folio-requests/{id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/folio-requests/{id}/', 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.tupana.ai/v2/folio-requests/{id}/",
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: <api-key>"
],
]);
$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.tupana.ai/v2/folio-requests/{id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.tupana.ai/v2/folio-requests/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/folio-requests/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "fir_8d4a2f7c1e9b5",
"dte_type": 33,
"status": "completed",
"requested_quantity": 50,
"granted_quantity": 50,
"folio_start": 539,
"folio_end": 588,
"caf_xml": "<AUTORIZACION><CAF version=\"1.0\">…</CAF></AUTORIZACION>",
"idempotency_key": "pedido-facturas-2026-08-27-01",
"error": "",
"created_at": "2026-08-27T14:30:00Z",
"completed_at": "2026-08-27T14:32:11Z"
}{
"detail": "No tienes acceso a esta entidad."
}{
"error": "Pedido no encontrado."
}Authorizations
Response
Pedido encontrado
Pedido de timbraje de folios ante el SII.
