> 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/uornek/servisler/abonelik/duezenli-oedeme-faturalandirma.md).

# Düzenli Ödeme Faturalandırma

Eğer düzenli ödeme emri oluşturma servisinde “is\_fixed\_price” parametresini “false” gönderirseniz, kredi kartından çekilecek tutarı bu servis ile her defasında göndermelisiniz. Çekilecek tutarı göndermediğiniz durumda karttan belirtilen dönem için çekim yapılmaz. Bu yöntemi fatura ödemesi gibi değişken tutarlı ödemeleriniz için kullanabilirsiniz.

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

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

| Parametre İsmi       | Tip      | Zorunlu | Açıklama                      |
| -------------------- | -------- | ------- | ----------------------------- |
| **val\_date**        | datetime | Evet    | Çekileceği tarih              |
| **amount**           | decimal  | Evet    | Çekilecek tutar               |
| **subscription\_id** | string   | Evet\*  | Düzenli ödeme no              |
| **reference\_no**    | string   | Evet\*  | Müşteri referans no bilgisi   |
| **agent\_amount**    | decimal  | Hayır   | Bayiye aktarılacak tutar      |
| **company\_amount**  | decimal  | Hayır   | Ana firmaya aktarılacak tutar |
| **invoice\_no**      | string   | Hayır   | Fatura no                     |
| {% 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":"90000600",
   "company_amount":25972,
   "agent_amount":2926,
   "amount":28898,
   "currency":"TRY",
   "val_date":"03.10.2017 10:32:24",
   "invoice_no":"11400556"
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}

{% tab title="Service Url" %}

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

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