> 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/toplu-fatura-durum-guncelleme.md).

# Toplu Fatura Durum Güncelleme

Bir düzenli ödemeye ait tüm ödeme kayıtlarının durumlarını değiştiren servis. invoice\_status\_update içerisindeki kuralların aynısı kayıt başına burada da uygulanır.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/subscription/invoices_status_update_all>
{% 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 referans numarası                       |
| **status**           | int    | Evet    | 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. [Bknz](/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | Dönüş sonuç kodunun açıklaması                                                |
| {% endtab %}     |        |                                                                               |

{% tab title="Request" %}

```
{
    "subscription_id": 68bdfa37-65cd-4481-b14a-90aa731ccf3b,
    "status":4
 }
```

{% endtab %}

{% tab title="Response" %}

```
{
"object_name":"subscription_invoices_status_update_all",
"code":0,
"message":"Başarılı Islem"
} 
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem        | URL                                                                                                                                                                                                                                                                                              |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Canlı Sistem  | ​<https://api.paynet.com.tr/v1/subscription/invoices_status_update_all>                                                                                                                                                                                                                          |
| Test Sistemi  | ​[https://pts-api.paynet.com.tr​\[/v1/subscription/invoices\\\_status\\\_update\\\_all](https://doc.paynet.com.tr/servisler/abonelik/https:/pts-api.paynet.com.tr​\[/v1/subscription/invoices\\_status\\_update\\_all)]\(<https://api.paynet.com.tr/v1/subscription/invoices_status_update_all>) |
| {% endtab %}  |                                                                                                                                                                                                                                                                                                  |
| {% endtabs %} |                                                                                                                                                                                                                                                                                                  |

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