Skip to content

FISCALISTO / API / REFERENCE

Update a SAT invoice · SAT downloads

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/sat_invoices/{id}

What can be changed on a SAT CFDI without touching it: its cost center (cost_center, or null to remove it), to see its expenses by site, project or department, and its tags (tags, exactly the ones you send: tag_… ids or names; a new name creates the tag).

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Path parameters

id*string

The object's id.

Headers

Idempotency-Key?string

Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).

Length1 <= length <= 255

Request body

application/json
  1. body
cost_center?|

Its cost center (ccn_…), or null to remove it. Payment complements and transfers don't carry one.

tags?array<>

Its tags, exactly these (up to 10): ids (tag_…) or names; a new name creates the tag. [] removes them. One a rule set that you don't send stays removed.

Itemsitems <= 10
account?|

The number of your chart's account its income or expense is booked to («601-84-002»), instead of its category's; null sends it back to its category's. Only invoices and credit notes, in a month that isn't closed; not Cash or Banks.

Response body

OK.

application/json
  1. response

An invoice the SAT has for the issuer, issued or received, brought in by a download.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

issuer*string

The issuer in your account (iss_…) this invoice belongs to.

uuid*string

The tax folio (UUID of the stamp).

direction*string

received (made to the issuer) or issued (the issuer issued it).

One of"received""issued"
type*|

Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll.

date*string

The receipt's date (Fecha), in the local time it was issued with.

series*|

Series (Serie), or null.

folio*|

Folio (Folio), or null.

issued_by*

Who issued it (Emisor).

issued_to*

Who it was issued to (Receptor).

currency*|

Currency (Moneda): MXN, USD…

exchange_rate*|

Exchange rate (TipoCambio), or null in pesos.

payment_method*|

Payment method (MetodoPago): PUE or PPD.

payment_form*|

Payment form (FormaPago), c_FormaPago code.

use*|

CFDI use (UsoCFDI).

subtotal*|

Subtotal (SubTotal).

total*|

Total (Total).

taxes*

The receipt's taxes: transferred (iva, ieps), withheld (iva_withheld, isr_withheld, ieps_withheld) and local.

sat_status*|

Its status at the SAT when it was checked: active (valid) or canceled. null if it hasn't been checked yet.

paid_otherwise*|

Received only, marked with mark_paid, in the app or by a rule: without_complement true on a PPD paid without a payment complement (the SAT still sees it as unpaid); false on a PUE, where only the source of the money was noted.

cash_confirmation*|

Only on a received PUE paid in cash when the empresa asks to confirm these payments (Ajustes › Pagos en efectivo): pending until someone notes where the money came from (mark_paid with money_source), confirmed afterwards. Null on the rest. Its taxes don't change.

cost_center*|

Its cost center (ccn_…), or null. Set or change it with POST /v1/sat_invoices/{id}.

account*|

The number of your chart's account its income or expense is booked to instead of its category's (in the app, by a rule of Ajustes › Reglas or with account). Null: its category's.

tags*array<>

Its tags, by name. automatic: true on those a rule added (the purchase order it was linked to or a rule in Ajustes › Reglas). Change them with POST /v1/sat_invoices/{id}.

sat_download*|

The download (sdl_…) that brought it, or null.

downloaded_at*|

When it arrived.

Errors

  • The issuer is archived and no longer stamps. Its documents can still be read and canceled.

  • The account has several issuers and the request doesn't say which: send issuer (iss_…).

  • The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

  • There's already a tag with that name (case and accents don't matter): the message has its id (tag_…).

  • The empresa has reached 200 tags: delete the ones it no longer uses.

  • Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.

  • That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.

  • This key can't use that issuer.

  • There is no such issuer in the account (or it belongs to the other mode).

  • There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X POST 'https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p1F' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "cost_center": "ccn_OufpKqnrvx9p1",  "tags": [    "Obra Norte",    "Urgente"  ]}'
{  "id": "sat_OufpKqnrvx9p1F",  "object": "sat_invoice",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "uuid": "9B2D4E61-7C3A-4F18-8E5D-0A6B9C1D2E3F",  "direction": "received",  "type": "I",  "date": "2026-09-12T11:04:00",  "series": "A",  "folio": "4821",  "issued_by": {    "tax_id": "XIA190128J61",    "legal_name": "XENON INDUSTRIAL ARTICLES"  },  "issued_to": {    "tax_id": "TOL190312KT4",    "legal_name": "TOLPI"  },  "currency": "MXN",  "exchange_rate": null,  "payment_method": "PUE",  "payment_form": "03",  "use": "G03",  "subtotal": 18400,  "total": 21344,  "taxes": {    "iva": 2944,    "ieps": 0,    "iva_withheld": 0,    "isr_withheld": 0,    "ieps_withheld": 0,    "local_transferred": 0,    "local_withheld": 0  },  "sat_status": "active",  "paid_otherwise": null,  "cash_confirmation": null,  "cost_center": null,  "account": null,  "tags": [    {      "id": "tag_OufpKqnrvx9p1",      "name": "Obra Norte",      "color": "info",      "automatic": false    }  ],  "sat_download": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc",  "downloaded_at": "2026-10-24T10:27:40-06:00"}

Was this page helpful?