> 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/oedeme-metotlari/api-entegrasyonu-1/odeme.md).

# OTP Gönderme Servisi

Bu entegrasyon tipi, son kullanıcı bilgileri ile makbuz oluşturulacak kartlı işlemler için kullanılır ve ek güvenlik amacıyla SMS ile gönderilen OTP doğrulaması gerektirir. Bu akışta ödeme işleminden önce kullanıcıya bir doğrulama kodu gönderilir ve ödeme sırasında bu kod sisteme iletilir.

Ödeme servisinde göndereceğiniz otp kodunu bu servis aracılığıyla alabilirsiniz.

{% hint style="warning" %}
Ödeme servisini kullanabilmeniz için secret\_key ile basic authentication yapmalısınız. [Bakınız](/authentication.md#secret-key)
{% endhint %}

{% hint style="success" %}
<https://api.paynet.com.tr>/v2/agent/create\_end\_user\_receipt\_otp
{% endhint %}

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

| Parametre       | Tip    | Zorunlu | Açıklama                              |
| --------------- | ------ | ------- | ------------------------------------- |
| **phoneNumber** | string | Evet    | OTP gönderilecek cep telefonu numaras |
| {% endtab %}    |        |         |                                       |

{% tab title="Request" %}

```javascript
{
 "phoneNumber": "05XXXXXXXXX"
}

```

{% endtab %}

{% tab title="Response " %}

```javascript
 {
  "object_name": null,
  "code": 0,
  "message": "Sms gönderimi başarılı."
}

```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                  |
| ---------------- | -------------------------------------------------------------------- |
| **Canlı sistem** | <https://api.paynet.com.tr>/v2/agent/create\_end\_user\_receipt\_otp |
| **Test sistemi** | <https://pts-api.paynet.com.tr/v2/agent/create_end_user_receipt_otp> |
| {% endtab %}     |                                                                      |
| {% endtabs %}    |                                                                      |

###
