> For the complete documentation index, see [llms.txt](https://docs.plazaworld.pw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plazaworld.pw/transfers.md).

# Transfers

Переводы между кошельками

## Единичный перевод

> Перевод средств между двумя кошельками. Поддерживает кросс-банковские переводы.\
> Взимается комиссия: \`fee = amount × fee\_rate\`.\
> Сумма списания = \`amount + fee\`.<br>

```json
{"openapi":"3.1.0","info":{"title":"PlazaWorld Banking API","version":"1.0.1"},"tags":[{"name":"Transfers","description":"Переводы между кошельками"}],"servers":[{"url":"https://cb.plazaworld.pw","description":"Production"}],"security":[{"BankAuth":[]}],"components":{"securitySchemes":{"BankAuth":{"type":"http","scheme":"bearer","description":"API-токен коммерческого банка (выдаётся Центральным банком)"}},"schemas":{"TransferRequest":{"type":"object","required":["from_wallet","to_wallet","amount","idempotency_key"],"properties":{"from_wallet":{"type":"string","format":"uuid"},"to_wallet":{"type":"string","format":"uuid"},"amount":{"type":"integer","format":"int64","minimum":1},"currency":{"type":"string"},"description":{"type":"string"},"idempotency_key":{"type":"string","description":"Уникальный ключ для идемпотентности"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}},"responses":{"BadRequest":{"description":"Невалидный запрос","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Невалидный или отсутствующий токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Ресурс не найден","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InsufficientFunds":{"description":"Недостаточно средств","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"balance":{"type":"integer"},"required":{"type":"integer"}}}}}}}},"paths":{"/api/v1/transfer":{"post":{"tags":["Transfers"],"summary":"Единичный перевод","description":"Перевод средств между двумя кошельками. Поддерживает кросс-банковские переводы.\nВзимается комиссия: `fee = amount × fee_rate`.\nСумма списания = `amount + fee`.\n","operationId":"createTransfer","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}}},"responses":{"200":{"description":"Перевод выполнен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Кошелёк заморожен или владелец в чёрном списке","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/InsufficientFunds"}}}}}}
```

## Пакетный перевод

> Массовый перевод с одного кошелька на несколько (например, зарплата).\
> Атомарная операция, при ошибке ни один перевод не выполняется.<br>

```json
{"openapi":"3.1.0","info":{"title":"PlazaWorld Banking API","version":"1.0.1"},"tags":[{"name":"Transfers","description":"Переводы между кошельками"}],"servers":[{"url":"https://cb.plazaworld.pw","description":"Production"}],"security":[{"BankAuth":[]}],"components":{"securitySchemes":{"BankAuth":{"type":"http","scheme":"bearer","description":"API-токен коммерческого банка (выдаётся Центральным банком)"}},"schemas":{"BatchTransferRequest":{"type":"object","required":["from_wallet","transfers","idempotency_key"],"properties":{"from_wallet":{"type":"string","format":"uuid"},"transfers":{"type":"array","minItems":1,"items":{"type":"object","required":["to_wallet","amount"],"properties":{"to_wallet":{"type":"string","format":"uuid"},"amount":{"type":"integer","format":"int64","minimum":1},"description":{"type":"string"}}}},"idempotency_key":{"type":"string"}}},"BatchResult":{"type":"object","properties":{"batch_id":{"type":"string"},"status":{"type":"string"},"total_amount":{"type":"integer","format":"int64"},"total_fee":{"type":"integer","format":"int64"},"transfers":{"type":"array","items":{"type":"object","properties":{"tx_id":{"type":"string","format":"uuid"},"to_wallet":{"type":"string","format":"uuid"},"status":{"type":"string"}}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}},"responses":{"BadRequest":{"description":"Невалидный запрос","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Невалидный или отсутствующий токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Ресурс не найден","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InsufficientFunds":{"description":"Недостаточно средств","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"balance":{"type":"integer"},"required":{"type":"integer"}}}}}}}},"paths":{"/api/v1/transfer/batch":{"post":{"tags":["Transfers"],"summary":"Пакетный перевод","description":"Массовый перевод с одного кошелька на несколько (например, зарплата).\nАтомарная операция, при ошибке ни один перевод не выполняется.\n","operationId":"createBatchTransfer","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchTransferRequest"}}}},"responses":{"200":{"description":"Пакет выполнен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/InsufficientFunds"}}}}}}
```


---

# 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://docs.plazaworld.pw/transfers.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.
