# Anexos

## Comando de facturas

Actualmente la facturación se puede ejecutar de manera manual a partir de un endpoint que está expuesto únicamente de manera interna del servidor, es decir que el endpoint que ejecuta la facturación sólo es accesible desde el mismo servidor.

El endpoint que ejecuta el proceso de facturación se encuentra en el contenedor de task, el cual contiene el proyecto de [inlaze\_task](https://github.com/sport-enlace-sas/inlaze-backend-task), al ejecutarlo generará una ejecución asíncrona mediante el sistema de colas del BULLMQ y se ejecutará.

Se cuentan con scripts de python que facilitan el llamado de esos endpoint internos, el script utilizado para facturación es el siguiente:

```python
import requests

url="https://task.inlaze.com/command/withdrawal-partner"
request_obj=requests.post(
    url=url,
)
request_obj.text
request_obj.status_code
```

Si toda la invocación del comando de facturación funciona correctamente entregará un status 200 o 204, recordar que tomará como día de creación de facturas el día actual.

### Documentación de tasa FX de Inlaze

[Tasa FX](/reportes/tasa-fx.md)

### Facturas en admin

{% file src="/files/bhaojDAp4BRGY2TQFGZG" %}


---

# 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://docs-affiliates.inlaze.com/reportes/facturacion/anexos.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.
