> For the complete documentation index, see [llms.txt](https://piqpay.gitbook.io/merchant-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piqpay.gitbook.io/merchant-integration/ru/drugie-api-zaprosy/izmenenie-dannykh-ordera.md).

# Изменение данных ордера

Вы можете отправить API POST запрос на изменение данных ордера, если клиент перевел некорректную сумму (больше или меньше заявленной в ордере), перевел средства не на предоставленные реквизиты, в другой банк. Используя этот API запрос, вы также можете приложить чек к ордеру.

**Описание полей запроса**

**requisites** (array) - измененные реквизиты, на которые клиент произвел перевод:

instruction - PHONE или CARD\_NUMBER,

value - это сами измененные реквизиты;&#x20;

если реквизиты не менялись, то укажите в поле null;

**amount** (object) - измененная сумма, которую клиент перевел:

minorAmount - измененная сумма,&#x20;

currency - валюта перевода;&#x20;

если сумма не менялась, то укажите в поле null;

**receipt** (object) - данные чека:

data - чек в формате base64,&#x20;

contentType -  application/pdf или image/jpg,

name - название файла чека.

**Пример запроса на изменение данных ордера**

{% code overflow="wrap" %}

```json
POST https://eha.piqpay.codes/v1/orders/<order_id>/adjust
Authorization: Bearer ${secretKey}

{
    "requisites": null,
    "amount": {
        "minorAmount": 50000,
        "currency": "BDT"
    },
    "receipt": {
        "data":"MTIz",
        "contentType":"image/jpg",
        "name":"receipt"
    }
}

```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://piqpay.gitbook.io/merchant-integration/ru/drugie-api-zaprosy/izmenenie-dannykh-ordera.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.
