> For the complete documentation index, see [llms.txt](https://docs.rmhpos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rmhpos.com/es/store-manager/configure-pos-and-store-manager/merchandising/setting-up-reason-codes.md).

# Códigos de motivo

Los códigos de motivo identifican acciones específicas realizadas en la caja, por ejemplo, sin ventas, descuentos o devoluciones. Los códigos de motivo no son obligatorios, pero se recomiendan.

1. Haga clic en **Configuración**.
2. Expandir **Mercadotecnia**.
3. Haga clic en **Códigos de motivo**.
4. Realice una de las siguientes acciones:

* Para agregar un nuevo código de motivo, haga clic en **Nuevo**.
* Para editar un código de motivo existente, selecciónelo y haga clic en **Editar**.
* Para copiar un código de motivo existente, selecciónelo y haga clic en **Copiar**. Debe ingresar un nuevo **Descripción** y **Código**, pero todos los demás valores se copian.

5. Introduzca información sobre el código de motivo.

<details>

<summary><img src="/files/96cb7863918669fe3cf39b3a118a1fad4217f868" alt="" data-size="original"></summary>

<table><thead><tr><th width="250.4444580078125" valign="top">Campo</th><th valign="top">Descripción</th></tr></thead><tbody><tr><td valign="top">Código</td><td valign="top">Un código único, por ejemplo, un número o una abreviatura, que identifica el código de motivo.</td></tr><tr><td valign="top">Descripción</td><td valign="top">Una descripción del código de motivo.</td></tr><tr><td valign="top">Tipo</td><td valign="top">El tipo de código de motivo, por ejemplo, Sin venta.</td></tr><tr><td valign="top">Fecha de inicio</td><td valign="top">Si lo desea, seleccione una fecha de inicio para el código de motivo. Deje el campo en blanco si desea que el código de motivo esté activo de inmediato.</td></tr><tr><td valign="top">Fecha de fin</td><td valign="top">Si lo desea, seleccione una fecha de fin para el código de motivo. Deje el campo en blanco si no desea establecer una fecha de fin.</td></tr></tbody></table>

</details>

6. Haga clic en **Guardar y cerrar**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rmhpos.com/es/store-manager/configure-pos-and-store-manager/merchandising/setting-up-reason-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
