# Get a persona física's annual return prefill

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

What SAT will prefill in a persona física issuer's annual return, from its viewers: the wages or similar income and the ISR withheld, per employer, and the personal deductions it takes from their invoices, with those that could be deducted and aren't taken, and why. It's read with the e.firma on each query (POST /v1/sat_declarations/refresh), for the previous fiscal year and the current one; it doesn't use stamps. A persona moral issuer gets parameter_invalid.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `year` | query |  | The fiscal year, like 2025. By default, the previous one (the one being filed). |

## With the TypeScript SDK

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

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

const satAnnualPreload = await fiscalisto.satDeclarations.annualPreload();
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

sat_annual_preload = fiscalisto.sat_declarations.annual_preload()
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$satAnnualPreload = $fiscalisto->satDeclarations->annualPreload();
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var satAnnualPreload = await fiscalisto.SatDeclarations.AnnualPreloadAsync();
```

## 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()

	satAnnualPreload, err := client.SatDeclarations.AnnualPreload(ctx, nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *satAnnualPreload)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var satAnnualPreload = fiscalisto.satDeclarations().annualPreload();
System.out.println(satAnnualPreload);
```

## Response 200

OK.

A `SatAnnualPreload` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"sat_annual_preload"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer. |
| `year` | integer | yes | The annual return's fiscal year. (from -9007199254740991 to 9007199254740991) |
| `payroll` | object or null | yes | What the SAT's payroll viewer says: what their employers paid them and the ISR withheld, according to their payroll receipts. null if it hasn't been read yet. |
| `payroll.updated_on` | string or null | yes | Up to which day the SAT has processed the receipts (YYYY-MM-DD). |
| `payroll.read_at` | string | yes | When it was read from the SAT. |
| `payroll.concepts` | array of object | yes | The fiscal year's totals from all their employers. |
| `payroll.concepts[].code` | string | yes | The SAT code: PIRA1 income from assimilated salaries, PISR1 ISR withheld, and those for wages and salaries. |
| `payroll.concepts[].group` | string | yes | The group the SAT shows it in. |
| `payroll.concepts[].title` | string | yes | Its name at the SAT. |
| `payroll.concepts[].amount` | number | yes | The fiscal year's amount, in pesos. |
| `payroll.employers` | array of object | yes | Each employer (withholding agent) with their totals. |
| `payroll.employers[].tax_id` | string | yes | The employer's RFC. |
| `payroll.employers[].name` | string | yes | Their name or razón social. |
| `payroll.employers[].concepts` | array of object | yes | Their totals for the fiscal year by code. |
| `payroll.employers[].concepts[].code` | string | yes | The SAT code, as in concepts. |
| `payroll.employers[].concepts[].title` | string | yes | Its name at the SAT. |
| `payroll.employers[].concepts[].amount` | number | yes | That employer's amount for the fiscal year, in pesos. |
| `personal_deductions` | object or null | yes | What the SAT's personal deductions viewer says. null if it hasn't been read yet. |
| `personal_deductions.updated_at` | string or null | yes | When the SAT updated the viewer. |
| `personal_deductions.read_at` | string | yes | When it was read from the SAT. |
| `personal_deductions.total_taken` | number | yes | The personal deductions the SAT preloads. |
| `personal_deductions.total_possible` | number | yes | What could be deducted and the SAT doesn't take (expenses that may be personal deductions). |
| `personal_deductions.taken` | array of object | yes | What it takes, by deduction type. |
| `personal_deductions.taken[].code` | string | yes | The SAT deduction type code (A to J). |
| `personal_deductions.taken[].description` | string | yes | Its name at the SAT. |
| `personal_deductions.taken[].invoices` | integer | yes | How many CFDIs. (from -9007199254740991 to 9007199254740991) |
| `personal_deductions.taken[].total` | number | yes | The sum, in pesos. |
| `personal_deductions.possible` | array of object | yes | What it doesn't take, by the deduction type it seems to be. |
| `personal_deductions.possible[].code` | string | yes | The SAT deduction type code (A to J). |
| `personal_deductions.possible[].description` | string | yes | Its name at the SAT. |
| `personal_deductions.possible[].invoices` | integer | yes | How many CFDIs. (from -9007199254740991 to 9007199254740991) |
| `personal_deductions.possible[].total` | number | yes | The sum, in pesos. |
| `personal_deductions.invoices` | array of object | yes | Each CFDI the viewer considers. |
| `personal_deductions.invoices[].uuid` | string | yes | The tax folio. |
| `personal_deductions.invoices[].issuer_tax_id` | string | yes | The RFC of whoever issued it. |
| `personal_deductions.invoices[].issuer_name` | string | yes | Its name. |
| `personal_deductions.invoices[].date` | string or null | yes | Its issue date (YYYY-MM-DD). |
| `personal_deductions.invoices[].total` | number | yes | Its total, in pesos. |
| `personal_deductions.invoices[].payment_form` | string or null | yes | The payment form, as the SAT gives it. |
| `personal_deductions.invoices[].payment_method` | string or null | yes | The payment method, as the SAT gives it. |
| `personal_deductions.invoices[].product_code` | string or null | yes | The product or service code. |
| `personal_deductions.invoices[].description` | string or null | yes | Its line items. |
| `personal_deductions.invoices[].deduction_code` | string or null | yes | The deduction type the SAT put it in (A to J), or L if it didn't classify it and it could be deducted. |
| `personal_deductions.invoices[].deduction_type` | string or null | yes | That type, as the SAT names it. |
| `personal_deductions.invoices[].possible_code` | string or null | yes | If it wasn't taken (L), the type it seems to be; null if it was taken. |
| `personal_deductions.invoices[].reasons` | array of string | yes | Why it isn't taken, or what the SAT notes when taking it, in its words. |
| `personal_deductions.invoices[].retirement_deposit` | string or null | yes | If it is a retirement contribution or deposit reported by their bank (without a CFDI), which one; null if it is a CFDI. |

