> 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/recurring-payment/7.-query-recurring-payment.md).

# 7. Query Recurring Payment

## Query Recurring Payment

<mark style="color:blue;">`GET`</mark> `{{Base Adres}}/api/paywall/recurring/query/payment`

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

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

<table><thead><tr><th width="162">Parameter</th><th width="115.1015625">Type</th><th width="138">Compulsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>The Public Key obtained from the merchant panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client obtained from the merchant panel.</td></tr><tr><td>subscriptionid</td><td>int</td><td>Yes</td><td>Sent by Paywall during membership creation and successful callbacks.</td></tr><tr><td>paymentid</td><td>int</td><td>Yes</td><td>The identifier of the payment in Paywall for the recurring payment made within the scope of the membership. It is conveyed within the callback, and you can confirm the payment from this service with the conveyed identifier.</td></tr></tbody></table>

**The parameters returned from the service are as follows:**

<table><thead><tr><th width="189">Parameter</th><th width="100.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Error code. If the transaction is successful, it returns '0'.</td></tr><tr><td>Result</td><td>bool</td><td>It returns either true or false. If the transaction is successful, it returns 'true'.</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>No details returned.</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "SubscriptionId": 2445347,
        "SubscriptionStatusType": 0,
        "PaymentSuccess": true,
        "SubscriptionMerchantCode": "OSKANR4664SDDH",
        "Payment": {
            "Id": 1680435,
            "CardOwnerName": "Emir Selim Tütüncü",
            "CardNumber": "453144******2283",
            "CurrencyId": 1,
            "InstallmentId": 1,
            "Amount": 110.00,
            "Activities": [
                {
                    "PaymentActivityId": 3313320,
                    "PaymentStatusId": 4,
                    "PaymentStatus": "Başarılı",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313319,
                    "PaymentStatusId": 2,
                    "PaymentStatus": "Başladı",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313318,
                    "PaymentStatusId": 8,
                    "PaymentStatus": "Ara İşlem",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313317,
                    "PaymentStatusId": 6,
                    "PaymentStatus": "PayJump",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313316,
                    "PaymentStatusId": 5,
                    "PaymentStatus": "Başarısız",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313315,
                    "PaymentStatusId": 2,
                    "PaymentStatus": "Başladı",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                },
                {
                    "PaymentActivityId": 3313314,
                    "PaymentStatusId": 1,
                    "PaymentStatus": "Oluşturuldu",
                    "PaymentActivityTypeId": 1,
                    "PaymentActivityType": "Satış"
                }
            ]
        }
    }
}
```

{% 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, and the optional `goal` query parameter:

```
GET https://developer.paywall.one/payment-orchestration-integration-document/recurring-payment/7.-query-recurring-payment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
