repayment.reportcurl --location --request POST 'https://api.opensylo.com/api/v1/marketplace/loans/bulk-status' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"loan_ids": [
"loan_uuid_1",
"loan_uuid_2",
"loan_uuid_3"
]
}'{
"loans": [
{
"loan_id": "loan_uuid_1",
"reference": "LOAN-2026-001",
"status": "DISBURSED",
"deduction_required": true,
"outstanding": 325000
},
{
"loan_id": "loan_uuid_2",
"reference": "LOAN-2026-002",
"status": "REPAID",
"deduction_required": false,
"outstanding": 0
},
{
"loan_id": "loan_uuid_3",
"status": "not_found",
"deduction_required": false,
"outstanding": 0,
"error": "Loan not found or does not belong to this marketplace"
}
],
"summary": {
"total_queried": 3,
"active": 1,
"repaid": 1,
"not_found": 1
},
"timestamp": "2026-01-29T12:00:00.000Z"
}