```json
{
  "object": "sat_annual_preload",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "year": 2025,
  "payroll": {
    "updated_on": "2026-11-14",
    "read_at": "2026-11-17T18:40:00.000Z",
    "concepts": [
      {
        "code": "PIRA1",
        "group": "Asimilados a salarios",
        "title": "Total de ingresos asimilados a salarios",
        "amount": 231587
      },
      {
        "code": "PISR1",
        "group": "Impuesto sobre la renta retenido",
        "title": "ISR retenido",
        "amount": 24035
      }
    ],
    "employers": [
      {
        "tax_id": "EKU9003173C9",
        "name": "ESCUELA KEMPER URGATE",
        "concepts": [
          {
            "code": "PIRA1",
            "title": "Total de ingresos por asimilados a salarios",
            "amount": 231587
          },
          {
            "code": "PISR1",
            "title": "Total de impuesto retenido",
            "amount": 24035
          }
        ]
      }
    ]
  },
  "personal_deductions": {
    "updated_at": "2026-11-09T10:18:53.177Z",
    "read_at": "2026-11-17T18:40:00.000Z",
    "total_taken": 0,
    "total_possible": 62601,
    "taken": [],
    "possible": [
      {
        "code": "F",
        "description": "Primas por seguros de gastos médicos",
        "invoices": 1,
        "total": 62601
      }
    ],
    "invoices": [
      {
        "uuid": "90C192CF-D3AC-94AF-0F21-DDB66CAD4A26",
        "issuer_tax_id": "EKU9003173C9",
        "issuer_name": "ESCUELA KEMPER URGATE",
        "date": "2025-06-23",
        "total": 62601,
        "payment_form": "99-Por definir",
        "payment_method": "PPD-Pago en parcialidades o diferido",
        "product_code": "84131602-Seguros de asistencia médica y hospitalización",
        "description": "PRIMA NETA SEGURO DE GASTOS MEDICOS",
        "deduction_code": "L",
        "deduction_type": "Concepto no clasificado, con posible deducción",
        "possible_code": "F",
        "reasons": [
          "La clave de uso del CFDI no corresponde a Primas por seguros de gastos médicos."
        ],
        "retirement_deposit": null
      }
    ]
  }
}
```

## 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.
