> For the complete documentation index, see [llms.txt](https://premium.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/koshelek.md).

# Koshelek

{% hint style="danger" %} <mark style="color:red;">Before setting up auto payouts, please read the</mark> [<mark style="color:blue;">risk warning</mark>](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/risk-warning)<mark style="color:blue;">!</mark>
{% endhint %}

{% hint style="info" %}
If you need to update the module on the server, please refer to the [instructions](https://premium.gitbook.io/main/en/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-files-on-the-server#merchant-and-auto-payout-modules).
{% endhint %}

## Merchant Account Settings

Register and verify your account with [Koshelek](https://koshelek.ru/). Go to the [**"API Keys"** page](https://koshelek.ru/account/keysApi) and click the "**Create API Key**" button.

<figure><img src="/files/70QBWyZit7HqlCjfUGXc" alt=""><figcaption></figcaption></figure>

In the pop-up window, enter a name for the key and select the methods for API access (for fund payouts, choose "**Deposit**," "**Withdrawal**," and "**Read**"). Click the "**Save**" button.

<figure><img src="/files/UT6B1HLJVq7Qu91H0FmS" alt="" width="467"><figcaption></figcaption></figure>

In the next window, copy the generated keys and save them in a text file.

<figure><img src="/files/K9zBrrxQZI0vHYGofby7" alt="" width="474"><figcaption></figcaption></figure>

## Module Settings

In the admin panel, create a new merchant under the "**Auto Payouts**" section by clicking "**Add Auto Payout**."

Select Koshelek from the drop-down menu in the "**Module**" field, enter a name for the module, and click "**Save**."

<figure><img src="/files/YIeWUR3f4oilHIojlCoA" alt="" width="419"><figcaption></figcaption></figure>

Fill in the required authorization fields.

<figure><img src="/files/7tmqViGdMKpDh2Z4Fa4X" alt="" width="426"><figcaption></figcaption></figure>

**Public Key** — **public ID** generated in your Koshelek account

**Secret Key** — **secret key** generated in your Koshelek account

## Special Fields

<figure><img src="/files/U7bSoboJiMN3lU8ozmwl" alt="" width="302"><figcaption></figcaption></figure>

**Network** — specify the currency network for the auto payout to function correctly

## Continuing the Setup

Next, configure the merchant by following the [general setup instructions](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/general-auto-payment-settings).


---

# 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, and the optional `goal` query parameter:

```
GET https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/koshelek.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
