# Bayi Kontrol

Kontrol servisi bayi bilgilerini döner.

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

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

| Parametre İsmi         | Tip    | Zorunlu | Açıklama               |
| ---------------------- | ------ | ------- | ---------------------- |
| Bayi referans numarası | string | Evet    | Bayi referans numarası |
| {% endtab %}           |        |         |                        |

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

| Parametre İsmi    | Tip    | Açıklama                        |
| ----------------- | ------ | ------------------------------- |
| **company\_code** | string | Paynet ana firma kodu           |
| **agent\_id**     | string | Paynet bayi kodu                |
| **object\_name**  | string | Dönüş yapılan API'nin nesne adı |
| **code**          | string | Dönüş sonucunun kodu            |
| **message**       | string | Dönüş sonuç kodunun açıklaması  |
| {% endtab %}      |        |                                 |

{% tab title="Request" %}

```
"987345"
```

{% endtab %}

{% tab title="Response" %}

```
   { 
    "company_code": "10001",
    "agent_id": "600222",
    "object_name": "check_agent",
    "code": 0,
    "message": "Başarılı İşlem"
    }
    
```

{% endtab %}

{% tab title="Service Url" %}

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

{% hint style="danger" %}
İstek atarken direkt string olarak bayi referans numarası değerini göndermelisiniz. Request sekmesinden örnek requesti dikkate alarak istek atınız.&#x20;
{% endhint %}


---

# 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/bayi-kontrol.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.
