# 7. Account Inquiry

## Transaction Inquiry

<mark style="color:blue;">`GET`</mark> `{{Base Address}}/api/paywall/payout/verify/account/identity`

Simply send a request to the provided address. You can use the 'Base Address' as you wish for both the testing and production environments.

{% hint style="info" %}
**Important**: In order to use the Payout - Account Inquiry service, you need to send the '**apikeyprivate**' and '**apiclientprivate**' parameters in the 'Header' field.

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

**The header information that needs to be sent to the service is as follows:**

<table><thead><tr><th width="194">Parameter</th><th width="103.33333333333331">Type</th><th width="135">Compulsory</th><th>Description</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Yes</td><td>The Private Key obtained from the merchant panel.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Yes</td><td>The Private Client obtained from the merchant panel.</td></tr><tr><td>providerkey</td><td>string</td><td>Yes</td><td>The key information for the provider you want to query and is associated with your account.</td></tr><tr><td>currencyid</td><td>int</td><td>Yes</td><td>Currency</td></tr><tr><td>identity</td><td>string</td><td>Yes</td><td>The identification information to be used for the search operation</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>Body</td><td>object</td><td>Optional JSON containing details about the balance information.</td></tr><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 value of 'true' or 'false'. Returns 'true' if the transaction is successful.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction fails, this is the message specified for the error, providing language support according to the locale parameter.</td></tr></tbody></table>

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

```json5
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "ProviderConnectedId": 46,
        "ProviderId": 3,
        "ProviderKey": "ProviderKey",
        "CurrencyId": 1,
        "AccountDetail": {
            "AccountExists": true,
            "UserIdentity": "2342324-63b1-47ea-9da6-12312312313",
            "Firstname": "En***",
            "Lastname": "Tü***",
            "PersonalIdentity": "111***111",
            "AccountNumber": "1234567899"
        }
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
