Ledger entries
Query
query {
tenant {
entries {
id
currency
note
debits
credits
amounts {
id
account {
id
name
type
balance
currency
user {
id
username
}
}
}
}
}
}
Response
{
"data": {
"tenant": {
"entries": [
{
"amounts": [
{
"account": {
"balance": "10",
"currency": "BTC",
"id": "2",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "2",
"username": "someone2@example.com"
}
},
"id": "4"
},
{
"account": {
"balance": "90",
"currency": "BTC",
"id": "1",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "1",
"username": "someone@example.com"
}
},
"id": "3"
}
],
"credits": "10",
"currency": "BTC",
"debits": "10",
"id": "2",
"note": "Donation"
},
{
"amounts": [
{
"account": {
"balance": "90",
"currency": "BTC",
"id": "1",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "1",
"username": "someone@example.com"
}
},
"id": "2"
},
{
"account": {
"balance": "100",
"currency": "BTC",
"id": "3",
"name": "deposits",
"type": "ASSET",
"user": null
},
"id": "1"
}
],
"credits": "100",
"currency": "BTC",
"debits": "100",
"id": "1",
"note": "Bank deposit"
}
]
}
}
}
Last updated
Was this helpful?