> For the complete documentation index, see [llms.txt](https://docs.payvalida.com/api-cashout-redes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payvalida.com/api-cashout-redes/cashout-redes-english/reverse.md).

# Reverse

Reverse a cashout transaction. This method allows the cash network to make an automatic reverse.&#x20;

{% hint style="warning" %}
&#x20;This method has a limit of **50 seconds** since its registration.
{% endhint %}

{% hint style="info" %}
Method: **PATCH**
{% endhint %}

{% hint style="success" %}
**Production:** <https://api.payvalida.com/cashout/v1/transaction/{netname}/{idtransaction}>

**Sandbox:** <https://api-test.payvalida.com/cashout/v1/transaction/{netname}/{idtransaction}>
{% endhint %}

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

<table><thead><tr><th width="163">Name</th><th width="108">Required</th><th width="201">Description</th><th width="137">Type</th><th>Length</th></tr></thead><tbody><tr><td>netcode</td><td>Yes</td><td>Network code</td><td>Numeric</td><td>20</td></tr><tr><td>transaction</td><td>Yes</td><td>Transaction ID (unique)</td><td>Alphanumeric</td><td>50</td></tr><tr><td>checksum</td><td>Yes</td><td>Checksum encoded with SHA512(name + transaction + FIXED_HASH)</td><td>Alphanumeric</td><td>512</td></tr></tbody></table>
{% endtab %}

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

> curl -i -X PATCH\
> &#x20;       -H "Content-Type:application/json"\
> &#x20;       -d '{
>
> &#x20;           “transaction”: ”1500003”,
>
> &#x20;           "checksum": "SHA512CHECKSUM...",
>
> &#x20;           "netcode": 180
>
> &#x20;   }' <https://api-test.payvalida.com/cashout/v1/transactions/redEjemplo/1500003>
> {% endtab %}

{% tab title="Response" %}

<table><thead><tr><th width="198">Nombre</th><th width="347.66666666666663">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td>code</td><td>Indicates the resulting code, “0000” means result with no error, any other value indicates the error code.</td><td>Alphanumeric</td></tr><tr><td>text</td><td>Contains the detailed message associated with the code.</td><td>Alphanumeric</td></tr><tr><td>data</td><td>Contains the transaction’s data (when there’s no error)</td><td>Object</td></tr><tr><td>data-transaction</td><td>Transaction confirmation as sent by the network</td><td>Alphanumeric</td></tr><tr><td>data-checksum</td><td>Checksum encoded with SHA512(transaction + FIXED_HASH)</td><td>Alphanumeric</td></tr><tr><td>data-netcode</td><td>Network code</td><td>Alphanumeric</td></tr></tbody></table>

{% endtab %}

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

> {\
> &#x20;       "code":"0000",
>
> &#x20;       “text”:”OK”,
>
> &#x20;       "data":{\
> &#x20;               “transaction”: ”1500003”,
>
> &#x20;               “netcode”: ”180”,\
> &#x20;               "checksum":"71ff0ca3ffa49f0d13c7de5c661c6f8fddcab38004a195718e3d2..."&#x20;
>
> &#x20;       }
>
> }
> {% endtab %}
> {% endtabs %}

{% hint style="info" %}
Reversing a transaction is supported as long as the endpoint is consumed within 30 seconds after the transaction is initially registered.
{% endhint %}
