# Errors

> Every error says what happened, which field to fix and how. Here's every code you can get.

An error answers with an HTTP 4xx or 5xx status and always the same body:

```json
{
  "error": {
    "type": "invoice_error",
    "code": "invoice_rejected",
    "message": "El SAT no reconoce el nombre del cliente. Escríbalo letra por letra como en su constancia de situación fiscal: completo, con o sin acentos según venga ahí, y sin «S.A. de C.V.» ni otro régimen de capital.",
    "param": "customer",
    "sat_code": "CFDI40145",
    "invoice": "inv_roVZuc6krJsw08oPyaiBiYX4fWH2pyEN1x",
    "doc_url": "https://fiscalisto.com/docs/api/errores#invoice_rejected",
    "request_id": "req_FfCT3zz9ktKinNLSGMqu",
    "request_log_url": "https://fiscalisto.com/mi-empresa/desarrolladores/solicitudes?id=req_FfCT3zz9ktKinNLSGMqu"
  }
}
```

| Field | What it is |
| --- | --- |
| `type` | The error's family. Its code decides what to do with it. |
| `code` | The precise, stable reason: it doesn't change between versions. It's in the list below. |
| `message` | What happened and how to fix it, in Spanish (or English with `Accept-Language: en`), to show to a person. It may improve over time: don't compare it in your code. |
| `param` | The field to fix, with its path in the body (`items.0.unit_price`, `customer.zip`). |
| `sat_code` | SAT's or the PAC's code when they rejected it (`CFDI40145`). |
| `doc_url` | The documentation page for the error's code. |
| `request_id` | The request's id, the same as the `Request-Id` header. Look it up in **Desarrolladores › Solicitudes** or send it to support. |
| `request_log_url` | The request opened in **Desarrolladores › Solicitudes**: what you sent, what we answered and **Repetir en pruebas** (repeat in test mode). Put it in your logs to get there in one click. Not included in `429`s. |

A rejection by SAT or the PAC also carries the rejected document's id in `invoice` (or `retention` for a withholding certificate), to look it up.

## What to do with each type

| `type` | HTTP | What to do |
| --- | --- | --- |
| `invalid_request_error` | 400 | Fix the request: `param` and `message` say what. |
| `authentication_error` | 401 | Check the key. |
| `balance_error` | 402 | Buy timbres and repeat with the same `Idempotency-Key`. |
| `permission_error` | 403 | Use a key that can work with that issuer. |
| `not_found_error` | 404 | Check the id and the key's mode. |
| `idempotency_error` | 409 | `request_in_progress`: wait and repeat. `idempotency_key_reused`: use another key. |
| `invoice_error` | 422 | Fix the document's data: SAT, the PAC or Fiscalisto's checks don't accept it. |
| `rate_limit_error` | 429 | Wait what `Retry-After` says and repeat. |
| `api_error` | 500, 503 | Repeat with the same `Idempotency-Key`, with growing waits. |

> **An error is never charged.** No error uses a timbre: neither Fiscalisto's checks nor SAT's or the PAC's rejections. A rejected invoice is kept with `status: "rejected"` and its `error`, and you can look it up by its id.

## If the API doesn't answer

