---
title: "Update fiscal series"
description: "Edit an existing fiscal series code and its development and production counters."
language: en
canonical_url: "https://exac.mx/docs/en/mcp/tools/update_fiscal_series"
md_url: "https://exac.mx/docs/en/mcp/tools/update_fiscal_series.md"
---

# Update fiscal series

Edit an existing fiscal series code and its development and production counters.

Tool: `update_fiscal_series`

## Purpose

Edit an existing fiscal series code and its folio counters.

### Use when

A fiscal series configuration or counter requires an authorized correction.

### Do not use when

You are creating or stamping a CFDI.

| Detail | Value |
| --- | --- |
| Permissions | settings:update |
| Side effects | Destructive and external |
| Idempotency | Idempotent |

## Input schema

```json
{
  "type": "object",
  "properties": {
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Unique retry key for this exact operation. Reuse it only when retrying the same request."
    },
    "seriesId": {
      "type": "string",
      "minLength": 1
    },
    "code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 25,
      "pattern": "^[A-Za-z0-9]+$"
    },
    "nextFolioProduction": {
      "$ref": "#/definitions/__schema0"
    },
    "nextFolioDevelopment": {
      "$ref": "#/definitions/__schema0"
    }
  },
  "required": [
    "idempotencyKey",
    "seriesId",
    "code",
    "nextFolioProduction",
    "nextFolioDevelopment"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "seriesId": {
          "type": "string",
          "minLength": 1
        },
        "code": {
          "type": "string"
        },
        "nextFolioProduction": {
          "$ref": "#/definitions/__schema0"
        },
        "nextFolioDevelopment": {
          "$ref": "#/definitions/__schema0"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "inactive"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "seriesId",
        "code",
        "nextFolioProduction",
        "nextFolioDevelopment",
        "status",
        "updatedAt"
      ],
      "additionalProperties": false
    },
    "error": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "validation_error",
            "unauthenticated",
            "forbidden",
            "not_found",
            "method_not_allowed",
            "conflict",
            "idempotency_conflict",
            "operation_in_progress",
            "recovery_required",
            "rate_limited",
            "provider_unavailable",
            "internal"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "issues": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "message": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "path",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "retryable": {
              "type": "boolean"
            },
            "retryAfterSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "oneOf": [
    {
      "required": [
        "data"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
```

## Related tools

- [`get_fiscal_series`](/docs/en/mcp/tools/get_fiscal_series.md) — **Read fiscal series**: Get the organization fiscal series and their development and production counters.

- [`create_cfdi_draft`](/docs/en/mcp/tools/create_cfdi_draft.md) — **Create CFDI draft**: Create a CFDI draft with canonical tax validation. Payment complements accept automatic taxes for known CFDIs or caller-provided taxObject and payment-level tax entries for external CFDIs. This tool never stamps.

## Related workflow

[See the canonical workflows in the introduction](/docs/en.md)

## Equivalent REST operations

- [`PATCH /v1/settings/fiscal-series/{seriesId}`](/docs/en/api/catalog/settings/update-fiscal-series.md)

Complete documentation: https://exac.mx/docs/en.md
Agent documentation index: https://exac.mx/docs/en/llms.txt
