Skip to content

Get a specific wallet

GET
/wallets/{id}
curl --request GET \
--url http://localhost:8000/api/v1/wallets/1 \
--header 'Authorization: Bearer <token>'
id
required
integer

Successful response

Media type application/json
object
id

ID of the wallet

integer
name

Name of the wallet

string
type

Type of the wallet (bank, cash, credit_card, mobile)

string
description

Description of the wallet

string
currency

Currency of the wallet

string
balance

Balance of the wallet

number format: float
icon

Wallet icon

object
id

ID of the icon

integer
path

Image of the icon

string
type

Type of icon( image or icon or emoji)

string
stats
object
total_income
number format: float
total_expense
number format: float
Example generated
{
"id": 1,
"name": "example",
"type": "example",
"description": "example",
"currency": "example",
"balance": 1,
"icon": {
"id": 1,
"path": "example",
"type": "example"
},
"stats": {
"total_income": 1,
"total_expense": 1
}
}

Unauthorized

Wallet not found

Server error