Withdraw amount from wallet
Query
mutation WithdrawWallet($walletId: ID!, $input: WithdrawInput!) {
tenant {
withdrawWallet(walletId: $walletId, input: $input) {
id
currency
note
amounts {
id
account {
id
name
type
currency
balance
user {
id
}
}
}
}
}
}
Variables
{
"walletId": 1,
"input": {
"amount": 10,
"note": "Bank Account No: xxxxx"
}
}
Response
{
"data": {
"tenant": {
"withdrawWallet": {
"amounts": [
{
"account": {
"balance": "90",
"currency": "BTC",
"id": "3",
"name": "deposits",
"type": "ASSET",
"user": null
},
"id": "6"
},
{
"account": {
"balance": "80",
"currency": "BTC",
"id": "1",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "1"
}
},
"id": "5"
}
],
"currency": "BTC",
"id": "3",
"note": "Withdrawal"
}
}
}
}
Last updated
Was this helpful?