# OTP Kontrol

Kart saklama işlemlerinde OTP zorunluluğu var sa OTP gönderme servisinde oluşturulan kodun doğrulamasını 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. [Bknz](https://doc.paynet.com.tr/genel-bilgiler/hata-kodlari/doenues-kodlari) |
| **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://doc.paynet.com.tr/servisler/kart/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://doc.paynet.com.tr/servisler/kart/https:/pts-api.paynet.com.tr\[/v1/card/check\\_otp)]\(<https://api.paynet.com.tr/v1/card/check_otp>) |
| {% endtab %}     |                                                                                                                                                                                                      |
| {% endtabs %}    |                                                                                                                                                                                                      |
