> 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/servisler/bayi/bayi-kontrol.md).

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