# 8. Check BIN

## Check BIN

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

Sending a request to the provided address above will be sufficient. You can use the 'Base Address' as you wish for both the test environment and the real environment.

{% hint style="info" %}
**Important**: In order to use the query service, you need to send the '**apikeypublic**' and '**apiclientpublic**' parameters in the 'Header' field.<br>

[<mark style="color:green;">**PaymentAPI Address**</mark>](https://developer.paywall.one/payment-orchestration-integration-document/environment)
{% endhint %}

<table><thead><tr><th width="192">Parameter</th><th width="102">Type</th><th width="139">Compulsory</th><th>Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>The Public Key you have obtained from the merchant panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client you have obtained from the merchant panel.</td></tr><tr><td>binnumber</td><td>string</td><td>Yes</td><td>The first 6 digits of the card for which the payment is to be made.</td></tr></tbody></table>

**Response returned from the service:**

<table><thead><tr><th width="156">Parameter</th><th width="83.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Error code. Returns '0' if the transaction is successful.</td></tr><tr><td>Result</td><td>bool</td><td>Returns a true or false value. It returns 'true' if the transaction is successful.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is unsuccessful, this is the specified error message.</td></tr><tr><td>Body</td><td>object</td><td>It returns full if there is an installment option, and empty if not.</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 %}
