# Eliminar token

{% hint style="success" %}
**Producción:** [**https://api.payvalida.com/v4/tokenizacion**](https://api-test.payvalida.com/v4/tokenizacion)
{% endhint %}

{% hint style="success" %}
**Sandbox:** [**https://api-test.payvalida.com/v4/tokenizacion**](https://api-test.payvalida.com/v4/tokenizacion)
{% endhint %}

## &#x20;<img src="/files/-MQjNsvIvHREK4TpstyV" alt="" data-size="original">&#x20;

### Parámetros en formato JSON en el cuerpo de la petición DELETE.

{% tabs %}
{% tab title="Request" %}

| Campo        | Requerido |     Tipo     | Descripción                                                                       |
| ------------ | :-------: | :----------: | --------------------------------------------------------------------------------- |
| merchantId   |     si    | Alfanumérico | Nombre identificador del comercio.                                                |
| token        |     si    | Alfanumérico | Token a borrar                                                                    |
| checksum     |     si    | Alfanumérico | Checksum formado de la siguiente manera: SHA512(merchantId + token + fixed\_hash) |
| {% endtab %} |           |              |                                                                                   |

{% tab title="Request (ejemplo)" %}

```javascript
{
	"merchantId": "mi_comercio",
	"checksum": "573ADFB03SF9F6ADECCAAD5B849BE246D63039E06630C745EF652642B7E5151EC5486F9F53D24B9AF266B1CD3C3C452E8C7AD35CA6586B37B70CD73",
  "token": "12345678901234"
}
```

{% endtab %}

{% tab title="Response (ejemplo)" %}

```go
{
    "CODE": "0000",
    "TEXT": "OK"
}
```

{% endtab %}
{% endtabs %}

{% hint style="success" %}
Las respuestas satisfactorias tienen **CODE == "0000"**. Cualquier otro código representa un error descrito en **TEXT**.
{% endhint %}


---

# 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.payvalida.com/api-tarjeta/master/transaccion/eliminar-token.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.
