> 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/wallets.md).

# Wallets

Управление кошельками

## GET /api/v1/wallets

> Список кошельков владельца

```json
{"openapi":"3.1.0","info":{"title":"PlazaWorld Banking API","version":"1.0.1"},"tags":[{"name":"Wallets","description":"Управление кошельками"}],"servers":[{"url":"https://cb.plazaworld.pw","description":"Production"}],"security":[{"BankAuth":[]}],"components":{"securitySchemes":{"BankAuth":{"type":"http","scheme":"bearer","description":"API-токен коммерческого банка (выдаётся Центральным банком)"}},"schemas":{"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"}}}}}},"paths":{"/api/v1/wallets":{"get":{"tags":["Wallets"],"summary":"Список кошельков владельца","operationId":"listWallets","parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string"},"description":"Идентификатор владельца"}],"responses":{"200":{"description":"Массив кошельков","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Wallet"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"}}}}}}
```

## POST /api/v1/wallets

> Создать кошелёк

```json
{"openapi":"3.1.0","info":{"title":"PlazaWorld Banking API","version":"1.0.1"},"tags":[{"name":"Wallets","description":"Управление кошельками"}],"servers":[{"url":"https://cb.plazaworld.pw","description":"Production"}],"security":[{"BankAuth":[]}],"components":{"securitySchemes":{"BankAuth":{"type":"http","scheme":"bearer","description":"API-токен коммерческого банка (выдаётся Центральным банком)"}},"schemas":{"CreateWalletRequest":{"type":"object","required":["owner_id","wallet_type"],"properties":{"owner_id":{"type":"string","description":"Идентификатор владельца (игрок/компания)"},"wallet_type":{"type":"string","enum":["personal","company"]},"label":{"type":"string"},"currency":{"type":"string","default":"PZW"}}},"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"}}}}}},"paths":{"/api/v1/wallets":{"post":{"tags":["Wallets"],"summary":"Создать кошелёк","operationId":"createWallet","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWalletRequest"}}}},"responses":{"201":{"description":"Кошелёк создан","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Wallet"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"}}}}}}
```

## GET /api/v1/wallets/{wallet\_id}

> Получить кошелёк по ID

```json
{"openapi":"3.1.0","info":{"title":"PlazaWorld Banking API","version":"1.0.1"},"tags":[{"name":"Wallets","description":"Управление кошельками"}],"servers":[{"url":"https://cb.plazaworld.pw","description":"Production"}],"security":[{"BankAuth":[]}],"components":{"securitySchemes":{"BankAuth":{"type":"http","scheme":"bearer","description":"API-токен коммерческого банка (выдаётся Центральным банком)"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Невалидный или отсутствующий токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Ресурс не найден","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/api/v1/wallets/{wallet_id}":{"get":{"tags":["Wallets"],"summary":"Получить кошелёк по ID","operationId":"getWallet","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Кошелёк","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Wallet"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# 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/wallets.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.
