Wallet
GET Wallet by user ID
Path
/api/wallet/
Возвращает кошелёк по id пользователя
Click to expand to see the details
cURL example:
curl --location 'https://api.tekmates.pro/api/wallet' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Language: RU' \
Response Body:
{
"walletId": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"balance": 0
}
GET Transaction History By Wallet ID
Path
/api/wallet/transactions/
Возвращает история транзакций по id кошелька
Click to expand to see the details
cURL Example:
curl --location 'https://api.tekmates.pro/api/wallets/{walletId}/transactions/?skip=0&limit=100' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Language: RU' \
Query Params:
| key | value | required |
|---|---|---|
| limit | Количество элементов в выдачи | true |
| skip | С учетом сортировки количество пропущенных первых элементов | true |
История сортируется по дате (самая новая вначале)
Response Body:
{
"transactions": [
{
"sum": 200,
"datetime": "2024-11-01T00:00:00",
"balanceBefore": 100,
"balanceAfter": 200
},
"totalCount": 42
]
}
Edited by Zhambyl Yermagambet