> 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/oedeme-methodlari/ortak-oedeme-sayfasi/oedeme-emri-olusturma/get-methodu.md).

# GET Methodu

Get methodu üzerinden ödeme emri oluşturmak için authentication, size vermiş olduğumuz public key üzerinden sağlanmaktadır. POST methodunda kullanılan tüm parametreler bu servisde de kullanılabilmektedir.

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

| Parametre İsmi                | Tip     | Zorunlu | Açıklama                                                                                                                                                              |
| ----------------------------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **public\_key**               | string  | Evet    | Sisteme authentication olmayı sağlar.                                                                                                                                 |
| **pos\_type**                 | int     | Hayır   | Paynet’in pos’ları mı yoksa Firma’nın kendi pos’ları mı kullanılacak onu belirle. Default olarak Paynet pos’ları çalışır.                                             |
| **addcomission\_to\_amount**  | bool    | Hayır   | Komisyon tutarının kredi kartından çekilecek tutara eklenip eklenmeyeceğini belirler. Default true.                                                                   |
| **agent\_id**                 | string  | Hayır   | Ödeme firmanın bir bayisinin carisine aktarılacak ise bu alanda bayinin bayi kodu gönderilir. Bayi tanımının Paynet sisteminde tanımlı olması gerekir.                |
| **name\_surname**             | string  | Evet    | Ödeme alınacak kişinin adı soyadı                                                                                                                                     |
| **user\_name**                | string  | Hayır   | Ödeme emri oluşturan kullanıcı bilgisi, zorunlu değildir.                                                                                                             |
| **amount**                    | decimal | Evet    | Ödeme tutarı                                                                                                                                                          |
| **expire\_date**              | double  | Hayır   | Ödeme URL’inin geçerlilik süresini belirlemek için kullanılır. Saat olarak gönderilir. 72 saat geçerlilik süresi için 72 olarak gönderilir.                           |
| **note**                      | string  | Hayır   | Ödeme sayfasında ödeme yapacak kişiye gösterilecek açıklama.                                                                                                          |
| **agent\_note**               | string  | Hayır   | Ödeme işlemi yapıldığında raporlarda görünecek açıklama bilgisi.                                                                                                      |
| **reference\_no**             | string  | Hayır   | Ödeme işleminin ilişkilendirileceği referans numarası, Fatura no, sipariş no gibi.                                                                                    |
| **succeed\_url**              | string  | Hayır   | İşlem başarılı ise bu parametrede gönderilen url’e yönlendirme yapılır. Boş olarak gönderilirse Paynet’in default ödeme sonuç sayfası gösterilir.                     |
| **error\_url**                | string  | Hayır   | İşlem başarısız ise bu parametrede gönderilen url’e yönlendirme yapılır. Boş olarak gönderilirse Paynet’in default ödeme başarısız sayfası gösterilir.                |
| **confirmation\_url**         | string  | Hayır   | Eğer işlem başarılı ise burada belirtilen url’e aşağıda confirmation\_url adresine post edilen parametreler’de belirtiğimiz parametreler json formatında post edilir. |
| **send\_confirmation\_email** | bool    | Hayır   | Default true, Ana firmanın Paynet’te tanımlı mail adresine ödeme başarılı ise mail gönderir.                                                                          |
| **multi\_payment**            | bool    | Hayır   | Default true. Ödemeyi birden fazla kart ile yapmasına olanak tanıyor.                                                                                                 |
| {% endtab %}                  |         |         |                                                                                                                                                                       |

{% tab title="Request" %}

```
{  
public_key=pbk_pcs_Z3ABiIZq0kjTgfP37MGVQof32muAg 
name_surname=onurozdemir 
amount=15 
email=ornek_mail@arena.com.tr 
expire_date=48
}
```

{% endtab %}

{% tab title="Service Url" %}

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


---

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

```
GET https://doc.paynet.com.tr/uornek/oedeme-methodlari/ortak-oedeme-sayfasi/oedeme-emri-olusturma/get-methodu.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.
