> 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/kart-saklama/3.oedeme-almadan-kart-verisi-kaydetme/3.2.otp-kontrol-servisi-v1-card-check_otp.md). Agents can also search and read this documentation through its [MCP server](https://doc.paynet.com.tr/~gitbook/mcp).

# 3.2.OTP Kontrol Servisi

v1/card/check\_otp

Kart saklama işlemlerinde OTP zorunluluğu var ve send otp servisinde oluşturulan kodu check\_otp servisi ile doğrulama yapar.

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

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

| Parametre İsmi       | Tip    | Zorunlu | Açıklama                                                                   |
| -------------------- | ------ | ------- | -------------------------------------------------------------------------- |
| **otp\_code**        | string | Evet    | Son kullanıcının send\_otp servisinde parametre olarak gönderilen numarası |
| **otp\_session\_id** | string | Evet    | OTP ile ilişkilendirilecek benzersiz değer.                                |
| **user\_gsm**        | string | Evet    | 5XXXXXXXXX formatında OTP doğrulaması yapılacak gsm no.                    |
| {% endtab %}         |        |         |                                                                            |

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

| Parametre İsmi | Tip    | Açıklama                       |
| -------------- | ------ | ------------------------------ |
| **code**       | string | Dönüş sonucunun kodu           |
| **message**    | string | Dönüş sonuç kodunun açıklaması |
| {% endtab %}   |        |                                |

{% tab title="Request" %}

```
{  
   "user_gsm":"5324818942",
   "otp_session_id":"123456",
   "otp_code":"ART2"
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                                   |
| ---------------- | ----------------------------------------------------------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr[/v1/card/check\\_otp>]\(<https://api.paynet.com.tr/v1/card/check_otp>)     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr[/v1/card/check\\_otp>]\(<https://api.paynet.com.tr/v1/card/check_otp>) |
| {% endtab %}     |                                                                                                       |
| {% endtabs %}    |                                                                                                       |
