# Login

Login servisi doğrulama sonucunda bayi ve kullanıcı bilgilerini döner.

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

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

| Parametre İsmi    | Tip    | Zorunlu | Açıklama                                       |
| ----------------- | ------ | ------- | ---------------------------------------------- |
| **user\_name**    | string | Evet    | Paynet kullanıcı adınız                        |
| **password**      | string | Evet    | Paynet şifreniz                                |
| **agent\_id**     | string | Evet    | Paynet bayi kodunuz                            |
| **pushtoken\_id** | string | Evet    | Device ID                                      |
| **company\_code** | string | Hayır   | Ana firma kodu opsiyonel olarak gönderilebilir |
| **os\_type**      | string | Hayır   | Cihazın işletim sistemi                        |
| **device\_type**  | string | Hayır   | Cihazın modeli                                 |
| {% endtab %}      |        |         |                                                |

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

| Parametre İsmi                      | Tip    | Açıklama                                               |
| ----------------------------------- | ------ | ------------------------------------------------------ |
| **session\_key**                    | string | Paynet API servislerinde kullanabileceğiniz key değeri |
| **expired\_date**                   | string | sessionKey değerinin son kullanma tarihi               |
| **logo\_url**                       | string | Paynet sisteminde kayıtlı logo url                     |
| **agent\_id**                       | string | Bayi kodu                                              |
| **user\_name**                      | string | Kullanıcı adı                                          |
| **user\_id**                        | string | Kullanıcı kodu                                         |
| **user\_email**                     | string | Kullanıcı mail adresi                                  |
| **user\_phone**                     | string | Kullanıcı telefon numarası                             |
| **company\_code**                   | string | Ana firma kodu                                         |
| **company\_desc**                   | string | Ana firma adı                                          |
| **agent\_name**                     | string | Bayi adı                                               |
| **adress1**                         | string | Bayi adres1                                            |
| **adress2**                         | string | Bayi adres2                                            |
| **county\_code**                    | string | Bayi il kodu                                           |
| **county\_name**                    | string | Bayi il adı                                            |
| **city\_code**                      | string | Bayi ilçe kodu                                         |
| **city\_name**                      | string | Bayi ilçe adı                                          |
| **zip\_code**                       | string | Bayi posta kodu                                        |
| **email**                           | string | Bayi mail adresi                                       |
| **phone**                           | string | Bayi telefon                                           |
| **tax\_office**                     | string | Paynet sistemlerinde kayıtlı vergi dairesi             |
| **tax\_id**                         | string | Paynet sistemlerinde kayıtlı vergi numarası            |
| **sector\_id**                      | string | Sektör kodu                                            |
| **referans\_no**                    | string | Referans numarası                                      |
| **segment\_id**                     | string | Paynet sistemlerinde kayıtlı segment kodu              |
| **segment\_text**                   | string | Paynet sistemlerinde kayıtlı segment adı               |
| **is\_agent\_blocked**              | bool   | Bayi blokaj durumu                                     |
| **is\_agent\_deleted**              | bool   | Bayi çıkarılma durumu                                  |
| **is\_activ**                       | bool   | Bayi aktiflik durumu                                   |
| **is\_select\_customer**            | bool   | Ana firma ya da ara toptan bayilerini belirtir         |
| **is\_company**                     | bool   | Login olan bayi ana firma mı?                          |
| **is\_multi\_login**                | bool   | Çoklu login mi?                                        |
| **TransactionAuthorization**        | bool   | Ödeme İşlemi yapabilir                                 |
| **ReportAuthorization**             | bool   | İşlem listesini görme                                  |
| **MasterUserAuthorization**         | bool   | MASTER kullanıcı                                       |
| **AllUserReportAuthorization**      | bool   | Diğer kullanicilarin islemlerini Görme                 |
| **ReverseTransactionAuthorization** | string | İptal / İade Yapabilir                                 |
| **RecurringPayment**                | bool   | Tekrarlı ödeme                                         |
| **BulkRecurringPayment**            | bool   | Tekrarlı ödeme hacmi                                   |
| **PaynetLink**                      | bool   | Ödeme emri                                             |
| **BulkPaynetLink**                  | bool   | Ödeme emri hacmi                                       |
| **AgentReportAuthorization**        | bool   | Bayi işlem listesini görme                             |
| **object\_name**                    |        |                                                        |
| **code**                            | string | Dönüş sonucunun kodu                                   |
| **message**                         | string | Dönüş sonuç kodunun açıklaması                         |
| **company\_list**                   | string | Ana firma listesi                                      |
| {% endtab %}                        |        |                                                        |

