Skip to content
Invoicing

FISCALISTO / API

Complements

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

Open in ChatGPTOpen in ClaudeOpen in Cursor

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, on the invoice or on each line item, and Fiscalisto checks it with the same rules as the app before stamping.

ComplementFieldWhat for
Carta Porte 3.1carta_porteMoving 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.0comercio_exteriorDefinitive export of goods, with "export": "02" or "04".
Impuestos localeslocal_taxesState taxes transferred or withheld, like lodging's ISH.
Instituciones educativasitems[].ieduTuition: student, CURP, level and RVOE, so parents can deduct it.
A cuenta de tercerositems[].third_partyA line item charged on behalf of another taxpayer.
Vehículo usadoitems[].used_vehicleSale of a used car by an individual.
Hidrocarburos y petrolíferositems[].hydrocarbonSelling diesel or gasoline: the CNE permit's type and number and the subproduct, on every fuel line item.
DonatariasdonationDonation receipts of an authorized donee.
INEineOperations with political parties and candidates.
Leyendas fiscalesleyendasText a tax provision requires including.
Addendaaddenda (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

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 }]
  }'

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

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" }
    }]
  }'

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.

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" }]
    }
  }'

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_exemptionCaseWhat else it needs
2.7.7.2.1Your 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.2Parcel or courier service, first or last mile.One item per package, with its tracking number in sku.
2.7.7.2.3Local 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.

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 }]
  }'

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.

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 }]
    }
  }'

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.

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" }
  }'

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.

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" }
    }]
  }'

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.

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 }
    }]
  }'

Example: tax legends

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

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" }]
  }'

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.

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 }]
  }'

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.

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"] }]
  }'

Example: donation receipt

Issued by an authorized donee: the issuer with tax_system: "603" and its authorization in donation_authorization (Issuers). 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.

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 }]
  }'

Was this page helpful?