---
title: "debit-notes__update_debit_note"
method: POST
path: "/tools/debit-notes__update_debit_note"
tags: ["Gastos"]
---

# debit-notes__update_debit_note

`POST /tools/debit-notes__update_debit_note`

### MCP
`update_debit_note` → `debit-notes__update_debit_note`.

### HTTP
`PUT /v1/debit-notes/{id}`

### Errores
| Código | Significado | Acción |
|--------|-------------|--------|
| 13038 | No editable | Estado/reglas bloquean edición |
| 13093 | Periodo contable cerrado | Abrir periodo o ajustar fecha |
| 13005 | No encontrado | Verificar id |
| 907 / 908 | Plan | Revisar plan y permisos |
| (dinámico) | Fallo timbre en PUT: `error` + `debitNote` | Leer `error.code`; no reintentar mismo payload a ciegas |

No reintentar el mismo payload fallido a ciegas en rutas de timbre.

## Request body

- object
  - `id` string, required
  - `date` string
  - `client` object
  - `items` unknown[]
    - unknown
  - `categories` unknown[]
    - unknown
  - `purchases` object
  - `bills` unknown[]
    - unknown
  - `stamp` object

## Response `200`

Nota actualizada

---

[API](https://skmtc.net/alegra/apis/ingresos.md) · [All operations](https://skmtc.net/alegra/apis/ingresos/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alegra/ingresos/versions/cd52d3f68f1b/schema)
