> 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/oedeme-metotlari/ortak-odeme-sayfasi/paylink-detay.md).

# PayLink Detay

Oluşturulan PayLink'lerin detayına bu servis ile erişebilirsiniz.

{% hint style="warning" %}
Bu servisi kullanmak  için secret\_key ile basic authentication yapmalısınız. [Bakınız](/authentication.md#secret-key)
{% endhint %}

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

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

<table data-header-hidden><thead><tr><th>Parametre İsmi</th><th width="96">Tip</th><th>Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>Parametre İsmi</td><td>Tip</td><td>Zorunlu</td><td>Açıklama</td></tr><tr><td><strong>id</strong></td><td>string</td><td>Evet*</td><td>Ödeme emrine ait id</td></tr><tr><td><strong>reference_no</strong></td><td>string</td><td>Evet*</td><td>Ödeme emrine ait referans numarası</td></tr></tbody></table>
{% endtab %}

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

| Parametre İsmi               | Tip     | Açıklama                                                                                                                                                                                                        |
| ---------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **company\_code**            | string  | Ana firma kodu                                                                                                                                                                                                  |
| **agent\_id**                | string  | Paynet bayi kodu                                                                                                                                                                                                |
| **xact\_id**                 | string  | İşlem id'si (Tek kart)                                                                                                                                                                                          |
| **reference\_no**            | string  | Ödeme emrine ait referans numarası                                                                                                                                                                              |
| **email**                    | string  | Ödeme emrinin gönderileceği email adresi                                                                                                                                                                        |
| **user\_name**               | string  | Ödeme emri oluşturulan kullanıcı bilgisi                                                                                                                                                                        |
| **name\_surname**            | string  | Ödeme alınacak kişinin adı soyadı bilgisi                                                                                                                                                                       |
| **amount**                   | decimal | Ödeme tutarı                                                                                                                                                                                                    |
| **currency**                 | string  | Ödeme para birimi                                                                                                                                                                                               |
| **installment**              | int     | Taksit sayısı                                                                                                                                                                                                   |
| **phone**                    | string  | Ödeme emrinin SMS ile bilgilendirilmesi için SMS'in gönderileceği telefon numarası                                                                                                                              |
| **bank\_id**                 | string  | Müşterinizin sadece belirli bir banka kartı ile işlem yapmasını sağlayabilirsiniz.                                                                                                                              |
| **expire\_date**             | string  | Ödeme URL'inin geçerlilik süresini belirlemek için kullanılır.                                                                                                                                                  |
| **create\_date**             | string  | Ödeme emri oluşturulma tarihi                                                                                                                                                                                   |
| **note**                     | string  | Ödeme sayfasında ödeme yapacak kişiye gösterilen açıklama                                                                                                                                                       |
| **agent\_note**              | string  | Ödeme işlemi yapıldığında raporlarda görünen açıklama bilgisi                                                                                                                                                   |
| **succeed\_url**             | string  | İşlem başarılı ise bu parametrede gönderilen url’in sonuna işlem numarası(xact\_id) parametresini ekleyerek yönlendirme yapılır. Boş olarak gönderilirse Paynet’in default ödeme sonuç sayfası gösterilir.      |
| **error\_url**               | string  | İşlem başarısız ise bu parametrede gönderilen url’in sonuna işlem numarası(xact\_id) parametresini ekleyerek yönlendirme yapılır. Boş olarak gönderilirse Paynet’in default ödeme başarısız sayfası gösterilir. |
| **confirmation\_url**        | string  | 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                                            |
| **bank\_name**               | string  | Banka adı                                                                                                                                                                                                       |
| **status**                   | char(1) | 0:ODEME\_BEKLENIYOR 1:ODEME\_ALINDI 2:SURE\_ASIMI 3:PASIF\_EDILDI                                                                                                                                               |
| **send\_confirmation\_mail** | string  | Ana firmanın Paynet’te tanımlı mail adresine ödeme başarılı ise mail gönderir                                                                                                                                   |
| **send\_sms**                | bool    | Ödeme emrinin SMS ile gönderilip gönderilmeyeceğini belirler                                                                                                                                                    |
| **send\_mail**               | bool    | Ödeme emrinin mail ile gönderilip gönderilmeyeceğini belirler.                                                                                                                                                  |
| **multi\_payment**           | bool    | Ödemeyi birden fazla kart ile yapmasına olanak tanıyor.                                                                                                                                                         |
| **payments**                 | List\[] | Birden fazla kart ile ödeme geçildiğinde işlem id'lerini döner                                                                                                                                                  |
| => id                        | int     | Id                                                                                                                                                                                                              |
| => xact\_id                  | string  | Çoklu kart ile geçilen her işlemin id'si                                                                                                                                                                        |
| **object\_name**             | string  | Dönüş yapılan API'nin nesne adı                                                                                                                                                                                 |
| **code**                     | int     | Sistem sonuç kodu                                                                                                                                                                                               |
| **message**                  | string  | Sistem mesajı                                                                                                                                                                                                   |
| {% endtab %}                 |         |                                                                                                                                                                                                                 |

{% tab title="Request" %}

```
{  
   "id":"c1c4f41c-3d8c-4143-a2dc-114e587fd1b3"
}

```

{% endtab %}

{% tab title="Response " %}

```

{
    "company_code": "1001",
    "agent_id": "1001",
    "xact_id": "xk_EAAAAK/JIGdb8*YgktzPs0xXs8BL1CXjQb*lxa52PRksw3pJ",
    "reference_no": "",
    "email": "info@paynet.com.tr",
    "user_name": "          ",
    "name_surname": "O*** Ö******",
    "amount": 120,
    "currency": "TL",
    "installment": 0,
    "phone": "539560****",
    "bank_id": "",
    "expire_date": "2019-10-18T21:46:17.71",
    "create_date": "2019-10-18T09:46:17.717",
    "note": "",
    "agent_note": "test",
    "succeed_url": "",
    "error_url": "",
    "confirmation_url": "",
    "bank_name": "",
    "status": 0,
    "send_confirmation_mail": false,
    "send_sms": false,
    "send_mail": false,
    "multi_payment": true,
    "payments": [
        {
          "xact_id": "xk_EAJGFKK/xk9lA3bE8cR2dZ5eP6fG7hI4jK1*45ghhghfgGHF",
          "id": 5435
        }
    ],
    "object_name": null,
    "code": 0,
    "message": null
}
```

{% endtab %}

{% tab title="Service URL" %}

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

{% hint style="info" %}
**id** ve **reference\_no** alanlarından en az biri zorunludur.
{% 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/oedeme-metotlari/ortak-odeme-sayfasi/paylink-detay.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.
