> For the complete documentation index, see [llms.txt](https://docs.tupayonline.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tupayonline.com/documentacion-de-la-api/conciliacion/logout.md).

# Logout

#### Descripción general

Este endpoint permite **consultar el balance actual del comercio** en la plataforma Tupay.\
El servicio retorna la información de saldos **por moneda**, incluyendo el **saldo total**, **saldo disponible**, y los **montos en proceso de liquidación**, lo que lo hace ideal para **conciliación financiera**, validaciones operativas y monitoreo de fondos.

La respuesta puede incluir uno o varios balances, dependiendo de la configuración del comercio (por ejemplo, múltiples monedas o tipos de cuenta).

#### Endpoint

<mark style="color:red;">`DELETE STAGING`</mark> [`https://merchants-api-stg.tupayonline.com/v1/auth/session/destroy`](https://merchants-api.tupayonline.com/v1/auth/session/destroy)

<mark style="color:red;">`DELETE PRODUCCION`</mark> [`https://merchants-api.tupayonline.com/v1/auth/session/destroy`](https://merchants-api.tupayonline.com/v1/auth/session/destroy)

#### Autenticación

El endpoint requiere autenticación mediante **headers de autorización** (por ejemplo, Bearer Token).\
El token enviado será invalidado al ejecutar la operación.

#### Consideraciones

* El cierre de sesión invalida inmediatamente el token activo.
* Cualquier intento de uso posterior del token retornará un error de autenticación.
* Se recomienda ejecutar este endpoint al finalizar la sesión del usuario o como parte de procesos de seguridad.
* Este endpoint no genera movimientos financieros ni afecta balances.


---

# 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.tupayonline.com/documentacion-de-la-api/conciliacion/logout.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.
