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

# Fatura Durum Güncelleme

Yapılacak ödeme kayıtlarının durumlarını değiştiren servistir.&#x20;

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

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

| Parametre İsmi  | Tip    | Zorunlu | Açıklama                                              |
| --------------- | ------ | ------- | ----------------------------------------------------- |
| **invoice\_id** | string | Evet\*  | Fatura ID                                             |
| **invoice\_no** | string | Evet\*  | Fatura 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            |
| **message**      | string | Dönüş sonuç kodunun açıklaması  |
| {% endtab %}     |        |                                 |

{% tab title="Request" %}

```
{  
   "invoice_id":"",
   "invoice_no":"11400505",
   "status":4
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}

{% tab title="Service Url" %}

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

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