# Kart Bilgisi Sıra Düzenleme

Düzenli ödemeye ait müşterinin kayıt ettiği kartlardan silme yapmak için kullanılan servistir. Kayıtlı bir kart var ise silmesine izin vermez.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/subscription/card_info_arrange>
{% endhint %}

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

| Parametre İsmi            | Tip    | Zorunlu | Açıklama                 |
| ------------------------- | ------ | ------- | ------------------------ |
| **subscription\_id**      | string | Evet\*  | Düzenli ödeme id'si      |
| **reference\_no**         | string | Evet\*  | Düzenli ödeme numarası   |
| **card\_information\[]**  | dizi   |         |                          |
| -> subscription\_card\_id | string | Evet    | Düzenli ödeme kart id'si |
| -> card\_id               | int    | Evet    | Kartın id'si             |
| -> order\_no              | string | Evet    | Sipariş numarası         |
| {% endtab %}              |        |         |                          |

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

| Parametre İsmi   | Tip    | Açıklama                        |
| ---------------- | ------ | ------------------------------- |
| **object\_name** | string | Dönüş yapılan API’nin nesne adı |
| **code**         | string | Dönüş sonucunun kodu            |
| **message**      | string | Dönüş sonuç kodunun açıklaması  |
| {% endtab %}     |        |                                 |

{% tab title="Request" %}

```
{
  "subscription_id": "2c13ed3f-4919-49bd-85b1-0f7183ccceda",
  "reference_no": "",
  "card_information": [
    {
      "subscription_card_id": 0,
      "card_id": 1808,
      "order_no": 1
    },
    {
      "subscription_card_id": 0,
      "card_id": 1806,
      "order_no": 2
    },
    {
      "subscription_card_id": 0,
      "card_id": 1801,
      "order_no": 3
    },
    {
      "subscription_card_id": 0,
      "card_id": 1799,
      "order_no": 4
    },
    {
      "subscription_card_id": 0,
      "card_id": 1800,
      "order_no": 5
    },
    {
      "subscription_card_id": 0,
      "card_id": 1800,
      "order_no": 6
    }
  ]
}
```

{% endtab %}

{% tab title="Response" %}

```
{
  "object_name": "subscription_card_info_arrange",
  "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_arrange>                                                                                                                                                                                                              |
| **Test Sistemi** | ​ [https://pts-api.paynet.com.tr​​\[/v1/subscription/card\\\_info\\\_arrange](https://doc.paynet.com.tr/uornek/servisler/abonelik/https:/pts-api.paynet.com.tr​​\[/v1/subscription/card\\_info\\_arrange)]\(<https://api.paynet.com.tr/v1/subscription/card_info_arrange>) |
| {% endtab %}     |                                                                                                                                                                                                                                                                            |
| {% endtabs %}    |                                                                                                                                                                                                                                                                            |

{% hint style="info" %}
\*subcription\_id veya reference\_no'dan en az birini göndermeniz gerekmektedir.&#x20;
{% endhint %}


---

# 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://doc.paynet.com.tr/uornek/servisler/abonelik/kart-bilgisi-sira-duezenleme.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.
