not_found.curl --location 'https://api.opensylo.com/api/v1/marketplace/loans/bulk-status' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"loan_ids": [
"loan_f1e2d3c4-b5a6-7890-1234-567890abcdef",
"loan_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
]
}'{
"loans": [
{
"loan_id": "loan_f1e2d3c4-b5a6-7890-1234-567890abcdef",
"reference": "OSL-2026-00142",
"status": "repaying",
"deduction_required": true,
"outstanding": 1380000
},
{
"loan_id": "loan_nonexistent",
"status": "not_found",
"deduction_required": false,
"outstanding": 0,
"error": "Loan not found or does not belong to this marketplace"
}
],
"summary": {
"total_queried": 2,
"active": 1,
"repaid": 0,
"not_found": 1
},
"timestamp": "2026-04-07T10:30:00.000Z"
}