# Refund

<mark style="color:green;">`POST`</mark> `https://prapi.tarlanpayments.kz/refund/api/v1/system/refund/partial`

#### Headers

| Name                                            | Type   | Description                                        |
| ----------------------------------------------- | ------ | -------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Auto-rotation hash (see Signature Creating) |

#### Request Body

| Name                                              | Type    | Description                          |
| ------------------------------------------------- | ------- | ------------------------------------ |
| amount<mark style="color:red;">\*</mark>          | Integer | Refunded amount                      |
| transaction\_id<mark style="color:red;">\*</mark> | Integer | Transaction ID in the payment system |

{% tabs %}
{% tab title="200: OK Example of a successful response" %}

```json
{
    "status": true,
    "message": "Success",
    "result": "success"
}
```

{% endtab %}

{% tab title="500: Internal Server Error Example of an error response" %}

```json
{
    "status": false,
    "status_code": 5103,
    "message": "transaction not found",
    "result": {}
}
```

{% endtab %}
{% endtabs %}

```bash
curl --location 'prapi.tarlanpayments.kz/refund/api/v1/system/refund/partial' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sign' \
--data '{
    "amount": 10,
    "transaction_id": "refund"
}'
```


---

# 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://docs.tarlanpayments.kz/eng/acquiring/supplementary-methods/refund.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.
