Skip to content

Search loans

Request

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
Bodyapplication/jsonrequired

Search criteria

filtersobject
paginationobject
sortobject
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"
    }
  }'

Responses

Successful response with search results

Bodyapplication/json
dataArray of objects(PublicLoan)
metaobject(PaginationMeta)
One of:
Response
{ "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 } }