> 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/servisler/bayi/auto-login.md).

# Auto Login

odeme.paynet.com.tr sistemine api üzerinden otomatik giriş yapabilmenize olanak verir.

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

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

| Parametre İsmi | Tip    | Zorunlu | Açıklama                |
| -------------- | ------ | ------- | ----------------------- |
| **user\_name** | string | Evet    | Paynet kullanıcı adınız |
| **agent\_id**  | string | Evet    | Paynet bayi kodunuz     |
| {% endtab %}   |        |         |                         |

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

| Parametre İsmi   | Tip    | Açıklama                                                                       |
| ---------------- | ------ | ------------------------------------------------------------------------------ |
| **url**          | string | ödeme.paynet.com.tr hesabınıza otomatik login olmanızı sağlayacak url adresi   |
| **object\_name** | string | Dönüş yapılan API’nin nesne adı                                                |
| **code**         | string | Dönüş sonucunun kodu . [Bknz](/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | Dönüş sonuç kodunun açıklaması                                                 |
| {% endtab %}     |        |                                                                                |

{% tab title="Request" %}

```
{  
   "agent_id":"1001",
   "user_name":"paynet"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "url": "https://pts.paynet.com.tr",
    "object_name": "auto_login",
    "code": 0,
    "message": "Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                |
| ---------------- | -------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/agent/autologin>     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr/v1/agent/autologin> |
| {% endtab %}     |                                                    |
| {% endtabs %}    |                                                    |
