# Transaction Slip

It is the service that allows you to use when you want to get a slip about your successful transactions. Opens the page where the "**url**" slip information returned in the return parameters can be displayed.

{% hint style="warning" %}
You should perform basic authentication with secret\_key to use transaction slip service. See more
{% endhint %}

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

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

| Parameter Name | Type   | Required | Description                                                                                                           |
| -------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------- |
| **xact\_id**   | string | Yes      | Encrypted Paynet Transaction Number.                                                                                  |
| **xact**       | string | No       | Paynet Transaction Number.                                                                                            |
| **email**      | string | No       | The e-mail address to which the slip is going to be sent. This field is required if the send\_mail parameter is true. |
| **send\_mail** | bool   | No       | Is email will be send?                                                                                                |
| **phone**      | string | No       | The phone number to which the slip is going to be sent. This field is required if the send\_sms parameter is true.    |
| **send\_sms**  | bool   | No       | Is sms will be send?                                                                                                  |
| {% 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.                                                                                       |
| **url**          | string | The url address that you can see your slip.                                                                    |
| {% endtab %}     |        |                                                                                                                |

{% tab title="Request" %}

```
{  
   "xact_id":"xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/ARIrakW/9476pYzEyta",
   "email":"mail@paynet.com.tr",
   "send_mail":"true"
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "url":"https://pts.paynet.com.tr/S/PaynetSlip?xact_id=xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/***********;companyCode=****&agentID=****",
   "object_name":"transaction_slip",
   "code":0,
   "message":"Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| System          | URL                                                  |
| --------------- | ---------------------------------------------------- |
| **Live System** | <https://api.paynet.com.tr/v1/transaction/slip>      |
| **Test System** | ​<https://pts-api.paynet.com.tr/v1/transaction/slip> |
| {% 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/transaction-slip.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.
