Accounts and balances
Query
query {
tenant {
accounts {
id
name
type
balance
user {
id
username
}
}
}
}
Response
{
"data": {
"tenant": {
"accounts": [
{
"balance": "100",
"id": "3",
"name": "deposits",
"type": "ASSET",
"user": null
},
{
"balance": "-0",
"id": "2",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "2",
"username": "someone2@example.com"
}
},
{
"balance": "100",
"id": "1",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "1",
"username": "someone@example.com"
}
}
]
}
}
}
Last updated
Was this helpful?