# 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 %}    |                                                    |


---

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