Debt Lines
Get debt line monthly metrics
Changed onget/debt-lines/{id}/metrics
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
limitinteger
Maximum number of results to return, from 1 to 100; defaults to 25
pagestring
Opaque page token from a previous response's next_page or previous_page; pass it back unchanged, with the same sort and filters
expandstring[]
Extra fields to include in the page; total_count counts the matching results, exactly up to 10000
sort'test_month_desc'
Result order; defaults to test_month_desc
test_monthstring
Only return metrics computed for this month
Example:2024-01
Response
Successful operation
Example response
{
"data": [
{
"id": "user_0123456789ABCDEFGHIJKLMNOPq",
"debt_line_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"test_month": "2024-01",
"outstanding_balance": 10000,
"pledged_balance": 10000,
"eligible_balance": 10000,
"effective_apr": 0.05,
"default_rate": 0.05,
"utilization_rate": 0.05,
"concentration": 0.05,
"cashflow_covering_ratio": 0.05,
"top_balances_eligible": [
10000
],
"top_balances_all": [
10000
],
"report_delay": 42
}
]
}Changes
- info
endpoint added
- info