# Complements

> Carta Porte, foreign trade, local taxes, educational institutions and the other CFDI complements, as one more field of the invoice.

A complement adds to the CFDI the information SAT requires for certain operations. In the API each one is a field of [`POST /v1/invoices`](https://fiscalisto.com/en/docs/api/referencia/facturas/create-invoice), on the invoice or on each line item, and Fiscalisto checks it with the same rules as the app before stamping.

| Complement | Field | What for |
| --- | --- | --- |
| Carta Porte 3.1 | `carta_porte` | Moving goods by road, sea, air or rail: origin, destinations, goods, vehicle and operators. It goes on a transfer (`"type": "T"`) or on a freight invoice. |
| Comercio exterior 2.0 | `comercio_exterior` | Definitive export of goods, with `"export": "02"` or `"04"`. |
| Impuestos locales | `local_taxes` | State taxes transferred or withheld, like lodging's ISH. |
| Instituciones educativas | `items[].iedu` | Tuition: student, CURP, level and RVOE, so parents can deduct it. |
| A cuenta de terceros | `items[].third_party` | A line item charged on behalf of another taxpayer. |
| Vehículo usado | `items[].used_vehicle` | Sale of a used car by an individual. |
| Hidrocarburos y petrolíferos | `items[].hydrocarbon` | Selling diesel or gasoline: the CNE permit's type and number and the subproduct, on every fuel line item. |
| Donatarias | `donation` | Donation receipts of an authorized donee. |
| INE | `ine` | Operations with political parties and candidates. |
| Leyendas fiscales | `leyendas` | Text a tax provision requires including. |
| Addenda | `addenda` (and `items[].addenda`) | What some receivers ask for, like Walmart or Soriana. |

Invoices also carry, without a complement, the property tax account (`items[].predial`) on a lease and the customs entries (`items[].pedimentos`) of imported goods.

In `comercio_exterior`, each good in `goods` carries its tariff code in `tariff` (10 digits, with the NICO). Fiscalisto checks it against SAT's catalog (c_FraccionArancelaria) before stamping: if it isn't current, the invoice is refused with `invoice_invalid` and the line item that carries it, without using a timbre. The customs unit (`unit`) can be omitted: the tariff code's UMT goes, which is the only one SAT accepts. Search tariff codes with `GET /v1/sat_catalogs/customs_tariffs?q=8471` or by words (`?q=tabletas`); each carries its `customs_unit`.

Every diesel (`15101505`) or gasoline (`15101514`, `15101515`) line item of an invoice or credit note carries `hydrocarbon`, with unit `LTR`: the CNE (or CRE) permit type in `permit_type` (`PER01` service stations… `PER11`), its number in `permit_number` as the CNE granted it (`PL/12345/EXP/ES/2016`) and the subproduct in `subproduct` (`SP16` regular gasoline, `SP17` premium, `SP18` automotive diesel, `SP24` ultra-low-sulfur diesel…). SAT requires it since April 24, 2026 and checks the permit belongs to your RFC; before stamping, Fiscalisto checks it's there, that the number has its type's shape and that the subproduct belongs to the key.

If you always sell under the same permit, save it on the product: `POST /v1/products` with `hydrocarbon` (`permit_type`, `permit_number` and, optionally, `subproduct`). Every line item that sends `product` with that product carries the permit without repeating it; a line item with its own `hydrocarbon` uses that one.

The `POST /v1/invoices` reference describes every field of every complement, with its name in SAT's XML.

## Example: lodging with ISH

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: reserva-77812" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "04",
    "items": [{ "description": "Hospedaje, 2 noches", "product_key": "90111800", "unit_name": "Noche", "quantity": 2, "unit_price": 1500 }],
    "local_taxes": [{ "retention": false, "name": "ISH", "rate": 3, "amount": 90 }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  payment_form: "04",
  items: [
    {
      description: "Hospedaje, 2 noches",
      product_key: "90111800",
      unit_name: "Noche",
      quantity: 2,
      unit_price: 1500,
    },
  ],
  local_taxes: [
    {
      retention: false,
      name: "ISH",
      rate: 3,
      amount: 90,
    },
  ],
}, { idempotencyKey: "reserva-77812" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "payment_form": "04",
    "items": [
        {
            "description": "Hospedaje, 2 noches",
            "product_key": "90111800",
            "unit_name": "Noche",
            "quantity": 2,
            "unit_price": 1500,
        },
    ],
    "local_taxes": [
        {
            "retention": False,
            "name": "ISH",
            "rate": 3,
            "amount": 90,
        },
    ],
}, idempotency_key="reserva-77812")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'payment_form' => '04',
    'items' => [
        [
            'description' => 'Hospedaje, 2 noches',
            'product_key' => '90111800',
            'unit_name' => 'Noche',
            'quantity' => 2,
            'unit_price' => 1500,
        ],
    ],
    'local_taxes' => [
        [
            'retention' => false,
            'name' => 'ISH',
            'rate' => 3,
            'amount' => 90,
        ],
    ],
], ['idempotency_key' => 'reserva-77812']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		PaymentForm: fiscalisto.String("04"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Hospedaje, 2 noches"),
				ProductKey:  fiscalisto.String("90111800"),
				UnitName:    fiscalisto.String("Noche"),
				Quantity:    fiscalisto.Float64(2),
				UnitPrice:   fiscalisto.Float64(1500),
			},
		},
		LocalTaxes: []fiscalisto.InvoiceCreateLocalTax{
			{Retention: false, Name: "ISH", Rate: 3, Amount: 90},
		},
	}, fiscalisto.WithIdempotencyKey("reserva-77812"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import com.fiscalisto.model.InvoiceCreateLocalTax;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setPaymentForm("04")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Hospedaje, 2 noches")
                        .setProductKey("90111800")
                        .setUnitName("Noche")
                        .setQuantity(2)
                        .setUnitPrice(1500)
        ))
        .setLocalTaxes(List.of(
                new InvoiceCreateLocalTax()
                        .setRetention(false)
                        .setName("ISH")
                        .setRate(3)
                        .setAmount(90)
        )), RequestOptions.idempotencyKey("reserva-77812"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    PaymentForm = "04",
    Items = new()
    {
        new()
        {
            Description = "Hospedaje, 2 noches",
            ProductKey = "90111800",
            UnitName = "Noche",
            Quantity = 2,
            UnitPrice = 1500,
        },
    },
    LocalTaxes = new()
    {
        new()
        {
            Retention = false,
            Name = "ISH",
            Rate = 3,
            Amount = 90,
        },
    },
}, new RequestOptions { IdempotencyKey = "reserva-77812" });
```

`rate` is a percentage and `amount` is the local tax's amount; Fiscalisto adds it to (or, if it's a withholding, subtracts it from) the total.

If the catalog product already carries the tax (`local_taxes` in [`POST /v1/products`](https://fiscalisto.com/en/docs/api/referencia/productos/create-product)) and the invoice doesn't send `local_taxes`, Fiscalisto adds it on its own, calculated on that product's line items: on an invoice with lodging and dinner, ISH goes on the lodging. If the invoice sends `local_taxes`, those are used as is. To the general public they're only transferred.

## Example: on behalf of third parties

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: comision-3391" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "MASO451221PM4", "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ", "tax_system": "612", "zip": "80290" },
    "payment_form": "03",
    "items": [{
      "description": "Consultoría",
      "product_key": "80101500",
      "unit_price": 1000,
      "third_party": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }
    }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "MASO451221PM4",
    legal_name: "MARIA OLIVIA MARTINEZ SAGAZ",
    tax_system: "612",
    zip: "80290",
  },
  payment_form: "03",
  items: [
    {
      description: "Consultoría",
      product_key: "80101500",
      unit_price: 1000,
      third_party: {
        tax_id: "ICV060329BY0",
        name: "INMOBILIARIA CVA",
        tax_system: "601",
        zip: "33826",
      },
    },
  ],
}, { idempotencyKey: "comision-3391" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "MASO451221PM4",
        "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ",
        "tax_system": "612",
        "zip": "80290",
    },
    "payment_form": "03",
    "items": [
        {
            "description": "Consultoría",
            "product_key": "80101500",
            "unit_price": 1000,
            "third_party": {
                "tax_id": "ICV060329BY0",
                "name": "INMOBILIARIA CVA",
                "tax_system": "601",
                "zip": "33826",
            },
        },
    ],
}, idempotency_key="comision-3391")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'MASO451221PM4',
        'legal_name' => 'MARIA OLIVIA MARTINEZ SAGAZ',
        'tax_system' => '612',
        'zip' => '80290',
    ],
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Consultoría',
            'product_key' => '80101500',
            'unit_price' => 1000,
            'third_party' => [
                'tax_id' => 'ICV060329BY0',
                'name' => 'INMOBILIARIA CVA',
                'tax_system' => '601',
                'zip' => '33826',
            ],
        ],
    ],
], ['idempotency_key' => 'comision-3391']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "MASO451221PM4",
			LegalName: "MARIA OLIVIA MARTINEZ SAGAZ",
			TaxSystem: "612",
			Zip:       "80290",
		}),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Consultoría"),
				ProductKey:  fiscalisto.String("80101500"),
				UnitPrice:   fiscalisto.Float64(1000),
				ThirdParty: &fiscalisto.InvoiceCreateItemThirdParty{
					TaxID:     "ICV060329BY0",
					Name:      "INMOBILIARIA CVA",
					TaxSystem: "601",
					Zip:       "33826",
				},
			},
		},
	}, fiscalisto.WithIdempotencyKey("comision-3391"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import com.fiscalisto.model.InvoiceCreateItemThirdParty;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("MASO451221PM4")
                .setLegalName("MARIA OLIVIA MARTINEZ SAGAZ")
                .setTaxSystem("612")
                .setZip("80290"))
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Consultoría")
                        .setProductKey("80101500")
                        .setUnitPrice(1000)
                        .setThirdParty(new InvoiceCreateItemThirdParty()
                                .setTaxId("ICV060329BY0")
                                .setName("INMOBILIARIA CVA")
                                .setTaxSystem("601")
                                .setZip("33826"))
        )), RequestOptions.idempotencyKey("comision-3391"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "MASO451221PM4",
        LegalName = "MARIA OLIVIA MARTINEZ SAGAZ",
        TaxSystem = "612",
        Zip = "80290",
    },
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Consultoría",
            ProductKey = "80101500",
            UnitPrice = 1000,
            ThirdParty = new()
            {
                TaxId = "ICV060329BY0",
                Name = "INMOBILIARIA CVA",
                TaxSystem = "601",
                Zip = "33826",
            },
        },
    },
}, new RequestOptions { IdempotencyKey = "comision-3391" });
```

