# 3. Tekrarlı Sorgula

## Tekrarlı Ödeme Sorgula

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

{% hint style="info" %}
Önemli: **Tekrarlı Ödeme Kaydı Sorgulama** servisini kullanabilmeniz için 'Header' alanında '**apikeypublic**' ve '**apiclientpublic**' parametrelerini göndermeniz gerekmektedir.\
\
[<mark style="color:green;">**PaymentAPI Adresi**</mark>](/ortam.md)
{% endhint %}

<table><thead><tr><th width="282">Parametre</th><th width="79">Tip</th><th width="107">Zorunlu</th><th width="403">Açıklama</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Key.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Client.</td></tr><tr><td>subscriptionmerchantcode</td><td>string </td><td>Evet</td><td>Tekrarlı ödemeye verdiğiniz tekil takip numarası</td></tr></tbody></table>

**Servisten dönen parametreler şu şekildedir:**

<table><thead><tr><th width="189">Parametre</th><th width="100.33333333333331">Tip</th><th>Açıklama</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Hata kodu. İşlem başarılı ise '0' değerini döner.</td></tr><tr><td>Result</td><td>bool</td><td>True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner.</td></tr><tr><td>Message</td><td>string</td><td>İşlem hatalıysa, bu hataya dair belirtilen mesajdır</td></tr><tr><td>Body</td><td>nesne</td><td>Tekrarlı ödemenin detay bilgileri</td></tr></tbody></table>

**Servisten dönen parametreler şu şekildedir (Ödeme Detay):**

<table><thead><tr><th width="274">Parametre</th><th width="114.33333333333331">Tip</th><th>Açıklama</th></tr></thead><tbody><tr><td>Id</td><td>int</td><td>Tekrarlı ödeme kimlik bilgisi</td></tr><tr><td>CurrencyId</td><td>int</td><td>Tekrarlı ödeme para birimi</td></tr><tr><td>SubscriptionType</td><td>int</td><td>Tekrarlı ödeme tipi</td></tr><tr><td>SubscriptionCode</td><td>string</td><td>Paywall tarafından tekrarlı ödemeye atanan kod</td></tr><tr><td>SubscriptionMerchantCode</td><td>string</td><td>Sizin tarafınızdan tekrarlı ödemeye atanan kod</td></tr><tr><td>Amount</td><td>decimal</td><td>Tekrarlı ödemenin tutarı</td></tr><tr><td>CallbackUrl</td><td>string</td><td>Ödeme işlemleri sonrasında ödeme sonucunun POST atıldığı adres<br><br>bkz. <a href="/pages/d2AtkIXnzzRXGJGBClju"><strong>Post Body</strong></a></td></tr><tr><td>HasTrial</td><td>bool</td><td>Ödemeye deneme sürümünün uygulanıp uygulanmadığı</td></tr><tr><td>TrialDay</td><td>int</td><td>Ödemeye uygulanan deneme süresi (Gün)</td></tr><tr><td>RecurringPeriodType</td><td>int</td><td>Ödeme periot tipi</td></tr><tr><td>FailAttempt</td><td>int</td><td>Ödemenin başarısız olması durumunda kaç defa deneneceği</td></tr><tr><td>FailAttemptPendingHour</td><td>int</td><td>Ödemenin başarısız olması durumunda her bir başarısız deneme arasında beklenecek saat dilimi</td></tr><tr><td><strong>Card</strong>:CardCount</td><td>int</td><td>Ödemeye atanmış kayıtlı kart adedi</td></tr><tr><td><strong>Customer</strong>:Name</td><td>string</td><td>Ödemeye atanan müşteri adı</td></tr><tr><td><strong>Customer</strong>:Lastname</td><td>string</td><td>Ödemeye atanan müşteri soyadı</td></tr><tr><td><strong>Customer</strong>:Phone</td><td>string</td><td>Ödemeye atanan müşteri telefon numarası</td></tr><tr><td><strong>Customer</strong>:Email</td><td>string</td><td>Ödemeye atanan müşteri e-posta adresi</td></tr><tr><td><strong>Customer</strong>:Country</td><td>string</td><td>Ödemeye atanan müşteri ülke bilgisi</td></tr><tr><td><strong>Customer</strong>:City</td><td>string</td><td>Ödemeye atanan müşteri şehir bilgisi</td></tr><tr><td><strong>Customer</strong>:Address</td><td>string</td><td>Ödemeye atanan müşteri adres bilgisi</td></tr><tr><td><strong>Customer</strong>:IdentityNumber</td><td>string</td><td>Ödemeye atanan müşteri kimlik bilgisi</td></tr><tr><td><strong>Items</strong>:Type</td><td>int</td><td>Ödemeye konu olan satışın tipi</td></tr><tr><td><strong>Items</strong>:Name</td><td>string</td><td>Ödemeye konu olan satışın adı</td></tr><tr><td><strong>Items</strong>:Amount</td><td>decimal</td><td>Ödemeye konu olan satışın tutarı </td></tr><tr><td><strong>Jobs</strong>:RecurringDateTime</td><td>DateTime</td><td>Ödemeye ait görevin gerçekleşeceği tarih</td></tr><tr><td><strong>Jobs</strong>:IsComplete</td><td>bool</td><td>Ödemeye ait görevin tamamlanma durumu</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Id": 22,
        "CurrencyId": 1,
        "SubscriptionType": 1,
        "SubscriptionCode": "c6035cb4-85b0-43b7-b104-9295ce66a246",
        "SubscriptionMerchantCode": "test2merchantcode",
        "Amount": 110.00,
        "CallbackUrl": "https://webhook.site/8d70cb8e-fe1b-478b-8ee3-823870549ef2",
        "HasTrial": false,
        "TrialDay": 0,
        "RecurringPeriodType": 4,
        "FailAttempt": 3,
        "FailAttemptPendingHour": 1,
        "Card": {
            "CardCount": 1
        },
        "Customer": {
            "Name": "Jogni",
            "Lastname": "Kivi",
            "Phone": "5554433212",
            "Email": "kivijogni@paywall.one",
            "Country": "Turkey",
            "City": "Istanbul",
            "Address": "Heaven",
            "IdentityNumber": "11111111110"
        },
        "Items": [
            {
                "Type": 1,
                "Name": "Gold Package",
                "Amount": 110.00
            }
        ],
        "Jobs": [
            {
                "RecurringDateTime": "2023-08-22T18:00:00",
                "IsComplete": false
            }
        ],
        "InsertDateTime": "2023-07-22T18:16:37.865576",
        "IsActive": true
    }
}
```

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


---

# Agent Instructions: 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/tekrarli-odeme-servisi/3.-tekrarli-sorgula.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.
