# PayLink Durum Güncelleme

Oluşturulan PayLink'lerin durum güncellemesini bu servis ile yapabilirsiniz.

{% 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/status\\_update>
{% endhint %}

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

<table data-header-hidden><thead><tr><th width="187">Parametre İsmi</th><th width="91">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><tr><td><strong>status</strong></td><td>int</td><td>Evet</td><td>Ödeme emrinin güncellenecek yeni durumu. <br>0 : Ödeme bekleniyor, 3 : Pasif </td></tr></tbody></table>
{% endtab %}

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

| Parametre İsmi   | Tip    | Açıklama                        |
| ---------------- | ------ | ------------------------------- |
| **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",
   "status" : 3
}

```

{% endtab %}

{% tab title="Response " %}

```

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

{% endtab %}

{% tab title="Service URL" %}

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

{% hint style="info" %}
**id** ve **reference\_no** alanlarından en az biri zorunludur.
{% endhint %}


---

# 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/oedeme-metotlari/ortak-odeme-sayfasi/paylink-durum-guncelleme.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.