{% tab title="Request" %}

```
{  
   "agent_id":"Bayi Kodunuz",
   "user_name":"Kullanıcı Adınız",
   "password":"Şifreniz"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "userAuthorizationContainer": {
        "TransactionAuthorization": false,
        "ReportAuthorization": true,
        "MasterUserAuthorization": false,
        "AllUserReportAuthorization": true,
        "ReverseTransactionAuthorization": true,
        "RecurringPayment": false,
        "BulkRecurringPayment": true,
        "PaynetLink": true,
        "BulkPaynetLink": true,
        "AgentReportAuthorization": false
    },
    "session_key": "mbl_pcs_Dh0wLE6/10hu0*we7WbtQZd/7JGqycrH",
    "expired_date": "2020-05-03",
    "logo_url": "https://pts-statics.paynet.com.tr/img/agentlogo/1001/logo1940235788.png",
    "agent_id": "1001",
    "user_name": "A*** D***",
    "user_id": "paynet",
    "user_email": "mail@paynet.com.tr",
    "user_phone": "545*****95",
    "company_code": "1001",
    "company_desc": "PAYNET ÖDEME HİZMETLERİ A.Ş.",
    "agent_name": "PAYNET ÖDEME HİZMETLERİ A.Ş.",
    "adress1": " ",
    "adress2": " ",
    "county_code": "34",
    "county_name": "İSTANBUL",
    "city_code": "",
    "city_name": "İSTANBUL",
    "zip_code": " ",
    "email": null,
    "phone": "0212 4447729",
    "tax_id": " ",
    "tax_office": " ",
    "sector_id": "0000",
    "referans_no": "",
    "segment_id": "",
    "segment_text": "Paynet PF Grubu",
    "is_agent_blocked": false,
    "is_agent_deleted": false,
    "is_activ": false,
    "is_company": true,
    "is_select_customer": true,
    "is_multi_login": false,
    "agentUserPreferences": {
        "ApprovedCardAuth": "false",
        "LogoUrl": "https://pts-statics.paynet.com.tr/img/agentlogo/1001/logo.png"
    },
    "menu_options": [
        {
            "company_code": "1001",
            "agent_id": "1001",
            "user_name": "",
            "sort_number": "1",
            "name": "pay",
            "text": "Ödeme Al",
            "menu_type": 1,
            "id": 1
        },
        {
            "company_code": "1001",
            "agent_id": "1001",
            "user_name": "",
            "sort_number": "2",
            "name": "report",
            "text": "Işlemler",
            "menu_type": 1,
            "id": 2
        },
        {
            "company_code": "1001",
            "agent_id": "1001",
            "user_name": "",
            "sort_number": "3",
            "name": "limit_notation",
            "text": "Limit Gösterimi",
            "menu_type": 1,
            "id": 3
        },
        {
            "company_code": "1001",
            "agent_id": "1001",
            "user_name": "",
            "sort_number": "4",
            "name": "paynet_link",
            "text": "Ödeme Emri Gönder",
            "menu_type": 1,
            "id": 4
        }
    ],
    "company_list": null,
    "object_name": "login",
    "code": 0,
    "message": "Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                              |
| ---------------- | ------------------------------------------------ |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/agent/login>       |
| **Test Sistemi** | <https://pts-api.paynet.com.tr​​/v1/agent/login> |
| {% 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/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.
