> For the complete documentation index, see [llms.txt](https://doc.paynet.com.tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.paynet.com.tr/servisler/abonelik/kart-iliskilendirme.md).

# Kart İlişkilendirme

Yeni düzenli ödemenizle daha önce başka bir düzenli ödemeye eklemiş olduğunuz kartı ilişkilendirmek için kullanılan servistir.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/subscription/card\\_info\\_link\\_to\\_subscription>
{% endhint %}

{% tabs %}
{% tab title="İstek Parametreleri" %}

| Parametre ismi           | Tip    | Zorunlu | Açıklama                                                         |
| ------------------------ | ------ | ------- | ---------------------------------------------------------------- |
| **card\_id**             | string | Evet    | Kart ID'si                                                       |
| **subscription\_id**     | string | Evet\*  | Fatura ID                                                        |
| **reference\_no**        | string | Evet\*  | Fatura numarası                                                  |
| **group\_reference\_no** | string | Evet\*  | Birbiri ile ilişkilendirdiğiniz düzenli ödemelerin grup numarası |
| {% endtab %}             |        |         |                                                                  |

{% tab title="Dönüş Parametreleri" %}

| Parametre ismi     | Tip    | Açıklama                                                          |
| ------------------ | ------ | ----------------------------------------------------------------- |
| **Details\[]**     |        |                                                                   |
| ->subscription\_id | string | Fatura ID'si                                                      |
| ->reference\_no    | string | Fatura numarası                                                   |
| ->is\_succeed      | bool   | Kartın başarılı bir şekilde kaydedilip kaydedilmediğini belirtir. |
| ->message          | string | Dönüş sonuç açıklaması                                            |
| **Result Object**  |        |                                                                   |

{% endtab %}

{% tab title="Request" %}

```
{  
"card_id": 3965,
"reference_no":"123"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "details": [
        {
            "subscription_id": "480ceb4e-3c54-4b78-9ba2-4abb4d158f1a",
            "reference_no": "ref3",
            "is_succeed": true,
            "message": "Başarılı işlem."
        }
    ],
    "object_name": "card_info_link_to_subscription",
    "code": 0,
    "message": "Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                    |
| ---------------- | -------------------------------------------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/subscription/card\\_info\\_link\\_to\\_subscription>     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr/v1/subscription/card\\_info\\_link\\_to\\_subscription> |
| {% endtab %}     |                                                                                        |
| {% endtabs %}    |                                                                                        |

{% hint style="info" %}
**\*subscription\_id, reference\_no ve group\_reference\_no parametrelerinden en az biri gönderilmek zorundadır.**
{% endhint %}


---

# 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://doc.paynet.com.tr/servisler/abonelik/kart-iliskilendirme.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.
