# List SAT invoices

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

The invoices your downloads brought (and the rest Fiscalisto has for the issuer), from the most recent to the oldest by date.

## 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. |
| `direction` | query |  | received (the default) or issued. |
| `type` | query |  | I, E, P, T or N. |
| `counterparty_tax_id` | query |  | The RFC of whoever issued it (received) or whoever received it (issued). |
| `date_gte` | query |  | Dated from this day (YYYY-MM-DD). |
| `date_lte` | query |  | Dated until this day (YYYY-MM-DD), inclusive. |
| `cost_center` | query |  | Only those of this cost center (ccn_…), or none for those that have none. |
| `tag` | query |  | Only those carrying this tag (tag_…). |
| `cash_confirmation` | query |  | Only the cash PUE received invoices the empresa asks to confirm: pending (no one has noted where the money came from) or confirmed. |

## 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.satInvoices.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_invoices.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->satInvoices->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.SatInvoices.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.SatInvoices.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.satInvoices().listAutoPaging()) {
    System.out.println(item.getId());
}
```

## Response 200

OK.

A `SatInvoiceList` 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_invoice"` | yes | What kind of object it is («invoice», «customer»…). |
| `data[].issuer` | string | yes | The issuer in your account (iss_…) this invoice belongs to. |
| `data[].uuid` | string | yes | The tax folio (UUID of the stamp). |
| `data[].direction` | `received`, `issued` | yes | received (made to the issuer) or issued (the issuer issued it). |
| `data[].type` | `I`, `E`, `P`, `T`, `N` or null | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `data[].date` | string | yes | The receipt's date (Fecha), in the local time it was issued with. |
| `data[].series` | string or null | yes | Series (Serie), or null. |
| `data[].folio` | string or null | yes | Folio (Folio), or null. |
| `data[].issued_by` | object | yes | Who issued it (Emisor). |
| `data[].issued_by.tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `data[].issued_by.legal_name` | string or null | yes | Name or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»). |
| `data[].issued_to` | object | yes | Who it was issued to (Receptor). |
| `data[].issued_to.tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `data[].issued_to.legal_name` | string or null | yes | Name or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»). |
| `data[].currency` | string or null | yes | Currency (Moneda): MXN, USD… |
| `data[].exchange_rate` | number or null | yes | Exchange rate (TipoCambio), or null in pesos. |
| `data[].payment_method` | string or null | yes | Payment method (MetodoPago): PUE or PPD. |
| `data[].payment_form` | string or null | yes | Payment form (FormaPago), c_FormaPago code. |
| `data[].use` | string or null | yes | CFDI use (UsoCFDI). |
| `data[].subtotal` | number or null | yes | Subtotal (SubTotal). |
| `data[].total` | number or null | yes | Total (Total). |
| `data[].taxes` | object | yes | The receipt's taxes: transferred (iva, ieps), withheld (iva_withheld, isr_withheld, ieps_withheld) and local. |
| `data[].taxes.iva` | number | yes | IVA transferred. |
| `data[].taxes.ieps` | number | yes | IEPS transferred. |
| `data[].taxes.iva_withheld` | number | yes | IVA withheld. |
| `data[].taxes.isr_withheld` | number | yes | ISR withheld. |
| `data[].taxes.ieps_withheld` | number | yes | IEPS withheld. |
| `data[].taxes.local_transferred` | number | yes | Local taxes transferred (ISH and similar). |
| `data[].taxes.local_withheld` | number | yes | Local taxes withheld. |
| `data[].sat_status` | `active`, `canceled` or null | yes | Its status at the SAT when it was checked: active (valid) or canceled. null if it hasn't been checked yet. |
| `data[].paid_otherwise` | object or null | yes | Received only, marked with mark_paid, in the app or by a rule: without_complement true on a PPD paid without a payment complement (the SAT still sees it as unpaid); false on a PUE, where only the source of the money was noted. |
| `data[].paid_otherwise.without_complement` | boolean | yes | true: a PPD paid without a complement, out of Por pagar. false: a PUE, already paid, with its source of money. |
| `data[].paid_otherwise.paid_on` | string or null | yes | The day it was paid (YYYY-MM-DD), if given. |
| `data[].paid_otherwise.payment_form` | string or null | yes | What it was paid with: c_FormaPago code (01 cash, 03 transfer…). |
| `data[].paid_otherwise.money_source` | `petty_cash`, `reimbursement`, `bank`, `other` or null | yes | Where the money came from: petty_cash, reimbursement (a person, who was reimbursed later), bank or other. |
| `data[].paid_otherwise.by_rule` | boolean | yes | true when a rule in Ajustes › Pagos sin complemento marked it. |
| `data[].cash_confirmation` | `pending`, `confirmed` or null | yes | Only on a received PUE paid in cash when the empresa asks to confirm these payments (Ajustes › Pagos en efectivo): pending until someone notes where the money came from (mark_paid with money_source), confirmed afterwards. Null on the rest. Its taxes don't change. |
| `data[].cost_center` | string or null | yes | Its cost center (ccn_…), or null. Set or change it with POST /v1/sat_invoices/{id}. |
| `data[].account` | string or null | yes | The number of your chart's account its income or expense is booked to instead of its category's (in the app, by a rule of Ajustes › Reglas or with account). Null: its category's. |
| `data[].tags` | array of object | yes | Its tags, by name. automatic: true on those a rule added (the purchase order it was linked to or a rule in Ajustes › Reglas). Change them with POST /v1/sat_invoices/{id}. |
| `data[].tags[].id` | string | yes | The tag (tag_…). |
| `data[].tags[].name` | string | yes | Its name. |
| `data[].tags[].color` | string | yes | Its color. |
| `data[].tags[].automatic` | boolean | yes | true if a rule added it (its purchase order or Ajustes › Reglas), not a person. |
| `data[].sat_download` | string or null | yes | The download (sdl_…) that brought it, or null. |
| `data[].downloaded_at` | string (date-time) or null | yes | When it arrived. |
| `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": "sat_OufpKqnrvx9p1F",
      "object": "sat_invoice",
      "livemode": false,
      "issuer": "iss_OufpKqnrvx9p",
      "uuid": "9B2D4E61-7C3A-4F18-8E5D-0A6B9C1D2E3F",
      "direction": "received",
      "type": "I",
      "date": "2026-09-12T11:04:00",
      "series": "A",
      "folio": "4821",
      "issued_by": {
        "tax_id": "XIA190128J61",
        "legal_name": "XENON INDUSTRIAL ARTICLES"
      },
      "issued_to": {
        "tax_id": "TOL190312KT4",
        "legal_name": "TOLPI"
      },
      "currency": "MXN",
      "exchange_rate": null,
      "payment_method": "PUE",
      "payment_form": "03",
      "use": "G03",
      "subtotal": 18400,
      "total": 21344,
      "taxes": {
        "iva": 2944,
        "ieps": 0,
        "iva_withheld": 0,
        "isr_withheld": 0,
        "ieps_withheld": 0,
        "local_transferred": 0,
        "local_withheld": 0
      },
      "sat_status": "active",
      "paid_otherwise": null,
      "cash_confirmation": null,
      "cost_center": null,
      "account": null,
      "tags": [
        {
          "id": "tag_OufpKqnrvx9p1",
          "name": "Obra Norte",
          "color": "info",
          "automatic": false
        }
      ],
      "sat_download": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc",
      "downloaded_at": "2026-10-24T10:27:40-06:00"
    }
  ],
  "has_more": false,
  "url": "/v1/sat_invoices"
}
```

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