Closed adrian-schnell closed 2 years ago
GET /user/payment/state
{
"balanceDfi": 15.275,
"phoneNumber": "+49123456789",
"canReceiveCall": true
}
GET /user/payment/transactions
{
"balanceDfi": 15.275,
"payments": [
{
"reason": "Dolorem at culpa cum voluptatem dolorem ut.",
"amountDfi": 0.125,
"booked_at": "2022-03-09T10:04:38.000000Z"
},
{
"reason": "Consequatur officiis voluptas quis et.",
"amountDfi": 0.25,
"booked_at": "2022-03-09T10:04:38.000000Z"
}
],
"deposits": [
{
"txid": "b0194778-03dd-321f-845a-681d38728526",
"senderAddress": "03dfa893-42b1-33ce-9fcd-8a078e7d49a0",
"block": 636573,
"amountDfi": 15.65,
"booked_at": "2022-03-09T10:04:10.000000Z"
}
]
}
set deposit address
this is done in the user settings endpoint (PUT /user/settings):
payload e.g.:
{
"uiTheme": "dark",
"language": "en",
"summaryInterval": "daily_2x",
"depositAddress": "8Q95shiR4uJv****atA8VHiEEAwc4Syj1W",
"currentRatioEnabled": true,
"uiPrivacyEnabled": false,
"uiDashboardHealthSummaryEnabled": false,
"uiDashboardCollateralInfoEnabled": true,
"uiDashboardCollateralWaypointsEnabled": false,
"timezone": "Europe/Berlin"
}
enable phone calls as notification