# Oran Tipi Düzenleme

Yeni bir oran tipi oluşturmanızı veya mevcut bir oran tipinin özelliklerini değiştirmenizi sağlar ve eklenen/düzenlenen oran tipinin kodunu döndürür.

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

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

| Parametre İsmi     | Tip    | Zorunlu | Açıklama                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------ | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ratio\_type**    | string | Hayır   | Düzenleyeceğiniz oran tipine ait oran kodu. Yeni oran tipi oluşturulmak isteniyorsa bu parametre gönderilmemelidir.                                                                                                                                                                                                                                                                                              |
| **description**    | string | Evet    | Tanımlayacağınız oran tipinin açıklaması.                                                                                                                                                                                                                                                                                                                                                                        |
| **is\_default**    | bool   | Hayır   | true/false, Default: false. Oran tipinin API tarafından varsayılan olarak kullanılıp kullanılmayacağını belirler.                                                                                                                                                                                                                                                                                                |
| **is\_cumulative** | bool   | Hayır   | true/false, Default: true. Oran hesaplama yöntemini belirler. Parametre "true" olarak gönderilirse oran hesaplama yöntemi "Sabit Fonlama Oranı" olarak seçilmiş olur ve girilen oranlar API'da Paynet oranlarının üstüne +/- olarak eklenerek kullanılır, "false" olarak gönderilirse oran hesaplama yöntemi "Gösterilecek Oran" olarak seçilmiş olur ve oran olarak girilen değerler aynen API'da görüntülenir. |
| {% endtab %}       |        |         |                                                                                                                                                                                                                                                                                                                                                                                                                  |

{% tab title="Dönüş Parametreleri" %}

| Parametre İsmi   | Tip    | Açıklama                                                                            |
| ---------------- | ------ | ----------------------------------------------------------------------------------- |
| **ratio\_code**  | string | Eklenen veya düzenlenen oran tipinin kodu.                                          |
| **object\_name** | string | Dönüş yapılan API’nin nesne adı.                                                    |
| **code**         | string | Dönüş sonucunun kodu.[Bknz](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | Dönüş sonuç kodunun açıklaması.                                                     |
| {% endtab %}     |        |                                                                                     |

{% tab title="Request" %}

```
{  
   "ratio_code":"S3E746PV",
   "description":"Oran tipi açıklaması",
   "is_default":false,
   "is_cumulative":true
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "ratio_code":"S3E746PV",
   "object_name":"ratio_set_type",
   "code":0,
   "message":"Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                               |
| ---------------- | ------------------------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr/v1/ratio/set_type>     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr/v1/ratio/set_type> |
| {% endtab %}     |                                                   |
| {% endtabs %}    |                                                   |


---

# Agent Instructions: 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:

```
GET https://doc.paynet.com.tr/uornek/servisler/oran/oran-tipi-duezenleme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
