> 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/h2h-host-to-host-integraciya/inr/sozdanie-vyvoda.md).

# Создание вывода

PIQPAY позволяет выводить INR, используя следующие методы: PMC\_S2P\_IMPS.

{% hint style="info" %}
В ДЕВ среде  вы можете протестировать создание вывода по методу PMC\_S2P\_IMPS. Также вы можете протестировать получение коллбэков для выводов по статусам CREATED, CANCELLED.
{% endhint %}

Для создания вывода по этому методу вам нужно отправить POST запрос, в теле которого указываются следующие параметры.

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

**apiKey** - API ключ, который вы создали для своего бренда (Secret Key указывается в заголовке запроса);

**amount** - сумму ордера и валюта ордера (пример суммы: 1000 INR = 100000 minorAmount);

**paymentMethod** - метод оплаты вывода (список доступных методов вы найдете в разделе "Методы: ордер и вывод");

**clientId** - уникальный идентификатор пользователя в вашей системе;

**externalId** - уникальный идентификатор ордера в вашей системе;

**callbackUrl** (не обязательное поле) - URL адрес, на который будут приходить коллбэки (оповещения) при создании ордера и изменении его статуса;&#x20;

**requisites** - данные получателя (вашего клиента), которые он указал в форме вывода на вашем сайте:

LEGAL\_NAME - имя получателя платежа,

BANK\_NAME - название банка получателя  (подробнее в разделе “Справочник банков”),,

IFSC\_CODE - идентификатор, который указывает где находится счет клиента,

ACCOUNT\_NUMBER - номер счета в IMPS

**Пример запроса на создания вывода по методу PMC\_S2P\_IMPS**

```json
POST https://eha.piqpay.codes/v1/payouts
Authorization: Bearer ${secretKey}

{
    "apiKey":"<API_KEY>",
    "externalId":"123456789",
    "clientId":"123456789",
    "paymentMethod":"PMC_S2P_IMPS",
    "amount":{"currency":"INR","minorAmount":500000},
    "requisites":[
        {"instruction":"LEGAL_NAME","value":"ASIF ALI KHANJP"},
        {"instruction":"ACCOUNT_NUMBER","value":"10087395287"} ,
        {"instruction":"BANK_NAME","value":"IDFC first bank"},
        {"instruction": "IFSC_CODE", "value": "IDFB0080184"}]
}
```

После отправки API запроса на создание вывода, вы получите ответ от нашего сервера (пример ниже). Как только ваша заявка на вывод будет оплачена, вы получите коллбэк со статусом COMPLETED (смотрите раздел «Коллбэк»).

Если после отправки API запроса вы получите ошибку, то обратитесь к разделу "[Ошибки](/merchant-integration/ru/dopolnitelnaya-informaciya/oshibki.md)".

<details>

<summary>Пример ответа на запрос создания вывода</summary>

```json
{ "id": "021fc6f7-051e-4ae0-9a05-e3cb3b36c2d5",
    "createdAt": "2026-02-16T14:38:37.140Z",
    "merchant": {
        "id": "8481fd2a-16f3-45cf-8eb0-7de1285d518a",
        "name": "NewNik",
        "picture": null
    },
    "store": {
        "id": "d8440d52-25a5-4e8e-907d-3d73dd3763a8",
        "name": "Best",
        "country": "RU",
        "picture": null
    },
    "externalId": "1234546d667d8d9",
    "clientId": "1234567d6dd789",
    "amount": {
        "minorAmount": 500000,
        "currency": "INR"
    },
    "exchangedAmount": null,
    "requisites": [
        {
            "instruction": "LEGAL_NAME",
            "value": "ASIF ALI KHAN J P"
        },
        {
            "instruction": "ACCOUNT_NUMBER",
            "value": "10087395287"
        },
        {
            "instruction": "BANK_NAME",
            "value": "IDFC first bank"
        },
        {
            "instruction": "IFSC_CODE",
            "value": "IDFB0080184"
        }
    ],
    "paymentMethod": {
        "code": "PMC_S2P_IMPS",
        "instructions": [
            "ACCOUNT_NUMBER",
            "LEGAL_NAME"
        ]
    },
    "readyForPaymentAt": null,
    "processingSince": "2026-02-16T14:38:37.186Z",
    "reason": null,
    "state": "PROCESSING",
    "settledAt": null,
    "assignedAt": null,
    "expiredAt": null,
    "redirectUrl": null,
    "failureUrl": null,
    "cancelUrl": null
}
```

</details>


---

# 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/h2h-host-to-host-integraciya/inr/sozdanie-vyvoda.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.
