# Adding Transaction Information

It is used for add or update your e-mail, phone, reference code and note about your transactions after payment is received.

{% hint style="warning" %}
You should perform basic authentication with secret\_key to use adding transaction information service. [See more](https://doc.paynet.com.tr/authentication#secret-key)
{% endhint %}

{% hint style="success" %}
<https://api.paynet.com.tr/v1/transaction/add\\_info>
{% endhint %}

{% tabs %}
{% tab title="Request Parameters" %}

| Parameter Name       | Type   | Required | Description                                        |
| -------------------- | ------ | -------- | -------------------------------------------------- |
| **xact\_id**         | string | Yes      | Paynet Transaction Number.                         |
| **note**             | string | No       | Note information about payment.                    |
| **email**            | string | No       | Email information about payment.                   |
| **phone**            | string | No       | Phone Information about payment.                   |
| **agent\_reference** | string | No       | Dealer Reference Number Information about payment. |
| **reference\_no**    | string | No       | Reference Number to associate.                     |
| {% endtab %}         |        |          |                                                    |

{% tab title="Response Parameters" %}

| Parameter Name   | Type   | Description                                                                                                    |
| ---------------- | ------ | -------------------------------------------------------------------------------------------------------------- |
| **object\_name** | string | The object name of response API.                                                                               |
| **code**         | string | The code of response result. [See more](https://doc.paynet.com.tr/genel-bilgiler/hata-kodlari/doenues-kodlari) |
| **message**      | string | Response result message.                                                                                       |
| {% endtab %}     |        |                                                                                                                |

{% tab title="Request" %}

```
{  
   "xact_id":"xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/ARIrakW/9476pYzEyta",
   "note":"note alanı",
   "phone":"1111111111",
   "email":"mail@mail.comı",
   "agent_reference":"agent_reference alanı"
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}

{% tab title="Service Url" %}

| System          | URL                                                        |
| --------------- | ---------------------------------------------------------- |
| **Live System** | <https://api.paynet.com.tr/v1/transaction/add\\_info>      |
| **Test System** | ​<https://pts-api.paynet.com.tr/v1/transaction/add\\_info> |
| {% endtab %}    |                                                            |
| {% endtabs %}   |                                                            |
