# 8. Bin Sorgula

## Bin Sorgula

<mark style="color:blue;">`GET`</mark> `{{Base Adres}}/api/paywall/bin/inquiry`

Yukarıda verilmiş olan adrese istek atmanız yeterli olacaktır. Test ortamı ve Gerçek ortam için 'Base Address' istediğiniz gibi kullanabilirsiniz.

{% hint style="info" %}
Önemli: **Bin sorgulama** servisini kullanabilmeniz için 'Header' alanında '**apikeypublic**' ve '**apiclientpublic**' parametrelerini göndermeniz gerekmektedir.\
\
[<mark style="color:green;">**PaymentAPI Adresi**</mark>](/ortam.md)
{% endhint %}

{% hint style="success" %}
Paywall Bin sorgulama servisi hem 8 hane hem de 6 hane Bin sorgulama desteği sağlamaktadır
{% endhint %}

<table><thead><tr><th width="192">Parametre</th><th width="102">Tip</th><th width="108">Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Key.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Client.</td></tr><tr><td>binnumber</td><td>string</td><td>Evet</td><td>Ödeme'nin gerçekleştirilmek istendiği kartın hem ilk 8'i hem de ilk 6 hanesi gönderilebilir</td></tr></tbody></table>

**Servisten dönen cevap:**

<table><thead><tr><th width="156">Parametre</th><th width="83.33333333333331">Tip</th><th>Açılama</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Hata kodu. İşlem başarılı ise '0' değerini döner.</td></tr><tr><td>Result</td><td>bool</td><td>True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner</td></tr><tr><td>Message</td><td>string</td><td>İşlem hatalıysa, bu hataya dair belirtilen mesajdır.</td></tr><tr><td>Body</td><td>object</td><td>Taksit seçeneği varsa dolu yoksa boş döner</td></tr></tbody></table>

{% tabs %}
{% tab title="Json" %}
{% code overflow="wrap" lineNumbers="true" %}

```json5
{
    "ErrorCodeType": 1,
    "ErrorMessage": null,
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "BinNumber": "51691401",
        "CardBankId": 75,
        "CardBank": "DENİZBANK A.Ş.",
        "CardBrandId": 1,
        "CardBrand": "Master Card",
        "CardFamilyId": null,
        "CardFamily": null,
        "CardKindId": 1,
        "CardKind": "Bireysel Kart",
        "CardTypeId": 2,
        "CardType": "Debit",
        "IsMatchedByEightDigitBin": true, // Bin numarası 8 hane ile eşleşti
        "IsMatchedBySixDigitBin": false // Bin numarası 6 hane ile eşleşti
    }
}
```

{% endcode %}
{% 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://developer.paywall.one/odeme-servisi/8.-bin-sorgula.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.
