Obtener un F29 declarado
curl --request GET \
--url https://api.tupana.ai/v2/f29-declarations/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/f29-declarations/{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/f29-declarations/{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/f29-declarations/{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/f29-declarations/{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/f29-declarations/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/f29-declarations/{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": "f2fo_1234567890",
"master_entity_id": "ment_4829301923847",
"period": "2026-10",
"period_year": 2026,
"period_month": 10,
"folio": "8812345678",
"version": 0,
"total_amount": 1145500,
"summary": {
"total_debits": 1900000,
"total_credits": 950000,
"vat_determined": 950000,
"credit_remainder_next_period": 0,
"single_tax_withholding": 45000,
"fee_withholding": 30500,
"ppm_determined": 120000,
"total_determined": 1145500,
"total_due": 1145500,
"total_due_with_surcharge": 0
},
"pdf_url": null,
"synced_at": "2026-11-23T09:12:00Z",
"codes": [
{
"code": "538",
"label": "L24 TOTAL DEBITOS",
"value": 1900000
},
{
"code": "91",
"label": "L148 TOTAL A PAGAR EN PLAZO LEGAL",
"value": 1145500
}
]
}{
"error": {
"type": "permission_error",
"code": "addon_required",
"message": "<string>",
"doc_url": "<string>",
"request_id": "req_8f3a9c2b1e7d4",
"param": "<string>",
"resource": "<string>",
"suggested_action": "<string>",
"retryable": true
}
}{
"error": {
"type": "permission_error",
"code": "addon_required",
"message": "<string>",
"doc_url": "<string>",
"request_id": "req_8f3a9c2b1e7d4",
"param": "<string>",
"resource": "<string>",
"suggested_action": "<string>",
"retryable": true
}
}F29
Obtener un F29 declarado con todos sus códigos (API v2)
Una declaración de F29 con todos los códigos del formulario, tal como los devuelve el SII.
GET
/
f29-declarations
/
{id}
/
Obtener un F29 declarado
curl --request GET \
--url https://api.tupana.ai/v2/f29-declarations/{id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/f29-declarations/{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/f29-declarations/{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/f29-declarations/{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/f29-declarations/{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/f29-declarations/{id}/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/f29-declarations/{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": "f2fo_1234567890",
"master_entity_id": "ment_4829301923847",
"period": "2026-10",
"period_year": 2026,
"period_month": 10,
"folio": "8812345678",
"version": 0,
"total_amount": 1145500,
"summary": {
"total_debits": 1900000,
"total_credits": 950000,
"vat_determined": 950000,
"credit_remainder_next_period": 0,
"single_tax_withholding": 45000,
"fee_withholding": 30500,
"ppm_determined": 120000,
"total_determined": 1145500,
"total_due": 1145500,
"total_due_with_surcharge": 0
},
"pdf_url": null,
"synced_at": "2026-11-23T09:12:00Z",
"codes": [
{
"code": "538",
"label": "L24 TOTAL DEBITOS",
"value": 1900000
},
{
"code": "91",
"label": "L148 TOTAL A PAGAR EN PLAZO LEGAL",
"value": 1145500
}
]
}{
"error": {
"type": "permission_error",
"code": "addon_required",
"message": "<string>",
"doc_url": "<string>",
"request_id": "req_8f3a9c2b1e7d4",
"param": "<string>",
"resource": "<string>",
"suggested_action": "<string>",
"retryable": true
}
}{
"error": {
"type": "permission_error",
"code": "addon_required",
"message": "<string>",
"doc_url": "<string>",
"request_id": "req_8f3a9c2b1e7d4",
"param": "<string>",
"resource": "<string>",
"suggested_action": "<string>",
"retryable": true
}
}codes trae cada código del formulario declarado: value es un entero en los montos y texto en el resto (por ejemplo, tasas). label es el nombre de la línea cuando Tupana lo conoce.Authorizations
Response
La declaración con todos sus códigos
