> 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/hpp-integraciya/sozdanie-ordera-depozit.md).

# Создание ордера (депозит)

Кроме POST запроса на создание ордера (H2H интеграция), вы можете использовать GET запрос. Ответом на GET запрос оздания ордера будет страница с реквизитами для оплаты ордера.

**Для создания ордера в строке GET запроса указываются следующий параметры:**

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

**amount** - сумму ордера и валюта ордера;

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

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

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

**clientAccount** (только для валют PKR, EGP) - номер телефона клиента в национальном формате (для Пакистана начинается с 03, для Египта начинается с 01);

**clientInstitution** (не обязательное поле) (только для метода PMC\_S2P\_XSBP, PMC\_S2P\_WALLET, PMC\_S2P\_FPX) - название банка (список доступных приложений вы найдете в разделе "Справочник банков");

**clientName** (только для метода PMC\_S2P\_ACCOUNT) - официальное имя вашего клиента;

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

**redirectUrl** (не обязательное поле) - ссылка, по которой будет перенаправлен ваш клиент после успешной оплаты ордера при нажатии кнопки на странице checkout;

**failureUrl** (не обязательное поле) - ссылка, по которой будет перенаправлен ваш клиент в случае сбоя при оплаты ордера при нажатии кнопки на странице checkout;

**cancelUrl** (не обязательное поле) - ссылка, по которой будет перенаправлен ваш клиент в случае отмены ордера при нажатии кнопки на странице checkout.

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

{% code overflow="wrap" %}

```json
https://checkout.piqpay.codes/hpp?apiKey=<API_KEY>&currency=RUB&amount=5000&paymentMethod=PMC_S2P_SBP&clientId=123456789&externalId=123456789
```

{% endcode %}

После перехода по ссылке ваш клиент попадет на страницу с реквизитами для осуществления платежа.

Для отправки GET запроса на создание ордера вы можете воспользоваться следующей формой, добавив ее на страницу создания ордера:

{% code overflow="wrap" %}

```json
<form target="_blank" action={`checkout.piqpay.com/hpp/`} method="get">
    <input type="hidden" name="amount" value="100"/>
    <input type="hidden" name="currency" value="RUB" />
    <input type="hidden" name="paymentMethod" value="PMC_S2P_SBP">
    <input type="hidden" name="clientId" value="<your_client_id>" />
    <input type="hidden" name="clientInstitution" value="<your_client_institution>" />
    <input type="hidden" name="clientAccount" value="<your_client_account>" />
    <input type="hidden" name="clientPhone" value="<your_client_phone>" />
    <input type="hidden" name="clientEmail" value="<your_client_email>" />
    <input type="hidden" name="clientName" value="<your_client_name>" />
    <input type="hidden" name="clientIdentity" value="<your_client_identity>" />
    <input type="hidden" name="apiKey" value="<your_api_key>" />
    <input type="hidden" name="externalId" value="<your_order_id>" />
    <input type="hidden" name="redirectUrl" value="<your_redirect_url>" />
    <input type="submit" value="Pay" />
</form>
```

{% 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/hpp-integraciya/sozdanie-ordera-depozit.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.
