> 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/duzenli-odeme-durum-guncelleme.md).

# Durum Güncelleme

Bu servis ile aktif durumda olan bir düzenli ödeme emrini durdurabilir, durdurulmuş bir düzenli ödemeyi aktif duruma çekebilirsiniz.

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

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

| Parametre İsmi       | Tip    | Zorunlu | Açıklama                                                                   |
| -------------------- | ------ | ------- | -------------------------------------------------------------------------- |
| **subscription\_id** | string | Evet\*  | Düzenli ödeme emri id                                                      |
| **reference\_no**    | string | Evet\*  | Düzenli ödeme emri referans numarası                                       |
| **status**           | int    | Evet    | Güncellenmek istenen durum. [Bknz](/genel-bilgiler/veri-tipleri/status.md) |
| {% 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",
   "status":3
}
```

{% endtab %}

{% tab title="Response" %}

```
{
"object_name":"subscription_status_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/status_update>                                                                  |
| **Test Sistemi** | <https://pts-api.paynet.com.tr​>[/v1/subscription/status\_update](https://api.paynet.com.tr/v1/subscription/status_update) |
| {% endtab %}     |                                                                                                                            |
| {% endtabs %}    |                                                                                                                            |

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