# Диспут

Если необходимо загрузить чек, то следует использовать инструкцию по загрузке чека

{% content-ref url="/pages/wJdpzvrCdI7H0qnJ0Ejk" %}
[Загрузка чека](/firekassa-api-v2/transactions/zagruzka-cheka.md)
{% endcontent-ref %}

Если же в качестве доказательства платежа используется хэш траззакции или ссылка, то используете слелующее апи:

## Метод запроса <a href="#metod-zaprosa" id="metod-zaprosa"></a>

POST

## Урл запроса <a href="#url-zaprosa" id="url-zaprosa"></a>

/api/v2/transactions/{id}/proof-of-payment

### Параметры запроса

#### **Путь (Path) параметры:**

<table><thead><tr><th width="116">Название</th><th width="80" data-type="checkbox">Обяз.</th><th width="201">Формат</th><th>Описание</th></tr></thead><tbody><tr><td>id</td><td>true</td><td>string(1-200)</td><td>Идентификатор транзакции</td></tr></tbody></table>

#### **Тело запроса (Form Data):**

На вход принимаются следующие параметры

<table><thead><tr><th width="116">Название</th><th width="80" data-type="checkbox">Обяз.</th><th width="201">Формат</th><th>Описание</th></tr></thead><tbody><tr><td>hash</td><td>true</td><td>string (3-2048)</td><td>Ссылка на подтверждение оплаты или hash</td></tr></tbody></table>

## Пример запроса

{% tabs %}
{% tab title="Curl" %}

```sh
curl --location 'https://{{your_api_domain}}/api/v2/transactions/{id}/proof-of-payment'
--header 'Authorization: Bearer {{your_api_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "hash": "1234"
}'
```

{% endtab %}

{% tab title="PHP+Guzzle" %}

```php
$httpClient = new \GuzzleHttp\Client();

$response = $httpClient->post('https://{{your_api_domain}}/api/v2/transactions/{id}/proof-of-payment', [
    'json' => [
        'hash'   => '1234',
    ],
    'headers' => [
        'Authorization' => 'Bearer ' . $yourApiToken,
    ]
]);
```

{% endtab %}
{% endtabs %}

## Пример успешного ответа

**Код ответа:** `201 Created`

```json
{
    "message": "Proof of payment received."
}
```

После получения доказательства платежа, транзакция будет переведена в статус "Спор"


---

# 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://fkassa.gitbook.io/firekassa-api-v2/transactions/disput.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.
