> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.paynet.com.tr/uornek/servisler/abonelik/duezenli-oedeme-faturalandirma.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
