# List SAT tax returns

`GET https://api.fiscalisto.com/v1/sat_declarations`

The tax returns your queries brought, from the most recent fiscal year and month to the oldest (the annual one before the months of its year). It doesn't use stamps.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `limit` | query |  | How many per page, from 1 to 100. 10 by default. |
| `starting_after` | query |  | The id of the last one on the previous page, for the next one. |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `year` | query |  | Only those of a fiscal year, like 2025. |
| `source` | query |  | monthly (provisional or final), annual (the annual one) or dyp (Declaraciones y pagos). |
| `month` | query |  | Only those of one month (1 to 12). |
| `type` | query |  | normal or complementary. |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

for await (const item of fiscalisto.satDeclarations.list()) {
  console.log(item.id);
}
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

for item in fiscalisto.sat_declarations.list():
    print(item["id"])
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

foreach ($fiscalisto->satDeclarations->list() as $item) {
    echo $item['id'], "\n";
}
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

await foreach (var item in fiscalisto.SatDeclarations.ListAutoPagingAsync())
    Console.WriteLine(item.Id);
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	for item, err := range client.SatDeclarations.ListAutoPaging(ctx, nil) {
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println(item.ID)
	}
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

for (var item : fiscalisto.satDeclarations().listAutoPaging()) {
    System.out.println(item.getId());
}
```

## Response 200

OK.

A `SatDeclarationList` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"list"` | yes | What kind of object it is («invoice», «customer»…). |
| `data` | array of object | yes | The objects on this page. |
| `data[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `data[].livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `data[].object` | `"sat_declaration"` | yes | What kind of object it is («invoice», «customer»…). |
| `data[].issuer` | string | yes | The issuer that filed it. |
| `data[].source` | `monthly`, `annual`, `dyp` | yes | monthly (provisional or definitive, from 2022), annual (the persona moral annual return) or dyp (the former Declaraciones y pagos service, 2021 and earlier). |
| `data[].year` | integer | yes | The fiscal year. (from -9007199254740991 to 9007199254740991) |
| `data[].month` | integer or null | yes | The month (1 to 12), or null for the annual return and other periods. |
| `data[].period` | string | yes | The period as the SAT names it: «Enero», «Del Ejercicio»… |
| `data[].type` | `normal`, `complementary` | yes | normal or complementary. |
| `data[].complementary_type` | string or null | yes | On a complementary return, its type as the SAT says it («Modificación de Obligaciones», «Obligación no presentada», «Dejar sin efecto obligación»). It is linked to the one it corrects by source, year, month and period. |
| `data[].operation_number` | string | yes | The operation number the SAT gave it. |
| `data[].payment_line` | string or null | yes | The payment line, if there was something to pay. |
| `data[].filed_on` | string or null | yes | When it was filed (YYYY-MM-DD). |
| `data[].profit_coefficient` | number or null | yes | The profit coefficient it applied (ISR for personas morales), or null. |
| `data[].isr_due` | number or null | yes | The ISR owed, according to the acknowledgment. |
| `data[].vat_due` | number or null | yes | The IVA owed, according to the acknowledgment. |
| `data[].total_due` | number or null | yes | The total to pay, according to the acknowledgment. |
| `data[].sections` | array of object | yes | The return's figures by tax (tax), each with its text as the SAT prints it (label) and its value. Empty on Declaraciones y pagos returns (their PDF has two columns that can't be read with certainty) or if the PDF hasn't arrived yet. |
| `data[].sections[].tax` | string | yes | Tax: isr, iva or ieps (ImpuestoRet 001, 002, 003). |
| `data[].sections[].fields` | array of object | yes | The tax's lines, in the PDF's order. |
| `data[].sections[].fields[].label` | string | yes | The line as the SAT prints it. |
| `data[].sections[].fields[].value` | number | yes | The line's value as the return carries it (number or text). |
| `data[].receipt` | object or null | yes | What the acknowledgment says: each concept with its amount owed and to pay, the total, the payment line and its validity. null if the acknowledgment hasn't arrived yet. |
| `data[].receipt.concepts` | array of object | yes | Each tax in the acknowledgment. |
| `data[].receipt.concepts[].concept` | string | yes | The payment line's concept (ISR, IVA…) as the SAT gives it. |
| `data[].receipt.concepts[].due` | number or null | yes | What resulted as owed. |
| `data[].receipt.concepts[].amount_due` | number or null | yes | The amount owed. |
| `data[].receipt.concepts[].amount_to_pay` | number or null | yes | The amount to pay. |
| `data[].receipt.concepts[].in_favor` | number or null | yes | The balance in favor the acknowledgment states (the personas físicas annual return); null if it doesn't include one. |
| `data[].receipt.total` | number or null | yes | Total in the receipt's currency (Total). |
| `data[].receipt.payment_line` | string or null | yes | The acknowledgment's payment line. |
| `data[].receipt.valid_until` | string or null | yes | Until when the payment line works (YYYY-MM-DD). |
| `data[].summary` | object | yes | The same figures with fixed names, by obligation (ISR, IVA, each withholding), to read them the same way every month without knowing the SAT's format. A figure that isn't in the return or couldn't be read is null, never 0. On Declaraciones y pagos it only carries what is in the acknowledgment. |
| `data[].summary.obligations` | array of object | yes | Each obligation in the return: isr, vat, ieps, isr_salaries, isr_assimilated_salaries, isr_professional_services, isr_rent, vat_withholdings or other. |
| `data[].summary.obligations[].obligation` | `isr`, `vat`, `ieps`, `isr_salaries`, `isr_assimilated_salaries`, `isr_professional_services`, `isr_rent`, `vat_withholdings`, `other` | yes | Which obligation it is. |
| `data[].summary.obligations[].name` | string | yes | Its name as the SAT prints it. |
| `data[].summary.obligations[].read` | boolean | yes | true if its figures were read from the return; false if they only come from the acknowledgment. |
| `data[].summary.obligations[].amount_due` | number or null | yes | The amount owed. |
| `data[].summary.obligations[].amount_to_pay` | number or null | yes | The amount to pay. |
| `data[].summary.obligations[].in_favor` | number or null | yes | The balance in favor, from the return or the acknowledgment; null if there is none or it couldn't be read. |
| `data[].summary.obligations[].figures` | object | yes | The obligation's figures with fixed names (in IVA: taxable_16, taxable_0, exempt, charged, charged_16, charged_16_invoiced, paid_16, creditable, withheld, balance_applied; in all: surcharges, inflation, paid_before, due, in_favor, to_pay). null if the return doesn't include it or it couldn't be read, never 0. |
| `data[].summary.total_to_pay` | number or null | yes | The acknowledgment's total to pay; without an acknowledgment, the sum of the obligations when all are known. |
| `data[].figures_status` | `read`, `pending`, `unavailable` | yes | read: its PDF has been read (sections, summary, receipt and the *_due fields come from it; a null figure means the return doesn't include it). pending: it is listed but its PDF hasn't been downloaded yet, so its figures come empty or null; it downloads on its own, with no extra stamp, by figures_expected_at. unavailable: the SAT hasn't provided the PDF (files_error says why); it is requested again on the next read. |
| `data[].figures_expected_at` | string (date-time) or null | yes | When its figures should be there, if they aren't (the background read that finishes a check cut off by time). null when they are already there or when no read is scheduled: then they arrive with the next POST /v1/sat_declarations/refresh. |
| `data[].payment` | object or null | yes | Its payment at the bank, from the SAT's «Declaraciones pagadas» (monthly returns only; null on the rest). status: paid (the SAT has the payment), unpaid (it has something to pay and the SAT didn't have it as paid at checked_at), overdue (same, with the payment line expired), nothing_to_pay or unchecked (not checked yet). paid_on, amount_paid and bank of the most recent payment, and each payment in payments with its bank, day, payment line, channel, amount, bank operation number and payment key. |
| `data[].payment.status` | `paid`, `unpaid`, `overdue`, `nothing_to_pay`, `unchecked` | yes | paid, unpaid (something to pay that the SAT didn't have as paid), overdue (same, payment line expired), nothing_to_pay or unchecked (not known yet: its figures haven't been read, see figures_status, or its payment hasn't been looked up; checked_at comes as null). |
| `data[].payment.paid_on` | string or null | yes | The day of the most recent payment (YYYY-MM-DD). |
| `data[].payment.amount_paid` | number or null | yes | The amount paid, in pesos (the sum of the payments). |
| `data[].payment.bank` | string or null | yes | The bank of the most recent payment. |
| `data[].payment.checked_at` | string (date-time) or null | yes | When it was last looked up in «Declaraciones pagadas». |
| `data[].payment.payments` | array of object | yes | Each payment as the SAT recorded it from the bank. |
| `data[].payment.payments[].bank` | string or null | yes | The credit institution. |
| `data[].payment.payments[].date` | string or null | yes | The payment day (YYYY-MM-DD). |
| `data[].payment.payments[].payment_line` | string or null | yes | The payment line paid. |
| `data[].payment.payments[].channel` | string or null | yes | How it was paid, as the SAT says it («Ventanilla», «Internet»). |
| `data[].payment.payments[].amount` | number or null | yes | The amount paid. |
| `data[].payment.payments[].bank_operation_number` | string or null | yes | The bank's operation number. |
| `data[].payment.payments[].payment_key` | string or null | yes | The payment key. |
| `data[].files` | object | yes | Which files are already available: pdf (GET …/pdf), receipt (GET …/receipt), payment_record (GET …/payment_record, when the SAT has it as paid) and financial_statements (GET …/financial_statements, only on the persona moral annual return). |
| `data[].files.pdf` | boolean | yes | Whether the return PDF is already available (GET …/pdf). |
| `data[].files.receipt` | boolean | yes | Whether the acknowledgment is already available (GET …/receipt). |
| `data[].files.payment_record` | boolean | yes | Whether the payment record is already available (GET …/payment_record). |
| `data[].files.financial_statements` | boolean | yes | Whether the financial statements Excel file is already available (GET …/financial_statements), only on the persona moral annual return. |
| `data[].files_error` | string or null | yes | Why a file is missing, as the SAT said it (for example «No se puede generar el archivo»). It is requested again on the next check. |
| `data[].created_at` | string (date-time) or null | yes | When it was first brought in. |
| `data[].updated_at` | string (date-time) or null | yes | When it last changed. |
| `has_more` | boolean | yes | true if there are more: request the next one with starting_after set to the id of the last one. |
| `url` | string | yes | This list's path. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "dcl_OufpKqnrvx9p1F",
      "object": "sat_declaration",
      "livemode": false,
      "issuer": "iss_OufpKqnrvx9p",
      "source": "monthly",
      "year": 2026,
      "month": 9,
      "period": "Septiembre",
      "type": "normal",
      "complementary_type": null,
      "operation_number": "92026090000001",
      "payment_line": "0426TEST2026090001",
      "filed_on": "2026-10-15",
      "profit_coefficient": 0.0219,
      "isr_due": 7718.53,
      "vat_due": 16520,
      "total_due": 24238.53,
      "sections": [
        {
          "tax": "ISR personas morales",
          "fields": [
            {
              "label": "INGRESOS NOMINALES DEL PERIODO",
              "value": 292500
            },
            {
              "label": "COEFICIENTE DE UTILIDAD",
              "value": 0.0219
            },
            {
              "label": "IMPUESTO A CARGO",
              "value": 7718.53
            }
          ]
        }
      ],
      "receipt": {
        "concepts": [
          {
            "concept": "ISR personas morales",
            "due": 7718.53,
            "amount_due": 7718.53,
            "amount_to_pay": 7718.53,
            "in_favor": null
          },
          {
            "concept": "IVA personas morales",
            "due": 16520,
            "amount_due": 16520,
            "amount_to_pay": 16520,
            "in_favor": null
          }
        ],
        "total": 24238.53,
        "payment_line": "0426TEST2026090001",
        "valid_until": null
      },
      "summary": {
        "obligations": [
          {
            "obligation": "isr",
            "name": "ISR personas morales",
            "read": true,
            "amount_due": 7718.53,
            "amount_to_pay": 7718.53,
            "in_favor": null,
            "figures": {
              "income": 292500,
              "invoiced_income": 292500,
              "income_ytd": 2632500,
              "deductions": null,
              "profit_coefficient": 0.0219,
              "taxable_profit": 57651.75,
              "losses_applied": 0,
              "tax_base": 57651.75,
              "tax_caused": 17295.53,
              "prior_payments": 9577,
              "withheld": 0,
              "surcharges": null,
              "inflation": null,
              "paid_before": null,
              "due": 7718.53,
              "in_favor": null,
              "to_pay": 7718.53
            }
          },
          {
            "obligation": "vat",
            "name": "IVA personas morales",
            "read": false,
            "amount_due": 16520,
            "amount_to_pay": 16520,
            "in_favor": null,
            "figures": {
              "taxable_16": null,
              "taxable_0": null,
              "exempt": null,
              "charged": null,
              "paid_16": null,
              "creditable": null,
              "withheld": null,
              "balance_applied": null,
              "surcharges": null,
              "inflation": null,
              "paid_before": null,
              "due": null,
              "in_favor": null,
              "to_pay": null
            }
          }
        ],
        "total_to_pay": 24238.53
      },
      "figures_status": "read",
      "figures_expected_at": null,
      "payment": {
        "status": "paid",
        "paid_on": "2026-10-20",
        "amount_paid": 3495,
        "bank": "Banco Inbursa, S.A.",
        "checked_at": "2026-11-16T22:15:00-06:00",
        "payments": [
          {
            "bank": "Banco Inbursa, S.A.",
            "date": "2026-10-20",
            "payment_line": "04267CKX370051367252",
            "channel": "Ventanilla",
            "amount": 3495,
            "bank_operation_number": "4209608187",
            "payment_key": "3F2796FBA4"
          }
        ]
      },
      "files": {
        "pdf": true,
        "receipt": true,
        "payment_record": true,
        "financial_statements": false
      },
      "files_error": null,
      "created_at": "2026-10-26T09:12:00-06:00",
      "updated_at": "2026-10-26T09:12:04-06:00"
    }
  ],
  "has_more": false,
  "url": "/v1/sat_declarations"
}
```

## Errors

- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