If you sell through a platform on behalf of a foreign resident, the third party is the generic RFC `EXT990101NI1`: SAT wants its exact name («EXPEDICIÓN DE CFDI POR RESIDENTES EN MÉXICO QUE PRESTAN SERVICIOS DE INTERMEDIACIÓN ENTRE TERCEROS A OFERENTES DE BIENES Y SERVICIOS RESIDENTES EN EL EXTRANJERO», with its accents), tax system `616` and your company's zip. Fiscalisto checks them before stamping and says what to change.

## Example: transfer with Carta Porte

A transfer (`"type": "T"`) covers goods you move; it carries no customer (the receiver is the issuer itself), payment form or taxes. Dates go in local time (`YYYY-MM-DDTHH:MM`); in test mode the sender and the recipient can be the RFC it stamps as (`stamps_as`). A freight invoice carries the same `carta_porte` on an income invoice with its customer.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: traslado-0091" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "T",
    "items": [{ "description": "Computadoras portátiles", "product_key": "43211500", "unit_key": "H87", "quantity": 20, "unit_price": 0 }],
    "carta_porte": {
      "origin": { "tax_id": "EKU9003173C9", "name": "ESCUELA KEMPER URGATE", "date_time": "2026-11-12T09:00", "address": { "street": "Av. Constitución", "exterior": "100", "zip": "64000" } },
      "destinations": [{ "tax_id": "EKU9003173C9", "name": "ESCUELA KEMPER URGATE", "date_time": "2026-11-12T20:00", "distance_km": 500, "address": { "zip": "06600" } }],
      "goods": [{ "product_key": "43211500", "description": "Computadoras portátiles", "quantity": 20, "unit_key": "H87", "weight_kg": 60 }],
      "vehicle": { "config": "C2", "plate": "ABC1234", "year": 2022, "gross_weight": 7.5, "permit_type": "TPAF02", "permit_number": "123456", "insurer": "Aseguradora SA", "policy": "POL-123" },
      "drivers": [{ "tax_id": "MASO451221PM4", "name": "MARIA OLIVIA MARTINEZ SAGAZ", "license": "LFD123456" }]
    }
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  type: "T",
  items: [
    {
      description: "Computadoras portátiles",
      product_key: "43211500",
      unit_key: "H87",
      quantity: 20,
      unit_price: 0,
    },
  ],
  carta_porte: {
    origin: {
      tax_id: "EKU9003173C9",
      name: "ESCUELA KEMPER URGATE",
      date_time: "2026-11-12T09:00",
      address: {
        street: "Av. Constitución",
        exterior: "100",
        zip: "64000",
      },
    },
    destinations: [
      {
        tax_id: "EKU9003173C9",
        name: "ESCUELA KEMPER URGATE",
        date_time: "2026-11-12T20:00",
        distance_km: 500,
        address: { zip: "06600" },
      },
    ],
    goods: [
      {
        product_key: "43211500",
        description: "Computadoras portátiles",
        quantity: 20,
        unit_key: "H87",
        weight_kg: 60,
      },
    ],
    vehicle: {
      config: "C2",
      plate: "ABC1234",
      year: 2022,
      gross_weight: 7.5,
      permit_type: "TPAF02",
      permit_number: "123456",
      insurer: "Aseguradora SA",
      policy: "POL-123",
    },
    drivers: [
      {
        tax_id: "MASO451221PM4",
        name: "MARIA OLIVIA MARTINEZ SAGAZ",
        license: "LFD123456",
      },
    ],
  },
}, { idempotencyKey: "traslado-0091" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "type": "T",
    "items": [
        {
            "description": "Computadoras portátiles",
            "product_key": "43211500",
            "unit_key": "H87",
            "quantity": 20,
            "unit_price": 0,
        },
    ],
    "carta_porte": {
        "origin": {
            "tax_id": "EKU9003173C9",
            "name": "ESCUELA KEMPER URGATE",
            "date_time": "2026-11-12T09:00",
            "address": {
                "street": "Av. Constitución",
                "exterior": "100",
                "zip": "64000",
            },
        },
        "destinations": [
            {
                "tax_id": "EKU9003173C9",
                "name": "ESCUELA KEMPER URGATE",
                "date_time": "2026-11-12T20:00",
                "distance_km": 500,
                "address": {"zip": "06600"},
            },
        ],
        "goods": [
            {
                "product_key": "43211500",
                "description": "Computadoras portátiles",
                "quantity": 20,
                "unit_key": "H87",
                "weight_kg": 60,
            },
        ],
        "vehicle": {
            "config": "C2",
            "plate": "ABC1234",
            "year": 2022,
            "gross_weight": 7.5,
            "permit_type": "TPAF02",
            "permit_number": "123456",
            "insurer": "Aseguradora SA",
            "policy": "POL-123",
        },
        "drivers": [
            {
                "tax_id": "MASO451221PM4",
                "name": "MARIA OLIVIA MARTINEZ SAGAZ",
                "license": "LFD123456",
            },
        ],
    },
}, idempotency_key="traslado-0091")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'type' => 'T',
    'items' => [
        [
            'description' => 'Computadoras portátiles',
            'product_key' => '43211500',
            'unit_key' => 'H87',
            'quantity' => 20,
            'unit_price' => 0,
        ],
    ],
    'carta_porte' => [
        'origin' => [
            'tax_id' => 'EKU9003173C9',
            'name' => 'ESCUELA KEMPER URGATE',
            'date_time' => '2026-11-12T09:00',
            'address' => [
                'street' => 'Av. Constitución',
                'exterior' => '100',
                'zip' => '64000',
            ],
        ],
        'destinations' => [
            [
                'tax_id' => 'EKU9003173C9',
                'name' => 'ESCUELA KEMPER URGATE',
                'date_time' => '2026-11-12T20:00',
                'distance_km' => 500,
                'address' => ['zip' => '06600'],
            ],
        ],
        'goods' => [
            [
                'product_key' => '43211500',
                'description' => 'Computadoras portátiles',
                'quantity' => 20,
                'unit_key' => 'H87',
                'weight_kg' => 60,
            ],
        ],
        'vehicle' => [
            'config' => 'C2',
            'plate' => 'ABC1234',
            'year' => 2022,
            'gross_weight' => 7.5,
            'permit_type' => 'TPAF02',
            'permit_number' => '123456',
            'insurer' => 'Aseguradora SA',
            'policy' => 'POL-123',
        ],
        'drivers' => [
            [
                'tax_id' => 'MASO451221PM4',
                'name' => 'MARIA OLIVIA MARTINEZ SAGAZ',
                'license' => 'LFD123456',
            ],
        ],
    ],
], ['idempotency_key' => 'traslado-0091']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Type: fiscalisto.String("T"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Computadoras portátiles"),
				ProductKey:  fiscalisto.String("43211500"),
				UnitKey:     fiscalisto.String("H87"),
				Quantity:    fiscalisto.Float64(20),
				UnitPrice:   fiscalisto.Float64(0),
			},
		},
		CartaPorte: &fiscalisto.InvoiceCreateCartaPorte{
			Origin: fiscalisto.InvoiceCreateCartaPorteOrigin{
				TaxID:    "EKU9003173C9",
				Name:     fiscalisto.String("ESCUELA KEMPER URGATE"),
				DateTime: "2026-11-12T09:00",
				Address: fiscalisto.InvoiceCreateCartaPorteOriginAddress{
					Street:   fiscalisto.String("Av. Constitución"),
					Exterior: fiscalisto.String("100"),
					Zip:      "64000",
				},
			},
			Destinations: []fiscalisto.InvoiceCreateCartaPorteDestination{
				{
					TaxID:      "EKU9003173C9",
					Name:       fiscalisto.String("ESCUELA KEMPER URGATE"),
					DateTime:   "2026-11-12T20:00",
					DistanceKm: fiscalisto.Float64(500),
					Address: fiscalisto.InvoiceCreateCartaPorteDestinationAddress{
						Zip: "06600",
					},
				},
			},
			Goods: []fiscalisto.InvoiceCreateCartaPorteGood{
				{
					ProductKey:  "43211500",
					Description: "Computadoras portátiles",
					Quantity:    20,
					UnitKey:     "H87",
					WeightKg:    60,
				},
			},
			Vehicle: &fiscalisto.InvoiceCreateCartaPorteVehicle{
				Config:       "C2",
				Plate:        "ABC1234",
				Year:         2022,
				GrossWeight:  7.5,
				PermitType:   "TPAF02",
				PermitNumber: "123456",
				Insurer:      "Aseguradora SA",
				Policy:       "POL-123",
			},
			Drivers: []fiscalisto.InvoiceCreateCartaPorteDriver{
				{
					TaxID:   "MASO451221PM4",
					Name:    "MARIA OLIVIA MARTINEZ SAGAZ",
					License: "LFD123456",
				},
			},
		},
	}, fiscalisto.WithIdempotencyKey("traslado-0091"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCartaPorte;
import com.fiscalisto.model.InvoiceCreateCartaPorteDestination;
import com.fiscalisto.model.InvoiceCreateCartaPorteDestinationAddress;
import com.fiscalisto.model.InvoiceCreateCartaPorteDriver;
import com.fiscalisto.model.InvoiceCreateCartaPorteGood;
import com.fiscalisto.model.InvoiceCreateCartaPorteOrigin;
import com.fiscalisto.model.InvoiceCreateCartaPorteOriginAddress;
import com.fiscalisto.model.InvoiceCreateCartaPorteVehicle;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setType("T")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Computadoras portátiles")
                        .setProductKey("43211500")
                        .setUnitKey("H87")
                        .setQuantity(20)
                        .setUnitPrice(0)
        ))
        .setCartaPorte(new InvoiceCreateCartaPorte()
                .setOrigin(new InvoiceCreateCartaPorteOrigin()
                        .setTaxId("EKU9003173C9")
                        .setName("ESCUELA KEMPER URGATE")
                        .setDateTime("2026-11-12T09:00")
                        .setAddress(new InvoiceCreateCartaPorteOriginAddress()
                                .setStreet("Av. Constitución")
                                .setExterior("100")
                                .setZip("64000")))
                .setDestinations(List.of(
                        new InvoiceCreateCartaPorteDestination()
                                .setTaxId("EKU9003173C9")
                                .setName("ESCUELA KEMPER URGATE")
                                .setDateTime("2026-11-12T20:00")
                                .setDistanceKm(500)
                                .setAddress(new InvoiceCreateCartaPorteDestinationAddress()
                                        .setZip("06600"))
                ))
                .setGoods(List.of(
                        new InvoiceCreateCartaPorteGood()
                                .setProductKey("43211500")
                                .setDescription("Computadoras portátiles")
                                .setQuantity(20)
                                .setUnitKey("H87")
                                .setWeightKg(60)
                ))
                .setVehicle(new InvoiceCreateCartaPorteVehicle()
                        .setConfig("C2")
                        .setPlate("ABC1234")
                        .setYear(2022)
                        .setGrossWeight(7.5)
                        .setPermitType("TPAF02")
                        .setPermitNumber("123456")
                        .setInsurer("Aseguradora SA")
                        .setPolicy("POL-123"))
                .setDrivers(List.of(
                        new InvoiceCreateCartaPorteDriver()
                                .setTaxId("MASO451221PM4")
                                .setName("MARIA OLIVIA MARTINEZ SAGAZ")
                                .setLicense("LFD123456")
                ))), RequestOptions.idempotencyKey("traslado-0091"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Type = "T",
    Items = new()
    {
        new()
        {
            Description = "Computadoras portátiles",
            ProductKey = "43211500",
            UnitKey = "H87",
            Quantity = 20,
            UnitPrice = 0,
        },
    },
    CartaPorte = new()
    {
        Origin = new()
        {
            TaxId = "EKU9003173C9",
            Name = "ESCUELA KEMPER URGATE",
            DateTime = "2026-11-12T09:00",
            Address = new()
            {
                Street = "Av. Constitución",
                Exterior = "100",
                Zip = "64000",
            },
        },
        Destinations = new()
        {
            new()
            {
                TaxId = "EKU9003173C9",
                Name = "ESCUELA KEMPER URGATE",
                DateTime = "2026-11-12T20:00",
                DistanceKm = 500,
                Address = new() { Zip = "06600" },
            },
        },
        Goods = new()
        {
            new()
            {
                ProductKey = "43211500",
                Description = "Computadoras portátiles",
                Quantity = 20,
                UnitKey = "H87",
                WeightKg = 60,
            },
        },
        Vehicle = new()
        {
            Config = "C2",
            Plate = "ABC1234",
            Year = 2022,
            GrossWeight = 7.5m,
            PermitType = "TPAF02",
            PermitNumber = "123456",
            Insurer = "Aseguradora SA",
            Policy = "POL-123",
        },
        Drivers = new()
        {
            new()
            {
                TaxId = "MASO451221PM4",
                Name = "MARIA OLIVIA MARTINEZ SAGAZ",
                License = "LFD123456",
            },
        },
    },
}, new RequestOptions { IdempotencyKey = "traslado-0091" });
```

## Example: local transfer without Carta Porte

A transfer that uses no stretch of federal road can go without `carta_porte` in the cases of rules 2.7.7.2.1 to 2.7.7.2.3 of the RMF 2026: send the rule in `carta_porte_exemption`. Sending it states that the transfer uses no federal stretch (a vehicle no bigger than a C2 truck using at most 30 km of federal road counts as local, rule 2.7.7.2.8); if it ends up using one, stamp it with `carta_porte`.

| `carta_porte_exemption` | Case | What else it needs |
| --- | --- | --- |
| `2.7.7.2.1` | Your own goods on a local transfer. | Nothing; not for medicines (keys 51…) nor for goods going to customs clearance (`export` other than 01). |
| `2.7.7.2.2` | Parcel or courier service, first or last mile. | One item per package, with its tracking number in `sku`. |
| `2.7.7.2.3` | Local tow or salvage truck. | The service's income invoice in `related` (`"relationship": "05"`). |

Items go with `unit_price` 0 and `taxability` `01` (a transfer's take them by default). Hydrocarbons and petroleum products always go with `carta_porte` (rule 2.7.7.2.4). A transfer without Carta Porte and without one of these rules is refused with `invoice_invalid`.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: traslado-local-0092" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "T",
    "carta_porte_exemption": "2.7.7.2.1",
    "items": [{ "description": "Sillas de oficina", "product_key": "56112100", "unit_key": "H87", "quantity": 12 }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  type: "T",
  carta_porte_exemption: "2.7.7.2.1",
  items: [
    {
      description: "Sillas de oficina",
      product_key: "56112100",
      unit_key: "H87",
      quantity: 12,
    },
  ],
}, { idempotencyKey: "traslado-local-0092" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "type": "T",
    "carta_porte_exemption": "2.7.7.2.1",
    "items": [
        {
            "description": "Sillas de oficina",
            "product_key": "56112100",
            "unit_key": "H87",
            "quantity": 12,
        },
    ],
}, idempotency_key="traslado-local-0092")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'type' => 'T',
    'carta_porte_exemption' => '2.7.7.2.1',
    'items' => [
        [
            'description' => 'Sillas de oficina',
            'product_key' => '56112100',
            'unit_key' => 'H87',
            'quantity' => 12,
        ],
    ],
], ['idempotency_key' => 'traslado-local-0092']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Type:                fiscalisto.String("T"),
		CartaPorteExemption: fiscalisto.String("2.7.7.2.1"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Sillas de oficina"),
				ProductKey:  fiscalisto.String("56112100"),
				UnitKey:     fiscalisto.String("H87"),
				Quantity:    fiscalisto.Float64(12),
			},
		},
	}, fiscalisto.WithIdempotencyKey("traslado-local-0092"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setType("T")
        .setCartaPorteExemption("2.7.7.2.1")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Sillas de oficina")
                        .setProductKey("56112100")
                        .setUnitKey("H87")
                        .setQuantity(12)
        )), RequestOptions.idempotencyKey("traslado-local-0092"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Type = "T",
    CartaPorteExemption = "2.7.7.2.1",
    Items = new()
    {
        new()
        {
            Description = "Sillas de oficina",
            ProductKey = "56112100",
            UnitKey = "H87",
            Quantity = 12,
        },
    },
}, new RequestOptions { IdempotencyKey = "traslado-local-0092" });
```

