> For the complete documentation index, see [llms.txt](https://developer.esnekpos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esnekpos.com/hoppa-gelistirici-ortami/uye-isyeri-bakiye-sorgulama-servisi.md).

# Üye İşyeri Bakiye Sorgulama Servisi

**Üye İş Yeri Bakiye Sorgulama Servisi İstek Modeli;**

Bu servis ile birlikte üye iş yeri ve pazar yerleri için alt mağaza bakiye sorgulaması yapabilirsiniz.

<table><thead><tr><th width="97">Metod</th><th width="536.3333333333333">API URL</th><th>Parametreler</th></tr></thead><tbody><tr><td>POST</td><td>https://base-url/api/services/GetDealerBalance</td><td>JSON File</td></tr></tbody></table>

Servise gönderilmesi gereken parametreler şu şekildedir;

<table><thead><tr><th width="263">Parametre</th><th width="82">Tip</th><th width="86">Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>MERCHANT</td><td>string</td><td>Evet</td><td>Üye iş yerine özel oluşturulan eşsiz kimlik bilgisidir.</td></tr><tr><td>MERCHANT_KEY</td><td>string</td><td>Evet</td><td>Üye iş yerine özel oluşturulan anahtar bilgisidir.</td></tr><tr><td>CURRENCY</td><td>string</td><td>Evet</td><td>Sorgulanacak bakiyenin para birimidir.('TRY','USD','EUR')</td></tr><tr><td>DEALER_SUB_EXTERNAL_ID</td><td>string</td><td>Evet</td><td>Sorgulanacak alt mağazanın üye işyerinde bulunan kimlik bilgisidir. Pazaryeri bakiye sorgulaması için "DEALER_SUB_EXTERNAL_ID" parametresine mağazanın pazaryeri (merchant) tarafındaki ID bilgisini girmesi gerekmektedir.</td></tr></tbody></table>

Servise gönderilecek örnek bir JSON dosyası şu şekildedir;

```json
                                            
                                        
                                                
{
    "MERCHANT" : "TEST1234",
    "MERCHANT_KEY" : "4oK26hK8MOXrIV1bzTRVPA==",
    "CURRENCY" : "TRY",
    "DEALER_SUB_EXTERNAL_ID" : null
}
                                                
                                            
                                        
```

**Üye İş Yeri Bakiye Sorgulama Servisi Cevap Mesajı;**

Servisten işlem sonrasında gönderilen cevap mesajına ait parametreler şu şekildedir;

İşlem Listeleme Servisi Cevap Mesajı Parametreleri

<table><thead><tr><th width="205">Parametre</th><th width="101">Tip</th><th width="97">Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>STATUS</td><td>string</td><td>Evet</td><td>Durum bilgisidir.</td></tr><tr><td>RETURN_CODE</td><td>string</td><td>Evet</td><td>Bakiye sorgulama işlemi sonucu durumu kod bilgisidir.</td></tr><tr><td>RETURN_MESSAGE</td><td>string</td><td>Evet</td><td>Bakiye sorgulama işlemi sonucu durum mesaj bilgisidir.</td></tr><tr><td>DEALER_BALANCE</td><td>array</td><td>Evet</td><td>Bakiye sorgulaması sonucunda istenen detayların bulunduğu bir JSON dizisidir.</td></tr></tbody></table>

<br>

**DEALER BALANCE**

<table><thead><tr><th width="242">Parametre</th><th width="106">Tip</th><th width="112">Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>DEALER_SUB_ID</td><td>int</td><td>Evet</td><td>Alt üye iş yerine ait benzersiz kimlik bilgisidir.</td></tr><tr><td>DEALER_ID</td><td>int</td><td>Evet</td><td>Üye iş yerine ait benzersiz kimlik bilgisidir.</td></tr><tr><td>DEALER_TYPE</td><td>string</td><td>Evet</td><td>Üye iş yerinin tip bilgisidir.</td></tr><tr><td>MERCHANT</td><td>string</td><td>Evet</td><td>Üye iş yerine özel oluşturulan eşsiz kimlik bilgisidir.</td></tr><tr><td>DEALER_NAME</td><td>string</td><td>Evet</td><td>Üye iş yerine ait isim bilgisidir.</td></tr><tr><td>BALANCE</td><td>decimal</td><td>Evet</td><td>Bakiye miktarı bilgisidir.</td></tr><tr><td>CURRENCY</td><td>string</td><td>Evet</td><td>Para birimi bilgisidir.</td></tr><tr><td>DEPOSIT_BALANCE</td><td>decimal</td><td>Evet</td><td>Teminat bakiyesi bilgisidir.</td></tr><tr><td>CHARGEBACK_BALANCE</td><td>decimal</td><td>Evet</td><td>Ödeme itirazı bakiye bilgisidir.</td></tr><tr><td>TOTAL_BALANCE</td><td>decimal</td><td>Evet</td><td>Toplam bakiye bilgisidir.</td></tr></tbody></table>

```json
                                            
                                        

 {
    "STATUS": "SUCCESS",
    "RETURN_CODE": "0",
    "RETURN_MESSAGE": "SUCCESS",
    "DEALER_BALANCE": {
            "DEALER_SUB_ID": 0,
            "DEALER_ID": 1,
            "DEALER_TYPE": "UyeIsyeri",
            "MERCHANT": "TEST1234",
            "DEALER_NAME": "TEST A.Ş.",
            "BALANCE": 24187.2569,
            "CURRENCY": "TRY",
            "DEPOSIT_BALANCE": 0.00,
            "CHARGEBACK_BALANCE": 120.00,
            "TOTAL_BALANCE": 24187.2569
            }
 }
                                            
         
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.esnekpos.com/hoppa-gelistirici-ortami/uye-isyeri-bakiye-sorgulama-servisi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
