Debt Lines
Get a debt line's principal against its limit, what it can still draw, its next payment and any overdue fees
Changed onget/debt-lines/{id}/position
Request
- Base URLhttps://core.sivo.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://dashboard.sivo.com/oauth/authorizeClient credentialsToken URLhttps://core.sivo.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
An object id with prefix
Example:user_0123456789ABCDEFGHIJKLMNOPq
Query parameters
datestring date
UTC date to compute the position for, the caller's today: it sets the next payment's due date and the days of interest projected until then; today by default
Example:2024-01-15
Response
Successful operation
Example response
{
"date": "2024-01-15",
"currency": "USD",
"principal": 10000,
"limit": {
"amount": 10000,
"max_principal": 10000,
"advance_rate": 0.05,
"eligible_balance": 10000,
"collateral": 10000,
"borrowing_base": 10000,
"metric_month": "2024-01"
},
"available_to_draw": 10000,
"deficit": 10000,
"interest_rate": 0.05,
"daily_interest": 10000,
"next_payment": {
"due_on": "2024-01-15",
"amount": 10000,
"projected_interest": 10000,
"min_payment_top_up": 10000,
"past_due": 10000,
"credit_applied": 10000,
"accrued": 10000,
"accrued_through": "2024-01-15"
},
"overdue": {
"amount": 10000,
"due_on": "2024-01-15",
"days_late": 42
},
"credit": 10000
}Changes
- info
endpoint added
- info