Skip to main content

GetOverdueLoans

Retrieves overdue loans with optional filtering by account and currency.

Request​

GET /nxt?requestType=getOverdueLoans

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressNo
currencystringCurrency IDNo
includeLoanInfobooleanInclude loan informationNo
firstIndexintPagination startNo
lastIndexintPagination endNo

Response​

{
"overdueLoans": [
{
"id": 1234567890123456789,
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"currency": 9876543210123456789,
"unitsQNT": 1000000,
"amountQNT": 500000000,
"interestRate": 5,
"issuanceHeight": 100000,
"repaymentHeight": 110000,
"funded": true,
"repaid": false,
"rescued": false,
"defaulted": true
}
],
"errorCode": 0,
"errorDescription": ""
}

Example​

curl "http://localhost:22024/nxt?requestType=getOverdueLoans&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ&firstIndex=0&lastIndex=10"