# Upload Signature

This service is used for upload the signature image in base64 format as the transaction confirmation data for your successful transactions that have been paid for.

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

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

| Parameter Name       | Type   | Required | Description                               |
| -------------------- | ------ | -------- | ----------------------------------------- |
| **xact\_id**         | string | Yes      | Paynet transaction number.                |
| **pars\_base64**     | string | Yes      | Converted format of image data to base64. |
| **pars\_file\_name** | string | No       | Name of the image data.                   |
| {% 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",
   "pars_base64":"İmza datasının base64'lü hali"
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}

{% tab title="Service Url" %}

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


---

# 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/english/transaction/upload-signature.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.
