# 3.1.OTP Gönderme Servisi

Ü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                                                  |
| **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/uornek/servisler/kart-saklama/3.oedeme-almadan-kart-verisi-kaydetme/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/uornek/servisler/kart-saklama/3.oedeme-almadan-kart-verisi-kaydetme/https:/pts-api.paynet.com.tr\[/v1/card/send\\_otp)]\(<https://api.paynet.com.tr/v1/card/send_otp>) |
| {% endtab %}     |                                                                                                                                                                                                                                                        |
| {% endtabs %}    |                                                                                                                                                                                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.paynet.com.tr/uornek/servisler/kart-saklama/3.oedeme-almadan-kart-verisi-kaydetme/untitled-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