A `500`, a `503` or a network drop: repeat with the same `Idempotency-Key` and growing waits (the [SDKs](https://fiscalisto.com/en/docs/api/sdk#safe-retries) already do it). To know whether it's general, see [fiscalisto.com/estado](https://fiscalisto.com/estado): it says whether the API, its webhooks, stamping, SAT downloads, email delivery, the application and SAT's lists work, since when they fail, how fast they answer and how they did over the last 90 days, checked every 15 minutes. For your monitors, the same as JSON with `GET https://fiscalisto.com/estado.json`, no key:

```json
{
  "status": "operativo",
  "checked_at": "2026-10-30T18:45:00.000Z",
  "page": "https://fiscalisto.com/estado",
  "components": [
    {
      "id": "pac",
      "name": "Timbrado y cancelación",
      "status": "operativo",
      "since": null,
      "maintenance": false,
      "response_times": { "p50_ms": 840, "p95_ms": 2310 }
    },
    {
      "id": "api",
      "name": "API",
      "status": "operativo",
      "since": null,
      "maintenance": false,
      "response_times": { "p50_ms": 120, "p95_ms": 480 }
    },
    {
      "id": "sat_lists",
      "name": "Listas del SAT (69-B y 69)",
      "status": "operativo",
      "since": null,
      "maintenance": false,
      "response_times": null
    }
  ],
  "maintenance": [
    {
      "id": 3,
      "title": "Actualización del servicio de timbrado",
      "description": null,
      "components": ["pac"],
      "starts_at": "2026-11-02T05:00:00.000Z",
      "ends_at": "2026-11-02T06:00:00.000Z",
      "status": "programado"
    }
  ],
  "incidents": [
    {
      "id": 12,
      "component": "pac",
      "status": "degradado",
      "started_at": "2026-10-29T16:15:00.000Z",
      "ended_at": "2026-10-29T16:45:00.000Z",
      "note": "El PAC tardó en responder; lo que no se timbró se reintentó solo."
    }
  ]
}
```

The `id`s in `components` are `app` (the application and portals), `pac`, `sat_download` (SAT's bulk download), `email`, `api`, `webhooks` and `sat_lists`. `status` is `operativo` (operational), `degradado` (degraded) or `interrumpido` (down); `since`, since when, while it isn't `operativo`; `maintenance`, whether an announced maintenance covers it now. `response_times` are the last 24 hours in milliseconds: `p50_ms` the typical answer (half took that or less) and `p95_ms` the slow one (95 out of 100); in `webhooks`, how long each event took to go out. It's `null` without requests or where it isn't measured. A part that answers but much slower than usual is `degradado`. In `app` and `api` failures of several visitors count: those of a single integration or a single person don't change the status.

`maintenance` carries what's announced and not finished yet (`status`: `programado` or `en_curso`); `incidents`, the 10 most recent of the last 90 days, with a `note` of what happened when there is one. With `?history=1` it also carries the last 90 days (`days`: `day`, `status`, `minutes` with failures, `p50_ms` and `p95_ms`) and each hour of the last 24 (`response_times.hours`: `at`, `p50_ms`, `p95_ms`). It updates every minute; don't poll it more often. To hear about it without polling: email alerts on [Estado del servicio](/estado) or the RSS `https://fiscalisto.com/estado.rss`, with each incident when it starts and when it's resolved and each maintenance when it's announced.

## In English

With the `Accept-Language: en` header errors come in English (and `Content-Language: en`). Validation errors say exactly the same as in Spanish (`unit_price: must be greater than or equal to 0.`). The rest say in English what their `code` means, and carry the original, more specific message in `message_es`. Data isn't translated: catalogs, names and CFDI fields are SAT's.

```bash
curl https://api.fiscalisto.com/v1/invoices/inv_nope \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Accept-Language: en"
```

In the SDKs, the option `language: "en"` (`language="en"` in Python, `'language' => 'en'` in PHP, `WithLanguage("en")` in Go, `.language("en")` in Java and `Language = "en"` in .NET).

## Validation errors

Before sending to the PAC, Fiscalisto checks the whole invoice against SAT's catalogs and rules (for example, that the CFDI use fits the customer's régimen or that the totals add up). So almost every error comes as `parameter_invalid` or `invoice_invalid`, with `param`, without spending time or a timbre at the PAC. A field that doesn't exist is never silently ignored: it answers `parameter_unknown`, because it's almost always a misspelled name.


## Invalid request

`type`: `invalid_request_error`.

### parameter_missing

**HTTP 400.** A required field is missing. `param` says which.

### parameter_invalid

**HTTP 400.** A field has a value that isn't accepted (format, SAT catalog, range). `param` says which.

### parameter_unknown

**HTTP 400.** The request has a field that doesn't exist (usually a misspelled name, like legalName for legal_name). Unknown fields are never ignored.

### body_too_large

**HTTP 413.** The body is over 10 MB. Split the work into several batches.

### data_request_completed

**HTTP 400.** The customer already sent their data through that link: a completed request can't be canceled.

### invalid_json

**HTTP 400.** The body isn't a valid JSON object.

### unsupported_content_type

**HTTP 400.** Send the body as JSON (Content-Type: application/json).

### method_not_allowed

**HTTP 405.** The route exists, but not with that method (the API uses POST to update, never PUT or PATCH).

### browser_not_supported

**HTTP 400.** Call the API from your server, never from a browser: your secret key would be exposed.

### setting_change_not_undoable

**HTTP 400.** That change can no longer be undone: it was already undone, the setting changed again since (undo the newest first) or it no longer has the value that change left.

### issuer_own_rfc

**HTTP 400.** That issuer is one of the empresa's own RFCs: it is an issuer as long as the empresa has it, and it can't be archived.

### livemode_mismatch

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

### issuer_required

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

### issuer_exists

**HTTP 400.** That RFC is already an issuer of the account in this mode.

### issuer_archived

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

### certificate_invalid

**HTTP 400.** The CSD can't be used: it isn't a seal certificate (it's an e.firma), it expired, the .key doesn't match or the password doesn't open it.

### certificate_required

**HTTP 400.** Upload the issuer's CSD first; then sign the contract with its e.firma.

### efirma_invalid

**HTTP 400.** The e.firma can't be used: it isn't an e.firma (it's a CSD), it belongs to another RFC, it expired or the password doesn't open it.

### efirma_required

**HTTP 400.** To download an issuer's invoices from the SAT in live mode, keep its e.firma first: `POST /v1/issuers/{id}/efirma` with keep_for_downloads: true (also when the kept one expired).

### test_mode_only

**HTTP 400.** This exists only in test mode: use your fk_test_ key.

### sat_request_rejected

**HTTP 400.** The SAT rejected the download request. `message_es` has its reason (for example, the same period and filters were requested too many times).

### ticket_invalid

**HTTP 400.** The ticket couldn't be registered (invalid folio, a sale date in the future or over a year ago, a product no longer in the catalog…). `message_es` says which.

### ticket_folio_taken

**HTTP 400.** That folio is already registered for the issuer with another total or tip. With the same total the existing ticket is returned.

### ticket_not_pending

**HTTP 400.** The ticket was already invoiced or included in a global invoice: it can't be canceled.

### recurring_invalid

**HTTP 400.** The recurring invoice couldn't be saved: the day, hour, time zone or invoice isn't valid. `message_es` says which.

### recurring_limit

**HTTP 400.** The issuer has the most active recurring invoices allowed (25 in test mode, 5,000 live). Pause or delete the ones you don't use.

### recurring_paused

**HTTP 400.** The recurring invoice is paused: resume it with active: true to stamp it.

### recurring_not_due

**HTTP 400.** The recurring invoice isn't due yet (its next_invoice_on is after today). To invoice early, use `POST /v1/invoices`.

### invoice_not_markable

**HTTP 400.** Only a valid PUE income invoice is marked paid or unpaid; a PPD one is paid with its payment complement (type P).

### bank_transaction_invalid

**HTTP 400.** The deposit can't be matched, classified or reopened that way. `message_es` says why.

### purchase_receipt_invalid

**HTTP 400.** The purchase receipt can't be saved, changed or requested that way. `message_es` says why.

### diot_empty

**HTTP 400.** The month has no payments to suppliers: that DIOT is filed with no operations on the SAT's portal.

### store_connection_failed

**HTTP 400.** The store refused the connection or didn't answer as expected (wrong keys, missing permissions, a store that doesn't sell in pesos). `message_es` says what it answered.

### store_platform_unavailable

**HTTP 400.** That platform isn't available in Fiscalisto yet.

### sandbox_invalid

**HTTP 400.** The sandbox couldn't be created: its name is missing or the account already has 25 (delete one you don't use).

### api_version_invalid

**HTTP 400.** There's no such API version (in Fiscalisto-Version or api_version). See Versiones in the docs for the ones there are.

### expand_invalid

**HTTP 400.** An expand[] field isn't in the answer, isn't another object's id, or too many were asked for (up to 10 fields, 4 levels).

### test_clock_unsupported

**HTTP 400.** Test clocks are for test issuers: use your fk_test_ key and a test issuer.

### test_clock_exists

**HTTP 409.** The issuer already has a test clock: advance it, or delete it to go back to real time.

### test_clock_invalid

**HTTP 400.** frozen_time can't be used: it isn't an ISO 8601 date and time, it's before the clock's time (clocks only go forward) or more than two years ahead of real time.

### test_clock_advancing

**HTTP 409.** The clock is being advanced by another request. Wait for test_clock.ready and try again.

### store_already_connected

**HTTP 400.** That store is already connected to this issuer.

### store_not_authorized

**HTTP 400.** The seller hasn't authorized the connection at authorize_url yet.

### store_disconnected

**HTTP 400.** The store was disconnected: connect it again with `POST /v1/store_connections`.

### quote_invalid

**HTTP 400.** The quote couldn't be saved or can't change anymore (accepted, rejected or invoiced), or can't be sent that way. `message_es` says why.

### quote_not_deletable

**HTTP 400.** The quote was accepted or invoiced, so it can't be deleted. To close one that wasn't accepted, you can also withdraw it (`POST /v1/quotes/{id}/withdraw`).

### quote_not_sent

**HTTP 400.** The quote was never sent, so it can't be withdrawn or marked rejected: delete it with `DELETE /v1/quotes/{id}`.

### quote_not_invoiceable

**HTTP 400.** The quote was rejected, withdrawn or expired, so it can't be invoiced. If it expired or was withdrawn, change it (a new version) and send it again.

### quote_customer_missing

**HTTP 400.** The quote has no customer tax data: add it with `POST /v1/quotes/{id}` (customer), or send it with auto_invoice so the customer gives it when accepting.

### sales_order_invalid

**HTTP 400.** The sales order couldn't be saved or can't do that in its current status (for example, nothing left to deliver or invoice, or it's canceled). `message_es` says why.

### payouts_not_enabled

**HTTP 400.** The issuer's RFC doesn't pay suppliers with Fiscalisto: connect Fintoc in the app, under Pagos.

### payout_invalid

**HTTP 400.** The pago can't be prepared or changed like that (an invoice already paid or in another pago, a supplier without an approved account, a rule that blocks it, a limit, or it already went out). `message_es` says why, line by line.

### payout_not_from_api

**HTTP 400.** The pago was prepared in the app: cancel it there.

### supplier_invoice_invalid

**HTTP 400.** The supplier invoice can't do that in its current status (only an approved or scheduled one can be scheduled, a paid date can't be in the future, or the SAT reports it canceled). `message_es` says why.

### sales_order_not_deletable

**HTTP 400.** Only a draft sales order can be deleted; cancel a confirmed one with `POST /v1/sales_orders/{id}/cancel`.

### sales_order_draft

**HTTP 400.** The sales order is a draft: confirm it first with `POST /v1/sales_orders/{id}/confirm`.

### idempotency_key_missing

**HTTP 400.** Stamping requires the Idempotency-Key header (8 to 255 characters, a new one per document), so a retry never stamps twice.

### idempotency_key_invalid

**HTTP 400.** An Idempotency-Key is 1 to 255 ASCII characters, with no accents: your order id or a UUID.

### invoice_not_stamped

**HTTP 400.** This is for stamped invoices (send, cancel, substitute).

### export_empty

**HTTP 400.** None of the issuer's invoices match the period and filters of `POST /v1/exports`: nothing was generated.

### export_in_progress

**HTTP 409.** An export of the same format is already being generated in this company. Wait for it to finish (`GET /v1/exports`) and request the next one.

### export_not_ready

**HTTP 409.** The export is still being generated (status processing) or failed (failed). Check `GET /v1/exports/{id}`; if it failed, request it again.

### export_expired

**HTTP 410.** An export's files are kept 30 days. Request it again with `POST /v1/exports`.

### answer_running

**HTTP 409.** The answer to this SAT review is already being armed. Wait until answer.status is completed (`GET /v1/sat_reviews/{id}`).

### answer_not_ready

**HTTP 409.** The answer is still being armed (answer.status processing) or failed (failed). Check `GET /v1/sat_reviews/{id}`; if it failed, request it again with `POST /v1/sat_reviews/{id}/answer`.

### answer_expired

**HTTP 410.** An armed answer is kept 30 days. Request it again with `POST /v1/sat_reviews/{id}/answer`.

### sat_invoice_not_markable

**HTTP 400.** Only a received, active income invoice can be marked as paid: a PPD still unpaid, or a PUE to note where the money came from. The Spanish message says why this one can't.

### issuer_has_no_team

**HTTP 400.** That issuer has no team: the team belongs to an empresa, in its own issuers (type own), with an fk_live_ key. A connected issuer or a test one has no members.

### team_invalid

**HTTP 400.** That change can't be made: the person is already a member, the empresa would be left without an owner, a role with that name exists, someone has the role, or too many invitations were sent today. The message says which.

### invoice_not_canceled

**HTTP 409.** The cancellation receipt exists once the SAT has cancelled the invoice (status canceled). With a cancellation waiting for the customer (pending), wait for invoice.canceled.

### substitution_unsupported

**HTTP 400.** Payment complements and credit notes aren't substituted: cancel them and issue another.

### calculation_mode_ambiguous

**HTTP 400.** This mixes the two ways of issuing a payroll receipt: `POST /v1/payroll_receipts` calculates it from an employee (emp_…); `POST /v1/payroll_receipts/external` stamps the amounts your payroll system calculated. Use the matching endpoint.

### payroll_calculation_unsupported

**HTTP 400.** `POST /v1/payroll_receipts` only calculates ordinary payroll (salary, ISR with the employment subsidy and the employee's IMSS quotas). Fiscalisto calculates the aguinaldo, PTU and severance (finiquito or liquidación) with `POST /v1/payroll_receipts/extraordinary`; pensions, bonuses and the rest are calculated by your payroll system and stamped with `POST /v1/payroll_receipts/external`. `param` says which field asked for it.

### payroll_receipt_exists

**HTTP 409.** The employee already has a valid receipt for that period (ordinary) or payroll run (extraordinary) with other amounts; `invoice` is that receipt. Replace it with `replaces` or cancel it first. The same amounts return the same receipt.

### payroll_period_overlap

**HTTP 409.** The employee already has an ordinary receipt whose period overlaps this one (`invoice`). An additional payment goes as an extraordinary receipt (type E); to correct that one, use `replaces`.

### payroll_replacement_invalid

**HTTP 409.** `replaces` isn't a valid payroll receipt of the same issuer and employee.

### retention_not_stamped

**HTTP 400.** This is for stamped retentions certificates.

### retention_not_issued

**HTTP 400.** Only whoever issued the certificate can cancel it; the issuer received this one.

### customer_generic_tax_id

**HTTP 400.** Público en general (XAXX010101000) and foreign customers (XEXX010101000) share one RFC, so how one pays says nothing about the others: there's no payment behavior for them.

### customer_exists

**HTTP 400.** There's already a customer with that RFC in the issuer's catalog (or a product with that SKU). For a customer, `customer` is its id (cus_…): use it, or update it with `POST /v1/customers/{id}`.

### branch_has_invoices

**HTTP 400.** The branch has already issued invoices, so it can't be deleted: archive it with archived: true and its invoices keep naming it.

### cost_center_exists

**HTTP 400.** The issuer already has a cost center with that name (case doesn't matter). If it's archived, restore it with archived: false.

### rule_invalid

**HTTP 400.** The rule can't be saved like that: the message says why (an action that doesn't go with its trigger, such as cost_center on a purchase order; a tag, stage or cost center that doesn't exist; a field or value that doesn't go with its operator; more than 200 rules).

### attendance_invalid

**HTTP 400.** Asistencia doesn't allow it: the message says why (a time in the future or more than 400 days ago, an employee with a termination date, a period over 92 days, a mark already voided).

### expense_report_invalid

**HTTP 400.** Viáticos y gastos doesn't allow it right now: the message says why (a gasto with errors when sending it, a reembolso before approval, approving what you sent yourself).

### issuer_not_ready

**HTTP 400.** The issuer can't do that yet: the message says what it's missing (its CSD, or one in force when stamping; its RFC and tax details for viáticos). Upload it and repeat the request with the same Idempotency-Key.

### entry_unbalanced

**HTTP 400.** The journal entry doesn't balance or a line is wrong: debits must add up to the same as credits, and each line has a debit or a credit, not both. The message gives the sums.

### regime_not_applicable

**HTTP 400.** That issuer doesn't file the annual return of a general-regime legal entity: it's an individual, RESICO, a non-profit or has another income tax regime in Impuestos.

### account_missing

**HTTP 400.** That account isn't in the issuer's chart of accounts: see it with `GET /v1/accounting/accounts` or add it with `POST /v1/accounting/accounts`.

### asset_already_disposed

**HTTP 400.** The fixed asset was already sold or written off: undo that with `DELETE /v1/accounting/fixed_assets/{id}/disposal` if it was a mistake.

### asset_not_disposed

**HTTP 400.** The fixed asset isn't disposed of: there's no disposal to undo.

### period_closed

**HTTP 400.** That month of the books is closed: nothing dated in it can be booked, changed or deleted. Reopen it with `POST /v1/accounting/closed_period` to correct it.

### bank_movement_posted

**HTTP 400.** That bank movement already has its journal entry: remove it with `DELETE /v1/accounting/bank_movements/{id}/post` to book it to another account.

### bank_movement_not_posted

**HTTP 400.** That bank movement has no journal entry: there's nothing to remove.

### bank_movement_not_bookable

**HTTP 400.** That movement doesn't go to the books this way: a deposit must be classified in the reconciliation as a loan, transfer, refund or interest (its invoice explains the rest), and a withdrawal marked as paid invoices or ignored goes back to pending first.

### asset_from_cfdi

**HTTP 400.** The asset came with its CFDI and can't be deleted: sell it or write it off with `POST /v1/accounting/fixed_assets/{id}/dispose`.

### cost_center_limit

**HTTP 400.** The issuer has reached 500 cost centers: archive or delete the ones it no longer uses.

### finding_resolved

**HTTP 409.** The finding no longer applies: what caused it changed (status resolved). There is nothing to review.

### tag_exists

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

### tag_limit

**HTTP 400.** The empresa has reached 200 tags: delete the ones it no longer uses.

### inventory_refused

**HTTP 400.** Inventory doesn't allow it: the message says why (a lot that isn't that product's, another adjustment of the same warehouse in progress).

### email_failed

**HTTP 400.** The email couldn't be sent; the rest was done: the document is stamped or the quote marked sent (its url works). Repeat the send with its /send route.

### endpoint_exists

**HTTP 400.** There's already a webhook endpoint with that URL in this mode (the message says which): update it instead of creating another.

### endpoint_limit

**HTTP 400.** The account has the most webhook endpoints allowed in this mode.

### endpoint_disabled

**HTTP 400.** That webhook endpoint is disabled, so an event can't be resent to it. Enable it with disabled: false and resend.

## Authentication

`type`: `authentication_error`.

### missing_api_key

**HTTP 401.** The Authorization header is missing: Bearer fk_test_… or fk_live_….

### invalid_api_key

**HTTP 401.** The API key doesn't exist, was revoked or expired. Create another in Desarrolladores › Llaves.

## Permissions

`type`: `permission_error`.

### account_suspended

**HTTP 403.** We suspended this API account (every key, or only its live keys) for a use that breaks the terms of service. The message says why; write to soporte@fiscalisto.com to reactivate it.

### key_restricted

**HTTP 403.** This key is limited to some issuers and the request touches another one (or creates one, or uses something of the whole account, like webhooks).

### key_in_sandbox

**HTTP 403.** This key belongs to a sandbox and the request is for the whole account: use the account's test key.

### issuer_not_allowed

**HTTP 403.** This key can't use that issuer.

### feature_not_in_plan

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

### issuer_linked_empresa

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

### key_read_only

**HTTP 403.** This key is read-only: it can read, validate RFCs, check SAT lists and calculate payroll, but not stamp, cancel, send or change anything.

### payouts_api_disabled

**HTTP 403.** The empresa doesn't let the API prepare pagos: turn it on in the app, under Pagos › Configurar pagos.

### team_permission_denied

**HTTP 403.** The key acts as the person who created it, with their access in the empresa: they lack the permission for this, what you asked would give more than they have, or they're no longer a member.

### team_change_requires_app

**HTTP 403.** The change gives, takes or touches a sensitive permission (team, credentials, security or plan), or names an owner: it needs the identity of whoever makes it confirmed, which is done in the app, in Ajustes › Miembros or Ajustes › Roles.

### team_seat_limit

**HTTP 403.** The empresa's plan already has all its users (members plus pending invitations). Change plan in Ajustes › Plan y pagos or remove someone.

## Not found

`type`: `not_found_error`.

### route_not_found

**HTTP 404.** That route doesn't exist. Check the path and the version (/v1).

### issuer_missing

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

### test_clock_missing

**HTTP 404.** The issuer has no test clock: create one with `POST /v1/issuers/{id}/test_clock`.

### answer_missing

**HTTP 404.** This SAT review has no armed answer yet. Request it with `POST /v1/sat_reviews/{id}/answer`.

### resource_missing

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

## Idempotency

`type`: `idempotency_error`.

### idempotency_key_reused

**HTTP 409.** That Idempotency-Key was used in the last 24 hours with another request (another route or body). Use a new one for each operation.

### request_in_progress

**HTTP 409.** Another request with the same Idempotency-Key is still running. Repeat it in a moment with the same key: it will answer the same.

## Documents

`type`: `invoice_error`.

### invoice_invalid

**HTTP 422.** The invoice breaks a SAT rule Fiscalisto checks before sending it to the PAC. No stamp was used. `message_es` says which rule and how to fix it.

### invoice_rejected

**HTTP 422.** The PAC or the SAT didn't accept it. `sat_code` has their code (CFDI40xxx) and `message_es` what to fix. No stamp was used.

### cancellation_too_early

**HTTP 409.** The SAT hasn't registered the invoice yet: it takes a few minutes after stamping (up to 5 in test mode). Nothing was cancelled or charged: repeat the same request after Retry-After.

### cancellation_failed

**HTTP 422.** The SAT didn't accept the cancellation. `message_es` says why.

### payroll_invalid

**HTTP 422.** The payroll receipt can't be calculated or stamped with that data (period, days, the issuer's employer registration…). `message_es` says which; for an externally calculated receipt, `errors` lists every problem with its `param`.

### payroll_calculation_changed

**HTTP 409.** You sent a preview's confirmation_token, but the receipt calculated now is different (another receipt of the employee that month, a salary change, updated tables). Nothing was stamped: preview it again and send its new token.

### payroll_approval_required

**HTTP 409.** The issuer requires the payroll run (prenómina) to be approved before stamping, and this receipt isn't in the period's approved run with these amounts and payment date (not requested, awaiting approval, rejected, or the receipt changed). Nothing was stamped: request it with `POST /v1/payroll_approvals` and wait for a person to approve it in the app.

### retention_invalid

**HTTP 422.** The retentions certificate breaks a SAT rule. No stamp was used.

### retention_rejected

**HTTP 422.** The PAC or the SAT didn't accept the certificate; `sat_code` has their code.

### batch_invalid

**HTTP 422.** An invoice of the batch doesn't pass the checks; `param` says which (invoices.3.items.0.unit_price). None of the batch was stamped.

## Timbres

`type`: `balance_error`.

### insufficient_balance

**HTTP 402.** The account has no live stamps left: to stamp, check RFCs against SAT's lists, look up constancias, request SAT downloads or fetch declarations, the compliance opinion or the mailbox from SAT. Buy a pack in Desarrolladores › Timbres y pagos, or turn on auto-recharge. Never happens in test mode.

## Limits

`type`: `rate_limit_error`.

### issuer_creation_limit

**HTTP 429.** 500 issuers were created in 24 hours. Write to us if you need more.

### sat_refresh_too_soon

**HTTP 429.** This issuer's tax returns were looked up at SAT less than 10 minutes ago. Retry-After says how many seconds are left; what came is in `GET /v1/sat_declarations`.

### stamp_rate_limit

**HTTP 429.** Too many stamps in a row for the same issuer. Wait what Retry-After says; for many invoices use `POST /v1/invoice_batches`, for a payroll run `POST /v1/payroll_batches`.

### monthly_allowance

**HTTP 429.** On the Free plan this API used its requests of the last 30 days (10,000 plus 500 per stamp used). A paid plan has 100,000 plus 500 per stamp and is only slowed down past them; or use webhooks instead of polling. Need more? Write to soporte@fiscalisto.com.

### daily_limit

**HTTP 429.** You reached today's limit of something not paid with stamps. Retry-After says how many seconds until midnight in Mexico City.

### rate_limit

**HTTP 429.** Too many requests with this key. Wait what Retry-After says and retry.

## Fiscalisto's errors

`type`: `api_error`.

### sat_unavailable

**HTTP 502.** SAT didn't answer or didn't let the issuer's e.firma in. No stamp was used. Retry in 10 minutes.

### pdf_unavailable

**HTTP 502.** The PDF of that CFDI couldn't be drawn. Download its XML: it is the document valid before SAT.

### catalog_unavailable

**HTTP 503.** The SAT catalog didn't answer. Retry in a few seconds.

### internal_error

**HTTP 500.** Something failed on our side. Repeat the request with the same Idempotency-Key (it never stamps twice). If it keeps failing, write to us with the request_id.
