POST
/
api
/
v1
/
loans
/
list
Get a filtered list of loans.
curl --request POST \
  --url https://demoapi.saasphereltd.com/api/v1/loans/list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "CUST001",
  "status": [
    5,
    7
  ],
  "start_date": "2025-01-01",
  "end_date": "2025-11-26"
}
'
{
  "status": "00",
  "message": "Successful",
  "data": []
}

Authorizations

Authorization
string
header
required

Paste only the token (no "Bearer " prefix).

Body

application/json
customer_id
string

optional Filter by customer ID.

Example:

"CUST001"

status
string[]

optional Filter by loan status. Array of status codes.

Example:
[5, 7]
start_date
date

optional Filter loans created from this date.

Example:

"2025-01-01"

end_date
date

optional Filter loans created up to this date.

Example:

"2025-11-26"

Response

200 - application/json
status
string
Example:

"00"

message
string
Example:

"Successful"

data
array
Example:
[]