# Get a SAT invoice

`GET https://api.fiscalisto.com/v1/sat_invoices/{id}`

A CFDI a SAT download brought, with its amounts and its status at SAT.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |

## With the TypeScript SDK

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

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

const satInvoice = await fiscalisto.satInvoices.get("sat_OufpKqnrvx9p1F");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

sat_invoice = fiscalisto.sat_invoices.get("sat_OufpKqnrvx9p1F")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$satInvoice = $fiscalisto->satInvoices->get('sat_OufpKqnrvx9p1F');
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var satInvoice = await fiscalisto.SatInvoices.GetAsync("sat_OufpKqnrvx9p1F");
```

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

	satInvoice, err := client.SatInvoices.Get(ctx, "sat_OufpKqnrvx9p1F")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satInvoice.ID)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var satInvoice = fiscalisto.satInvoices().get("sat_OufpKqnrvx9p1F");
System.out.println(satInvoice.getId());
```

## Response 200

OK.

A `SatInvoice` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"sat_invoice"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer in your account (iss_…) this invoice belongs to. |
| `uuid` | string | yes | The tax folio (UUID of the stamp). |
| `direction` | `received`, `issued` | yes | received (made to the issuer) or issued (the issuer issued it). |
| `type` | `I`, `E`, `P`, `T`, `N` or null | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `date` | string | yes | The receipt's date (Fecha), in the local time it was issued with. |
| `series` | string or null | yes | Series (Serie), or null. |
| `folio` | string or null | yes | Folio (Folio), or null. |
| `issued_by` | object | yes | Who issued it (Emisor). |
| `issued_by.tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `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.»). |
| `issued_to` | object | yes | Who it was issued to (Receptor). |
| `issued_to.tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `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.»). |
| `currency` | string or null | yes | Currency (Moneda): MXN, USD… |
| `exchange_rate` | number or null | yes | Exchange rate (TipoCambio), or null in pesos. |
| `payment_method` | string or null | yes | Payment method (MetodoPago): PUE or PPD. |
| `payment_form` | string or null | yes | Payment form (FormaPago), c_FormaPago code. |
| `use` | string or null | yes | CFDI use (UsoCFDI). |
| `subtotal` | number or null | yes | Subtotal (SubTotal). |
| `total` | number or null | yes | Total (Total). |
| `taxes` | object | yes | The receipt's taxes: transferred (iva, ieps), withheld (iva_withheld, isr_withheld, ieps_withheld) and local. |
| `taxes.iva` | number | yes | IVA transferred. |
| `taxes.ieps` | number | yes | IEPS transferred. |
| `taxes.iva_withheld` | number | yes | IVA withheld. |
| `taxes.isr_withheld` | number | yes | ISR withheld. |
| `taxes.ieps_withheld` | number | yes | IEPS withheld. |
| `taxes.local_transferred` | number | yes | Local taxes transferred (ISH and similar). |
| `taxes.local_withheld` | number | yes | Local taxes withheld. |
| `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. |
| `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. |
| `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. |
| `paid_otherwise.paid_on` | string or null | yes | The day it was paid (YYYY-MM-DD), if given. |
| `paid_otherwise.payment_form` | string or null | yes | What it was paid with: c_FormaPago code (01 cash, 03 transfer…). |
| `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. |
| `paid_otherwise.by_rule` | boolean | yes | true when a rule in Ajustes › Pagos sin complemento marked it. |
| `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. |
| `cost_center` | string or null | yes | Its cost center (ccn_…), or null. Set or change it with POST /v1/sat_invoices/{id}. |
| `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. |
| `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}. |
| `tags[].id` | string | yes | The tag (tag_…). |
| `tags[].name` | string | yes | Its name. |
| `tags[].color` | string | yes | Its color. |
| `tags[].automatic` | boolean | yes | true if a rule added it (its purchase order or Ajustes › Reglas), not a person. |
| `sat_download` | string or null | yes | The download (sdl_…) that brought it, or null. |
| `downloaded_at` | string (date-time) or null | yes | When it arrived. |

```json
{
  "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"
}
```

## 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.
- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).

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