## Example: export with Comercio Exterior

A definitive export carries `"export": "02"`, the foreign customer with `XEXX010101000` and their tax registration in `customer.foreign`, and in `comercio_exterior` the Incoterm, the DOF dollar exchange rate (`usd_rate`; in dollars it's the same `exchange_rate`), the addresses and each good's tariff code in the order of `items`. The issuer's address comes from its tax data if you don't send it.

With `"export": "04"` (definitive with a code other than A1, or without a sale) the complement is optional and, if you send it, `incoterm` may be left out (CCE120); with `"03"` (temporary) it doesn't go. On a transfer (`"type": "T"`, with `carta_porte`) `comercio_exterior.motive` is the reason for the transfer (c_MotivoTraslado): `01` relates in `related` the invoice where you sold the goods (CCE116), `05` carries their owners in `owners` (that motive only: CCE103, CCE117), and `02`, `03`, `04` and `99` need nothing more.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: exportacion-5521" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "XEXX010101000", "legal_name": "ACME INC", "tax_system": "616", "zip": "42501", "foreign": { "country": "USA", "tax_id": "123456789" } },
    "use": "S01",
    "payment_form": "03",
    "export": "02",
    "items": [{ "description": "Computadora portátil", "product_key": "43211503", "unit_key": "H87", "quantity": 3, "unit_price": 15000, "iva": "0" }],
    "comercio_exterior": {
      "incoterm": "FCA",
      "usd_rate": 18.5,
      "issuer_address": { "street": "Av. Juárez", "exterior": "100" },
      "receiver_address": { "street": "Main St", "exterior": "500", "locality": "Austin", "state": "TX", "country": "USA", "zip": "73301" },
      "goods": [{ "tariff": "8471300101", "unit": "06", "quantity": 3 }]
    }
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "XEXX010101000",
    legal_name: "ACME INC",
    tax_system: "616",
    zip: "42501",
    foreign: { country: "USA", tax_id: "123456789" },
  },
  use: "S01",
  payment_form: "03",
  export: "02",
  items: [
    {
      description: "Computadora portátil",
      product_key: "43211503",
      unit_key: "H87",
      quantity: 3,
      unit_price: 15000,
      iva: "0",
    },
  ],
  comercio_exterior: {
    incoterm: "FCA",
    usd_rate: 18.5,
    issuer_address: { street: "Av. Juárez", exterior: "100" },
    receiver_address: {
      street: "Main St",
      exterior: "500",
      locality: "Austin",
      state: "TX",
      country: "USA",
      zip: "73301",
    },
    goods: [
      {
        tariff: "8471300101",
        unit: "06",
        quantity: 3,
      },
    ],
  },
}, { idempotencyKey: "exportacion-5521" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "XEXX010101000",
        "legal_name": "ACME INC",
        "tax_system": "616",
        "zip": "42501",
        "foreign": {
            "country": "USA",
            "tax_id": "123456789",
        },
    },
    "use": "S01",
    "payment_form": "03",
    "export": "02",
    "items": [
        {
            "description": "Computadora portátil",
            "product_key": "43211503",
            "unit_key": "H87",
            "quantity": 3,
            "unit_price": 15000,
            "iva": "0",
        },
    ],
    "comercio_exterior": {
        "incoterm": "FCA",
        "usd_rate": 18.5,
        "issuer_address": {
            "street": "Av. Juárez",
            "exterior": "100",
        },
        "receiver_address": {
            "street": "Main St",
            "exterior": "500",
            "locality": "Austin",
            "state": "TX",
            "country": "USA",
            "zip": "73301",
        },
        "goods": [
            {
                "tariff": "8471300101",
                "unit": "06",
                "quantity": 3,
            },
        ],
    },
}, idempotency_key="exportacion-5521")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'XEXX010101000',
        'legal_name' => 'ACME INC',
        'tax_system' => '616',
        'zip' => '42501',
        'foreign' => [
            'country' => 'USA',
            'tax_id' => '123456789',
        ],
    ],
    'use' => 'S01',
    'payment_form' => '03',
    'export' => '02',
    'items' => [
        [
            'description' => 'Computadora portátil',
            'product_key' => '43211503',
            'unit_key' => 'H87',
            'quantity' => 3,
            'unit_price' => 15000,
            'iva' => '0',
        ],
    ],
    'comercio_exterior' => [
        'incoterm' => 'FCA',
        'usd_rate' => 18.5,
        'issuer_address' => [
            'street' => 'Av. Juárez',
            'exterior' => '100',
        ],
        'receiver_address' => [
            'street' => 'Main St',
            'exterior' => '500',
            'locality' => 'Austin',
            'state' => 'TX',
            'country' => 'USA',
            'zip' => '73301',
        ],
        'goods' => [
            [
                'tariff' => '8471300101',
                'unit' => '06',
                'quantity' => 3,
            ],
        ],
    ],
], ['idempotency_key' => 'exportacion-5521']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "XEXX010101000",
			LegalName: "ACME INC",
			TaxSystem: "616",
			Zip:       "42501",
			Foreign: &fiscalisto.InvoiceCreateCustomerForeign{
				Country: "USA",
				TaxID:   "123456789",
			},
		}),
		Use:         fiscalisto.String("S01"),
		PaymentForm: fiscalisto.String("03"),
		Export:      fiscalisto.String("02"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Computadora portátil"),
				ProductKey:  fiscalisto.String("43211503"),
				UnitKey:     fiscalisto.String("H87"),
				Quantity:    fiscalisto.Float64(3),
				UnitPrice:   fiscalisto.Float64(15000),
				IVA:         fiscalisto.String("0"),
			},
		},
		ComercioExterior: &fiscalisto.InvoiceCreateComercioExterior{
			Incoterm: fiscalisto.String("FCA"),
			UsdRate:  18.5,
			IssuerAddress: &fiscalisto.InvoiceCreateComercioExteriorIssuerAddress{
				Street:   "Av. Juárez",
				Exterior: fiscalisto.String("100"),
			},
			ReceiverAddress: &fiscalisto.InvoiceCreateComercioExteriorReceiverAddress{
				Street:   "Main St",
				Exterior: fiscalisto.String("500"),
				Locality: fiscalisto.String("Austin"),
				State:    fiscalisto.String("TX"),
				Country:  "USA",
				Zip:      "73301",
			},
			Goods: []fiscalisto.InvoiceCreateComercioExteriorGood{
				{
					Tariff:   fiscalisto.String("8471300101"),
					Unit:     fiscalisto.String("06"),
					Quantity: fiscalisto.Float64(3),
				},
			},
		},
	}, fiscalisto.WithIdempotencyKey("exportacion-5521"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateComercioExterior;
import com.fiscalisto.model.InvoiceCreateComercioExteriorGood;
import com.fiscalisto.model.InvoiceCreateComercioExteriorIssuerAddress;
import com.fiscalisto.model.InvoiceCreateComercioExteriorReceiverAddress;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateCustomerForeign;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("XEXX010101000")
                .setLegalName("ACME INC")
                .setTaxSystem("616")
                .setZip("42501")
                .setForeign(new InvoiceCreateCustomerForeign()
                        .setCountry("USA")
                        .setTaxId("123456789")))
        .setUse("S01")
        .setPaymentForm("03")
        .setExport("02")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Computadora portátil")
                        .setProductKey("43211503")
                        .setUnitKey("H87")
                        .setQuantity(3)
                        .setUnitPrice(15000)
                        .setIva("0")
        ))
        .setComercioExterior(new InvoiceCreateComercioExterior()
                .setIncoterm("FCA")
                .setUsdRate(18.5)
                .setIssuerAddress(new InvoiceCreateComercioExteriorIssuerAddress()
                        .setStreet("Av. Juárez")
                        .setExterior("100"))
                .setReceiverAddress(new InvoiceCreateComercioExteriorReceiverAddress()
                        .setStreet("Main St")
                        .setExterior("500")
                        .setLocality("Austin")
                        .setState("TX")
                        .setCountry("USA")
                        .setZip("73301"))
                .setGoods(List.of(
                        new InvoiceCreateComercioExteriorGood()
                                .setTariff("8471300101")
                                .setUnit("06")
                                .setQuantity(3)
                ))), RequestOptions.idempotencyKey("exportacion-5521"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "XEXX010101000",
        LegalName = "ACME INC",
        TaxSystem = "616",
        Zip = "42501",
        Foreign = new() { Country = "USA", TaxId = "123456789" },
    },
    Use = "S01",
    PaymentForm = "03",
    Export = "02",
    Items = new()
    {
        new()
        {
            Description = "Computadora portátil",
            ProductKey = "43211503",
            UnitKey = "H87",
            Quantity = 3,
            UnitPrice = 15000,
            Iva = "0",
        },
    },
    ComercioExterior = new()
    {
        Incoterm = "FCA",
        UsdRate = 18.5m,
        IssuerAddress = new() { Street = "Av. Juárez", Exterior = "100" },
        ReceiverAddress = new()
        {
            Street = "Main St",
            Exterior = "500",
            Locality = "Austin",
            State = "TX",
            Country = "USA",
            Zip = "73301",
        },
        Goods = new()
        {
            new()
            {
                Tariff = "8471300101",
                Unit = "06",
                Quantity = 3,
            },
        },
    },
}, new RequestOptions { IdempotencyKey = "exportacion-5521" });
```

## Example: INE

For a political party or a candidate: the process type (`Ordinario`, `Precampaña` or `Campaña`), in an ordinary process the committee and the accounting, and in a campaign each state with its scope.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: ine-2026-0007" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "03",
    "items": [{ "description": "Renta de templete", "product_key": "80101500", "unit_price": 1000 }],
    "ine": { "process": "Ordinario", "committee": "Ejecutivo Nacional", "accounting_id": "123456" }
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  payment_form: "03",
  items: [
    {
      description: "Renta de templete",
      product_key: "80101500",
      unit_price: 1000,
    },
  ],
  ine: {
    process: "Ordinario",
    committee: "Ejecutivo Nacional",
    accounting_id: "123456",
  },
}, { idempotencyKey: "ine-2026-0007" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "payment_form": "03",
    "items": [
        {
            "description": "Renta de templete",
            "product_key": "80101500",
            "unit_price": 1000,
        },
    ],
    "ine": {
        "process": "Ordinario",
        "committee": "Ejecutivo Nacional",
        "accounting_id": "123456",
    },
}, idempotency_key="ine-2026-0007")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Renta de templete',
            'product_key' => '80101500',
            'unit_price' => 1000,
        ],
    ],
    'ine' => [
        'process' => 'Ordinario',
        'committee' => 'Ejecutivo Nacional',
        'accounting_id' => '123456',
    ],
], ['idempotency_key' => 'ine-2026-0007']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Renta de templete"),
				ProductKey:  fiscalisto.String("80101500"),
				UnitPrice:   fiscalisto.Float64(1000),
			},
		},
		INE: &fiscalisto.InvoiceCreateINE{
			Process:      "Ordinario",
			Committee:    fiscalisto.String("Ejecutivo Nacional"),
			AccountingID: fiscalisto.String("123456"),
		},
	}, fiscalisto.WithIdempotencyKey("ine-2026-0007"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateIne;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Renta de templete")
                        .setProductKey("80101500")
                        .setUnitPrice(1000)
        ))
        .setIne(new InvoiceCreateIne()
                .setProcess("Ordinario")
                .setCommittee("Ejecutivo Nacional")
                .setAccountingId("123456")), RequestOptions.idempotencyKey("ine-2026-0007"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Renta de templete",
            ProductKey = "80101500",
            UnitPrice = 1000,
        },
    },
    Ine = new()
    {
        Process = "Ordinario",
        Committee = "Ejecutivo Nacional",
        AccountingId = "123456",
    },
}, new RequestOptions { IdempotencyKey = "ine-2026-0007" });
```

