# OTP Gönderme

Üye işyeri kart saklama servislerinde OTP doğrulama yapması zorunlu ise bu servisi kullanarak ilgili numaraya (son kullanıcı) OTP kodu gönderimi yapar.

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

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

| Parametre İsmi       | Tip    | Zorunlu | Açıklama                                                                                                   |
| -------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------- |
| **user\_gsm**        | string | Evet    | OTP gönderilecek telefon numarası                                                                          |
| **otp\_session\_id** | string | Evet    | OTP ile ilişkilendirilecek benzersiz değer. Bu değer ile saklanacak kart bilgisi ilişkilendirmesi yapılır. |
| {% endtab %}         |        |         |                                                                                                            |

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

| Parametre İsmi  | Tip      | Açıklama                                                                                            |
| --------------- | -------- | --------------------------------------------------------------------------------------------------- |
| **otp\_expire** | datetime | OTP’nin expire olma zamanı, bu zamandan önce tekrar çalıştırılmamalı.                               |
| **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":"5xxxyyzz",
   "otp_session_id":"otp_session_id"
}

```

{% endtab %}

{% tab title="Response" %}

```
{  
   "otp_expire":"2017-07-17T15:30:15.0581408+03:00",
   "code":0,
   "message":"Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

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