# CRM

## Impresion

{% openapi src="/files/vdUuToS06hEoHKzI9YHw" path="/api/documento/(tipo)/impresion/{id}" method="get" %}
[unaiPruebaGet.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2FqdOgHsSLgDGlIHUhaSbL%2FunaiPruebaGet.yaml?alt=media\&token=fe49eb85-4ec9-4901-8b2a-72ebf1f3e71d)
{% endopenapi %}

## Eliminacion de linias

{% openapi src="/files/t7RFiWHxvUCpviXWnv9J" path="/api/documento/(tipo)/{id}/linea/{numlin}" method="delete" %}
[EliminacionDeLineas.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2FldXgsQorUfHXdoYkgUh8%2FEliminacionDeLineas.yaml?alt=media\&token=099d6975-45ef-4731-abdd-4aa872c8001b)
{% endopenapi %}

## Acciones

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/acciones" method="get" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/filtro/(filtro)" method="get" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/order/(order)" method="get" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/filtro/(filtro)/order/(order)" method="get" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

Con estos endpoints podremos consultar los datos de las acciones de A3 que necesitemos. Los datos a mostrar los obtiene mediante la vista Api\_Acciones

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/acciones/crear" method="post" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

Solamente los parámetros en negrita son obligatorios. El campo TipoAccion debe tener uno de los siguientes valores: Tarea, Cita ó Email. Si no se asigna FechaPrevista u HoraPrevista, toma por defecto la fecha y hora en que se realiza la llamada al endpoint; Si ponemos un IsContacto, el email lo tomará de ese contacto, aunque le indiquemos el parámetro email, tomará el del contacto. El parámetro texto hace referencia al Asunto de la acción.

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/acciones/modificar/{idaccion}" method="put" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}

El campo TipoAccion no se puede usar, ya que no se puede modificar.

{% openapi src="/files/faDIIohqvJVzqRs6nyek" path="/api/crm/acciones/borrar/{idaccion}" method="delete" %}
[acciones.yaml](https://4077647765-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sOtLXdM9Nln6L8P8MBe%2Fuploads%2Fgr6tsJrgfUstNHCKyTBc%2Facciones.yaml?alt=media\&token=67bc7753-a975-471e-a89e-922d92915531)
{% endopenapi %}


---

# Agent Instructions: 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:

```
GET https://a3erpapi.appcloud.es/novedades-api-interno/crm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