## Example: tuition (IEDU)

A private school with official validity recognition: on each tuition, the student, their CURP, the level, the RVOE and, if someone else pays, their RFC. The use is `D10` and tuition is exempt from IVA.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: colegiatura-octubre-114" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "MASO451221PM4", "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ", "tax_system": "612", "zip": "80290" },
    "use": "D10",
    "payment_form": "03",
    "items": [{
      "description": "Colegiatura octubre",
      "product_key": "86121500",
      "unit_price": 3500,
      "iva": "exento",
      "iedu": { "student_name": "Juan Pérez Pérez", "curp": "PEPJ800101HDFRRN09", "level": "Primaria", "rvoe": "1234567", "payer_tax_id": "MASO451221PM4" }
    }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "MASO451221PM4",
    legal_name: "MARIA OLIVIA MARTINEZ SAGAZ",
    tax_system: "612",
    zip: "80290",
  },
  use: "D10",
  payment_form: "03",
  items: [
    {
      description: "Colegiatura octubre",
      product_key: "86121500",
      unit_price: 3500,
      iva: "exento",
      iedu: {
        student_name: "Juan Pérez Pérez",
        curp: "PEPJ800101HDFRRN09",
        level: "Primaria",
        rvoe: "1234567",
        payer_tax_id: "MASO451221PM4",
      },
    },
  ],
}, { idempotencyKey: "colegiatura-octubre-114" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "MASO451221PM4",
        "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ",
        "tax_system": "612",
        "zip": "80290",
    },
    "use": "D10",
    "payment_form": "03",
    "items": [
        {
            "description": "Colegiatura octubre",
            "product_key": "86121500",
            "unit_price": 3500,
            "iva": "exento",
            "iedu": {
                "student_name": "Juan Pérez Pérez",
                "curp": "PEPJ800101HDFRRN09",
                "level": "Primaria",
                "rvoe": "1234567",
                "payer_tax_id": "MASO451221PM4",
            },
        },
    ],
}, idempotency_key="colegiatura-octubre-114")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'MASO451221PM4',
        'legal_name' => 'MARIA OLIVIA MARTINEZ SAGAZ',
        'tax_system' => '612',
        'zip' => '80290',
    ],
    'use' => 'D10',
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Colegiatura octubre',
            'product_key' => '86121500',
            'unit_price' => 3500,
            'iva' => 'exento',
            'iedu' => [
                'student_name' => 'Juan Pérez Pérez',
                'curp' => 'PEPJ800101HDFRRN09',
                'level' => 'Primaria',
                'rvoe' => '1234567',
                'payer_tax_id' => 'MASO451221PM4',
            ],
        ],
    ],
], ['idempotency_key' => 'colegiatura-octubre-114']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "MASO451221PM4",
			LegalName: "MARIA OLIVIA MARTINEZ SAGAZ",
			TaxSystem: "612",
			Zip:       "80290",
		}),
		Use:         fiscalisto.String("D10"),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Colegiatura octubre"),
				ProductKey:  fiscalisto.String("86121500"),
				UnitPrice:   fiscalisto.Float64(3500),
				IVA:         fiscalisto.String("exento"),
				Iedu: &fiscalisto.InvoiceCreateItemIedu{
					StudentName: "Juan Pérez Pérez",
					CURP:        "PEPJ800101HDFRRN09",
					Level:       "Primaria",
					Rvoe:        "1234567",
					PayerTaxID:  fiscalisto.String("MASO451221PM4"),
				},
			},
		},
	}, fiscalisto.WithIdempotencyKey("colegiatura-octubre-114"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import com.fiscalisto.model.InvoiceCreateItemIedu;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("MASO451221PM4")
                .setLegalName("MARIA OLIVIA MARTINEZ SAGAZ")
                .setTaxSystem("612")
                .setZip("80290"))
        .setUse("D10")
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Colegiatura octubre")
                        .setProductKey("86121500")
                        .setUnitPrice(3500)
                        .setIva("exento")
                        .setIedu(new InvoiceCreateItemIedu()
                                .setStudentName("Juan Pérez Pérez")
                                .setCurp("PEPJ800101HDFRRN09")
                                .setLevel("Primaria")
                                .setRvoe("1234567")
                                .setPayerTaxId("MASO451221PM4"))
        )), RequestOptions.idempotencyKey("colegiatura-octubre-114"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "MASO451221PM4",
        LegalName = "MARIA OLIVIA MARTINEZ SAGAZ",
        TaxSystem = "612",
        Zip = "80290",
    },
    Use = "D10",
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Colegiatura octubre",
            ProductKey = "86121500",
            UnitPrice = 3500,
            Iva = "exento",
            Iedu = new()
            {
                StudentName = "Juan Pérez Pérez",
                Curp = "PEPJ800101HDFRRN09",
                Level = "Primaria",
                Rvoe = "1234567",
                PayerTaxId = "MASO451221PM4",
            },
        },
    },
}, new RequestOptions { IdempotencyKey = "colegiatura-octubre-114" });
```

## Example: new car with a used one as trade-in

The used vehicle complement goes on the line item of the car being sold, with the data of the used one received as trade-in: its purchase and sale price, the vehicle key, make, type, model, VIN and the guide value.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: auto-nuevo-3310" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "MASO451221PM4", "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ", "tax_system": "612", "zip": "80290" },
    "use": "G01",
    "payment_form": "03",
    "items": [{
      "description": "Automóvil nuevo modelo 2027",
      "product_key": "25101503",
      "unit_key": "H87",
      "unit_price": 400000,
      "used_vehicle": { "purchase_amount": 250000, "sale_amount": 120000, "vehicle_key": "0041201", "make": "Nissan", "type": "Versa Advance", "model": "2019", "niv": "3N1CN7AD5KL812345", "guide_value": 125000 }
    }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "MASO451221PM4",
    legal_name: "MARIA OLIVIA MARTINEZ SAGAZ",
    tax_system: "612",
    zip: "80290",
  },
  use: "G01",
  payment_form: "03",
  items: [
    {
      description: "Automóvil nuevo modelo 2027",
      product_key: "25101503",
      unit_key: "H87",
      unit_price: 400000,
      used_vehicle: {
        purchase_amount: 250000,
        sale_amount: 120000,
        vehicle_key: "0041201",
        make: "Nissan",
        type: "Versa Advance",
        model: "2019",
        niv: "3N1CN7AD5KL812345",
        guide_value: 125000,
      },
    },
  ],
}, { idempotencyKey: "auto-nuevo-3310" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "MASO451221PM4",
        "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ",
        "tax_system": "612",
        "zip": "80290",
    },
    "use": "G01",
    "payment_form": "03",
    "items": [
        {
            "description": "Automóvil nuevo modelo 2027",
            "product_key": "25101503",
            "unit_key": "H87",
            "unit_price": 400000,
            "used_vehicle": {
                "purchase_amount": 250000,
                "sale_amount": 120000,
                "vehicle_key": "0041201",
                "make": "Nissan",
                "type": "Versa Advance",
                "model": "2019",
                "niv": "3N1CN7AD5KL812345",
                "guide_value": 125000,
            },
        },
    ],
}, idempotency_key="auto-nuevo-3310")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'MASO451221PM4',
        'legal_name' => 'MARIA OLIVIA MARTINEZ SAGAZ',
        'tax_system' => '612',
        'zip' => '80290',
    ],
    'use' => 'G01',
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Automóvil nuevo modelo 2027',
            'product_key' => '25101503',
            'unit_key' => 'H87',
            'unit_price' => 400000,
            'used_vehicle' => [
                'purchase_amount' => 250000,
                'sale_amount' => 120000,
                'vehicle_key' => '0041201',
                'make' => 'Nissan',
                'type' => 'Versa Advance',
                'model' => '2019',
                'niv' => '3N1CN7AD5KL812345',
                'guide_value' => 125000,
            ],
        ],
    ],
], ['idempotency_key' => 'auto-nuevo-3310']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "MASO451221PM4",
			LegalName: "MARIA OLIVIA MARTINEZ SAGAZ",
			TaxSystem: "612",
			Zip:       "80290",
		}),
		Use:         fiscalisto.String("G01"),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Automóvil nuevo modelo 2027"),
				ProductKey:  fiscalisto.String("25101503"),
				UnitKey:     fiscalisto.String("H87"),
				UnitPrice:   fiscalisto.Float64(400000),
				UsedVehicle: &fiscalisto.InvoiceCreateItemUsedVehicle{
					PurchaseAmount: 250000,
					SaleAmount:     120000,
					VehicleKey:     "0041201",
					Make:           "Nissan",
					Type:           "Versa Advance",
					Model:          "2019",
					Niv:            fiscalisto.String("3N1CN7AD5KL812345"),
					GuideValue:     125000,
				},
			},
		},
	}, fiscalisto.WithIdempotencyKey("auto-nuevo-3310"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import com.fiscalisto.model.InvoiceCreateItemUsedVehicle;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("MASO451221PM4")
                .setLegalName("MARIA OLIVIA MARTINEZ SAGAZ")
                .setTaxSystem("612")
                .setZip("80290"))
        .setUse("G01")
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Automóvil nuevo modelo 2027")
                        .setProductKey("25101503")
                        .setUnitKey("H87")
                        .setUnitPrice(400000)
                        .setUsedVehicle(new InvoiceCreateItemUsedVehicle()
                                .setPurchaseAmount(250000)
                                .setSaleAmount(120000)
                                .setVehicleKey("0041201")
                                .setMake("Nissan")
                                .setType("Versa Advance")
                                .setModel("2019")
                                .setNiv("3N1CN7AD5KL812345")
                                .setGuideValue(125000))
        )), RequestOptions.idempotencyKey("auto-nuevo-3310"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "MASO451221PM4",
        LegalName = "MARIA OLIVIA MARTINEZ SAGAZ",
        TaxSystem = "612",
        Zip = "80290",
    },
    Use = "G01",
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Automóvil nuevo modelo 2027",
            ProductKey = "25101503",
            UnitKey = "H87",
            UnitPrice = 400000,
            UsedVehicle = new()
            {
                PurchaseAmount = 250000,
                SaleAmount = 120000,
                VehicleKey = "0041201",
                Make = "Nissan",
                Type = "Versa Advance",
                Model = "2019",
                Niv = "3N1CN7AD5KL812345",
                GuideValue = 125000,
            },
        },
    },
}, new RequestOptions { IdempotencyKey = "auto-nuevo-3310" });
```

