# 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](https://doc.paynet.com.tr/authentication#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 %}
