Advanced loan search with complex filtering capabilities. Supports multiple status filters, date ranges, amount ranges (in whole cents), and custom sorting. Use this endpoint when you need more control than the basic list endpoint.
Security
ApiKeyAuth
- https://api.pioneerft.com/apihttps://api.pioneerft.com/api/public/v1/loans/search
- https://api.staging.pioneerft.com/apihttps://api.staging.pioneerft.com/api/public/v1/loans/search
curl -i -X POST \
https://api.pioneerft.com/api/public/v1/loans/search \
-H 'Authorization: Bearer <YOUR_API Key_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filters": {
"status": [
"draft"
],
"productIds": [
"string"
],
"centsAmountMin": -9007199254740991,
"centsAmountMax": -9007199254740991,
"dateRange": {
"from": "string",
"to": "string"
}
},
"pagination": {
"limit": 50,
"offset": 0,
"cursor": "string"
},
"sort": {
"field": "createdAt",
"order": "asc"
}
}'Response
- object
- object (2)
{ "data": [ { "id": "string", "loanNumber": "string", "status": "string", "type": "business", "centsAmount": -9007199254740991, "centsMonthlyPayment": -9007199254740991, "monthsTerm": -9007199254740991, "monthsInterestOnly": -9007199254740991, "paymentFrequency": "weekly", "rateType": "fixed", "bpsRate": -9007199254740991, "purpose": "string", "purposeNarrative": "string", "applicationDate": "string", "closeDate": "string", "maturityDate": "string", "firstPaymentDate": "string", "product": { "id": "string", "name": "string" }, "stage": { "id": "string", "name": "string" }, "createdAt": "string", "updatedAt": "string" } ], "meta": { "mode": "offset", "limit": 0, "offset": 0, "hasMore": true } }