# Tutar Güncelleme

Bu servis ile düzenli ödemenin ve ödemesi alınmamış taksitlerinin tutarını güncelleyebilirsiniz.

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

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

| Parametre İsmi      | Tip    | Zorunlu | Açıklama                                                                                                |
| ------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------- |
| **subcription\_id** | string | Evet\*  | Düzenli ödeme emri id                                                                                   |
| **reference\_no**   | string | Evet\*  | Düzenli ödeme emri referans numarası                                                                    |
| **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 İ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" %}

```
{  
   "reference_no":"90003272",
   "amount":"10220"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
"object_name":"subscription_amount_update",
"code":0,
"message":"Başarılı işlem"
} 
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                                                                                                                                                                                                                |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Canlı Sistem** | [https://api.paynet.com.tr/v1/subscription/amount\_update](https://api.paynet.com.tr/v1/subscription/subscription_amount_update)                                                                                                                                                   |
| **Test Sistemi** | <p><a href="https://pts-api.paynet.com.tr"><https://pts-api.paynet.com.tr​></a><a href="https://api.paynet.com.tr/v1/subscription/status_update">/v1/subscription/</a><a href="https://api.paynet.com.tr/v1/subscription/subscription_amount_update">amount\_update</a></p><p></p> |
| {% endtab %}     |                                                                                                                                                                                                                                                                                    |
| {% endtabs %}    |                                                                                                                                                                                                                                                                                    |

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