# Auto Login&#x20;

It allows you to automatically log in to odeme.paynet.com.tr system via API.

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

{% tabs %}
{% tab title="Request Parameters" %}

| Parameter Name | Type   | Required | Description       |
| -------------- | ------ | -------- | ----------------- |
| **user\_name** | string | Yes      | Paynet user name  |
| **agent\_id**  | string | Yes      | Paynet agent code |
| {% endtab %}   |        |          |                   |

{% tab title="Respone Parameters" %}

| Parameter Name   | Type   | Description                                                                                                 |
| ---------------- | ------ | ----------------------------------------------------------------------------------------------------------- |
| **url**          | string | The URL address that will allow you to automatically log in to your odeme.paynet.com.tr account             |
| **object\_name** | string | Object name of the returned API                                                                             |
| **code**         | string | The code of the return result. [See](https://doc.paynet.com.tr/genel-bilgiler/hata-kodlari/doenues-kodlari) |
| **message**      | string | Description of the return result code                                                                       |
| {% 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" %}

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