> For the complete documentation index, see [llms.txt](https://developer.paywall.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.paywall.one/payment-orchestration-integration-document/payout-service/6.-transaction-inquiry.md).

# 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>](/payment-orchestration-integration-document/environment.md)
{% 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 %}


---

# 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:

```
GET https://developer.paywall.one/payment-orchestration-integration-document/payout-service/6.-transaction-inquiry.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.