## Example: tax legends

Each legend carries its text and, if a provision requires it, the law and the article.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: leyendas-2026-0042" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "03",
    "items": [{ "description": "Consultoría", "product_key": "80101500", "unit_price": 1000 }],
    "leyendas": [{ "text": "Leyenda prevista en una disposición fiscal", "disposition": "ISR", "norm": "Artículo 196" }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  payment_form: "03",
  items: [
    {
      description: "Consultoría",
      product_key: "80101500",
      unit_price: 1000,
    },
  ],
  leyendas: [
    {
      text: "Leyenda prevista en una disposición fiscal",
      disposition: "ISR",
      norm: "Artículo 196",
    },
  ],
}, { idempotencyKey: "leyendas-2026-0042" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "payment_form": "03",
    "items": [
        {
            "description": "Consultoría",
            "product_key": "80101500",
            "unit_price": 1000,
        },
    ],
    "leyendas": [
        {
            "text": "Leyenda prevista en una disposición fiscal",
            "disposition": "ISR",
            "norm": "Artículo 196",
        },
    ],
}, idempotency_key="leyendas-2026-0042")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Consultoría',
            'product_key' => '80101500',
            'unit_price' => 1000,
        ],
    ],
    'leyendas' => [
        [
            'text' => 'Leyenda prevista en una disposición fiscal',
            'disposition' => 'ISR',
            'norm' => 'Artículo 196',
        ],
    ],
], ['idempotency_key' => 'leyendas-2026-0042']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Consultoría"),
				ProductKey:  fiscalisto.String("80101500"),
				UnitPrice:   fiscalisto.Float64(1000),
			},
		},
		Leyendas: []fiscalisto.InvoiceCreateLeyenda{
			{
				Text:        "Leyenda prevista en una disposición fiscal",
				Disposition: fiscalisto.String("ISR"),
				Norm:        fiscalisto.String("Artículo 196"),
			},
		},
	}, fiscalisto.WithIdempotencyKey("leyendas-2026-0042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import com.fiscalisto.model.InvoiceCreateLeyenda;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Consultoría")
                        .setProductKey("80101500")
                        .setUnitPrice(1000)
        ))
        .setLeyendas(List.of(
                new InvoiceCreateLeyenda()
                        .setText("Leyenda prevista en una disposición fiscal")
                        .setDisposition("ISR")
                        .setNorm("Artículo 196")
        )), RequestOptions.idempotencyKey("leyendas-2026-0042"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Consultoría",
            ProductKey = "80101500",
            UnitPrice = 1000,
        },
    },
    Leyendas = new()
    {
        new()
        {
            Text = "Leyenda prevista en una disposición fiscal",
            Disposition = "ISR",
            Norm = "Artículo 196",
        },
    },
}, new RequestOptions { IdempotencyKey = "leyendas-2026-0042" });
```

## Example: rent with property tax account

On a lease, each line item carries the property's tax account number; to a company customer, with the IVA (2/3) and ISR (10%) withholdings.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: renta-octubre-0021" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "03",
    "items": [{ "description": "Renta octubre", "product_key": "80131500", "unit_price": 20000, "predial": ["0123456789"], "iva_retention": 0.106667, "isr_retention": 0.1 }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  payment_form: "03",
  items: [
    {
      description: "Renta octubre",
      product_key: "80131500",
      unit_price: 20000,
      predial: ["0123456789"],
      iva_retention: 0.106667,
      isr_retention: 0.1,
    },
  ],
}, { idempotencyKey: "renta-octubre-0021" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "payment_form": "03",
    "items": [
        {
            "description": "Renta octubre",
            "product_key": "80131500",
            "unit_price": 20000,
            "predial": ["0123456789"],
            "iva_retention": 0.106667,
            "isr_retention": 0.1,
        },
    ],
}, idempotency_key="renta-octubre-0021")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Renta octubre',
            'product_key' => '80131500',
            'unit_price' => 20000,
            'predial' => ['0123456789'],
            'iva_retention' => 0.106667,
            'isr_retention' => 0.1,
        ],
    ],
], ['idempotency_key' => 'renta-octubre-0021']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description:  fiscalisto.String("Renta octubre"),
				ProductKey:   fiscalisto.String("80131500"),
				UnitPrice:    fiscalisto.Float64(20000),
				Predial:      []string{"0123456789"},
				IVARetention: fiscalisto.Float64(0.106667),
				ISRRetention: fiscalisto.Float64(0.1),
			},
		},
	}, fiscalisto.WithIdempotencyKey("renta-octubre-0021"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Renta octubre")
                        .setProductKey("80131500")
                        .setUnitPrice(20000)
                        .setPredial(List.of("0123456789"))
                        .setIvaRetention(0.106667)
                        .setIsrRetention(0.1)
        )), RequestOptions.idempotencyKey("renta-octubre-0021"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Renta octubre",
            ProductKey = "80131500",
            UnitPrice = 20000,
            Predial = new() { "0123456789" },
            IvaRetention = 0.106667m,
            IsrRetention = 0.1m,
        },
    },
}, new RequestOptions { IdempotencyKey = "renta-octubre-0021" });
```

