> For the complete documentation index, see [llms.txt](https://doc.paynet.com.tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.paynet.com.tr/uornek/servisler/iptal-iade/oen-otorizasyon-iptal.md).

# Ön Otorizasyon İptal

&#x20;Ön otorizasyonlu yapılan kredi kartı işlemlerinin iptali için kullanılır.

{% hint style="info" %}
&#x20;Ödeme servisini kullanabilmeniz için secret\_key ile basic authentication yapmalısınız. [bnkz](https://doc.paynet.com.tr/~/drafts/-LVM8pMcgdJBFmKMmegC/primary/authentication#secret-key).
{% endhint %}

{% hint style="success" %}
<https://api.paynet.com.tr/v1/transaction/preauth_reversal>
{% endhint %}

{% tabs %}
{% tab title="İstek Parametreleri" %}

| Parametre İsmi | Tip          | Zorunlu | Açıklama      |
| -------------- | ------------ | ------- | ------------- |
| **xact\_id**   | string (100) | Evet    | İşlemin id'si |
| {% endtab %}   |              |         |               |

{% tab title="Dönüş Parametreleri" %}

| Parametre İsmi   | Tip    | Açıklama                                                                                       |
| ---------------- | ------ | ---------------------------------------------------------------------------------------------- |
| **object\_name** | string | Dönüş yapılan API'nin nesne adı                                                                |
| **code**         | string | Sistem sonuç kodu bknz.[Dönüş Kodları](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | Sistem mesajı                                                                                  |
| {% endtab %}     |        |                                                                                                |

{% tab title="Request" %}

```
{  
   "xact_id":"xk_EAAAANFhOW7SioFxO8LHPMruxp0hX3wE8NmJSmGUD*W3uISj"
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "object_name":"transaction_preauth_reversed_request",
   "code":0,
   "message":"Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                              |
| ---------------- | ---------------------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/transaction/preauth_reversal>      |
| **Test Sistemi** | ​<https://pts-api.paynet.com.tr/v1/transaction/preauth_reversal> |
| {% endtab %}     |                                                                  |
| {% endtabs %}    |                                                                  |
