# 6. Transaction Inquiry

## Transaction Inquiry

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

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 - Transaction 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="227">Parameter</th><th width="100.33333333333331">Type</th><th width="142">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>merchantuniquecode</td><td>string</td><td>Yes</td><td>The unique tracking number you assigned to the transaction at the initiation.</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": {
        "PayoutConnectionId": 17,
        "PayoutProviderKey": "Vepara",
        "PayoutTransactionId": 117,
        "CurrencyId": 1,
        "MerchantUniqueCode": "506f3f67a7565f601b3c723a44109d5d",
        "UniqueCode": "24703936-fc2b-453f-bb71-f57cecb14a00",
        "Amount": 10.00,
        "Description": "testi",
        "ReceiverTitle": "test",
        "ReceiverIban": "TR370006400000111234567890",
        "ReceiverAccountNumber": null,
        "ChannelId": 1,
        "Channel": "API",
        "StatusId": 3,
        "Status": "Başarılı",
        "TypeId": 1,
        "Type": "Iban",
        "Ip": "123.123.123.123",
        "DateTime": "2023-09-02T21:36:54.8552362"
    }
}
```

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