> 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/plan-tutar-guencelleme.md).

# Plan Tutar Güncelleme

Düzenli ödemenize ait oluşan planlarınızdan tutarını değiştirmek istediğiniz plan için bu servis kullanılır.

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

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

| Parametre ismi       | Tip    | Zorunlu | Açıklama                                                                                                |
| -------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------- |
| **subscription\_id** | string | Evet\*  | Düzenli ödeme ID'si                                                                                     |
| **reference\_no**    | string | Evet\*  | Düzenli ödeme referans numarası                                                                         |
| **plan\_id**         | string | Evet    | Düzenli ödemede oluşan plan ID'si                                                                       |
| **amount**           | string | Evet    | Düzenli ödeme tutarı.Tutar 100 ile çarpılmış olmalıdır. “10 TL” => “1000” olarak gönderilmeli.          |
| **agent\_amount**    | string | Hayır   | Bayiye aktarılacak tutar.Tutar 100 ile çarpılmış olmalıdır. “10 TL” => “1000” olarak gönderilmeli.      |
| **company\_amount**  | string | Hayır   | Ana firmaya aktarılacak tutar.Tutar 100 ile çarpılmış olmalıdır. “10 TL” => “1000” olarak gönderilmeli. |
| {% endtab %}         |        |         |                                                                                                         |

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

| Parametre ismi  | Tip | Açıklama |
| --------------- | --- | -------- |
| **Result Info** |     |          |

{% endtab %}

{% tab title="Request" %}

```
{
"reference_no": "referenceno",
"amount":15000,
"plan_id":18092,
"agent_amount":10000,
"company_amount":5000
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "object_name": "subscription_plan_amount_update",
    "code": 0,
    "message": "Tutar güncellendi"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                    |
| ---------------- | ---------------------------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/subscription/plan\\_amount\\_update>     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr/v1/subscription/plan\\_amount\\_update> |

{% endtab %}
{% endtabs %}

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