> For the complete documentation index, see [llms.txt](https://docs.tarlanpayments.kz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tarlanpayments.kz/platezhnyi-shlyuz/vspomogatelnye-metody/podtverzhdenie-spisaniya-sredstv.md).

# Подтверждение списания средств

{% hint style="info" %}
Данный метод можно использовать только при [двухстадийном платеже](/platezhnyi-shlyuz/welcom/process-dvukhstadiinogo-platezha.md).
{% endhint %}

<mark style="color:green;">`POST`</mark> `https://prapi.tarlanpayments.kz/transaction/api/v1/system/two-stage/charge`

#### Headers

| Name                                            | Type   | Description                                                                                         |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer  Авторотационный хэш (см [Формирование подписи](/platezhnyi-shlyuz/formirovanie-podpisi.md)) |

#### Request Body

| Name                                              | Type    | Description                                                      |
| ------------------------------------------------- | ------- | ---------------------------------------------------------------- |
| transaction\_id<mark style="color:red;">\*</mark> | Integer | Идентификатор транзакции, по которой необходимо сделать списание |
| amount<mark style="color:red;">\*</mark>          | Float   | Сумма транзакции                                                 |

{% tabs %}
{% tab title="200: OK " %}

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

```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```json
{
    "status": false,
    "status_code": 5406,
    "message": "invalid project secret",
    "result": {}
}
```

{% endtab %}
{% endtabs %}

{% code fullWidth="true" %}

```bash
curl --location 'https://prapi.stage-tarlanpayments.kz/transaction/api/v1/system/two-stage/charge' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sign' \
--data '{
  "transaction_id": 999,
  "amount": 100
}'

```

{% endcode %}
