> 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/uornek/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](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | Dönüş sonuç kodunun açıklaması                                                        |
| {% endtab %}     |        |                                                                                       |

{% tab title="Request" %}

```
{  
   "agent_id":"54280",
   "user_name":"PaynetApi"
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "url":"https://pts.paynet.com.tr/Account/PaynetAgentGate?al=EAAAALUbFZV0GZ3yLrGyYPDQEqeuVR%2fzQjelGe7J2fvecUODByB%2bFxqnEBlgWJb0WJUemFc0kvZ04%2bmLtMwsM1YblUc%3d",
   "object_name":null,
   "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 %}    |                                                    |