## Example: imported goods with customs entries

On the first-hand sale of imported goods, each line item carries its customs entries in SAT's format: year, customs office, broker license and number, separated by two spaces.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: importada-7781" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "03",
    "items": [{ "description": "Laptop importada", "product_key": "43211503", "unit_key": "H87", "quantity": 2, "unit_price": 12000, "pedimentos": ["26  47  3807  6003832"] }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  payment_form: "03",
  items: [
    {
      description: "Laptop importada",
      product_key: "43211503",
      unit_key: "H87",
      quantity: 2,
      unit_price: 12000,
      pedimentos: ["26  47  3807  6003832"],
    },
  ],
}, { idempotencyKey: "importada-7781" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "payment_form": "03",
    "items": [
        {
            "description": "Laptop importada",
            "product_key": "43211503",
            "unit_key": "H87",
            "quantity": 2,
            "unit_price": 12000,
            "pedimentos": ["26  47  3807  6003832"],
        },
    ],
}, idempotency_key="importada-7781")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'payment_form' => '03',
    'items' => [
        [
            'description' => 'Laptop importada',
            'product_key' => '43211503',
            'unit_key' => 'H87',
            'quantity' => 2,
            'unit_price' => 12000,
            'pedimentos' => ['26  47  3807  6003832'],
        ],
    ],
], ['idempotency_key' => 'importada-7781']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		PaymentForm: fiscalisto.String("03"),
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Laptop importada"),
				ProductKey:  fiscalisto.String("43211503"),
				UnitKey:     fiscalisto.String("H87"),
				Quantity:    fiscalisto.Float64(2),
				UnitPrice:   fiscalisto.Float64(12000),
				Pedimentos:  []string{"26  47  3807  6003832"},
			},
		},
	}, fiscalisto.WithIdempotencyKey("importada-7781"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setPaymentForm("03")
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Laptop importada")
                        .setProductKey("43211503")
                        .setUnitKey("H87")
                        .setQuantity(2)
                        .setUnitPrice(12000)
                        .setPedimentos(List.of("26  47  3807  6003832"))
        )), RequestOptions.idempotencyKey("importada-7781"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    PaymentForm = "03",
    Items = new()
    {
        new()
        {
            Description = "Laptop importada",
            ProductKey = "43211503",
            UnitKey = "H87",
            Quantity = 2,
            UnitPrice = 12000,
            Pedimentos = new() { "26  47  3807  6003832" },
        },
    },
}, new RequestOptions { IdempotencyKey = "importada-7781" });
```

## Example: donation receipt

Issued by an authorized donee: the issuer with `tax_system: "603"` and its authorization in `donation_authorization` ([Issuers](https://fiscalisto.com/en/docs/api/emisores#authorized-donees)). A cash donation carries a single `84101600` line item in unit `M4`, without taxes (`taxability: "01"`), PUE and the form in which it was received; an in-kind one, `"in_kind": true`, payment form `12` and one line item per kind of good. The use is `G03` or `S01` if the donor is a company and `D04` or `S01` if an individual. SAT's legend goes on its own. Donations from the general public go on a global invoice (`XAXX010101000`, use `S01`), in cash or in kind; an in-kind global keeps each good's product key, quantity and description, as case D of SAT's «CFDI Donatarias» material shows.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: donativo-2026-0042" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "use": "G03",
    "payment_form": "03",
    "donation": {},
    "items": [{ "description": "Donativo en efectivo", "product_key": "84101600", "unit_key": "M4", "unit_name": "Valor monetario", "taxability": "01", "unit_price": 5000 }]
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.invoices.create({
  customer: {
    tax_id: "ICV060329BY0",
    legal_name: "INMOBILIARIA CVA",
    tax_system: "601",
    zip: "33826",
  },
  use: "G03",
  payment_form: "03",
  donation: {},
  items: [
    {
      description: "Donativo en efectivo",
      product_key: "84101600",
      unit_key: "M4",
      unit_name: "Valor monetario",
      taxability: "01",
      unit_price: 5000,
    },
  ],
}, { idempotencyKey: "donativo-2026-0042" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.invoices.create({
    "customer": {
        "tax_id": "ICV060329BY0",
        "legal_name": "INMOBILIARIA CVA",
        "tax_system": "601",
        "zip": "33826",
    },
    "use": "G03",
    "payment_form": "03",
    "donation": {},
    "items": [
        {
            "description": "Donativo en efectivo",
            "product_key": "84101600",
            "unit_key": "M4",
            "unit_name": "Valor monetario",
            "taxability": "01",
            "unit_price": 5000,
        },
    ],
}, idempotency_key="donativo-2026-0042")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->invoices->create([
    'customer' => [
        'tax_id' => 'ICV060329BY0',
        'legal_name' => 'INMOBILIARIA CVA',
        'tax_system' => '601',
        'zip' => '33826',
    ],
    'use' => 'G03',
    'payment_form' => '03',
    'donation' => [],
    'items' => [
        [
            'description' => 'Donativo en efectivo',
            'product_key' => '84101600',
            'unit_key' => 'M4',
            'unit_name' => 'Valor monetario',
            'taxability' => '01',
            'unit_price' => 5000,
        ],
    ],
], ['idempotency_key' => 'donativo-2026-0042']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.Invoices.Create(ctx, &fiscalisto.InvoiceCreate{
		Customer: fiscalisto.ObjectOf(fiscalisto.InvoiceCreateCustomer{
			TaxID:     "ICV060329BY0",
			LegalName: "INMOBILIARIA CVA",
			TaxSystem: "601",
			Zip:       "33826",
		}),
		Use:         fiscalisto.String("G03"),
		PaymentForm: fiscalisto.String("03"),
		Donation:    &fiscalisto.InvoiceCreateDonation{},
		Items: []fiscalisto.InvoiceCreateItem{
			{
				Description: fiscalisto.String("Donativo en efectivo"),
				ProductKey:  fiscalisto.String("84101600"),
				UnitKey:     fiscalisto.String("M4"),
				UnitName:    fiscalisto.String("Valor monetario"),
				Taxability:  fiscalisto.String("01"),
				UnitPrice:   fiscalisto.Float64(5000),
			},
		},
	}, fiscalisto.WithIdempotencyKey("donativo-2026-0042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.InvoiceCreate;
import com.fiscalisto.model.InvoiceCreateCustomer;
import com.fiscalisto.model.InvoiceCreateDonation;
import com.fiscalisto.model.InvoiceCreateItem;
import java.util.List;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.invoices().create(new InvoiceCreate()
        .setCustomer(new InvoiceCreateCustomer()
                .setTaxId("ICV060329BY0")
                .setLegalName("INMOBILIARIA CVA")
                .setTaxSystem("601")
                .setZip("33826"))
        .setUse("G03")
        .setPaymentForm("03")
        .setDonation(new InvoiceCreateDonation())
        .setItems(List.of(
                new InvoiceCreateItem()
                        .setDescription("Donativo en efectivo")
                        .setProductKey("84101600")
                        .setUnitKey("M4")
                        .setUnitName("Valor monetario")
                        .setTaxability("01")
                        .setUnitPrice(5000)
        )), RequestOptions.idempotencyKey("donativo-2026-0042"));
System.out.println(invoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.Invoices.CreateAsync(new InvoiceCreate
{
    Customer = new InvoiceCreateCustomer
    {
        TaxId = "ICV060329BY0",
        LegalName = "INMOBILIARIA CVA",
        TaxSystem = "601",
        Zip = "33826",
    },
    Use = "G03",
    PaymentForm = "03",
    Donation = new(),
    Items = new()
    {
        new()
        {
            Description = "Donativo en efectivo",
            ProductKey = "84101600",
            UnitKey = "M4",
            UnitName = "Valor monetario",
            Taxability = "01",
            UnitPrice = 5000,
        },
    },
}, new RequestOptions { IdempotencyKey = "donativo-2026-0042" });
```
