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": "<any>",
  "end_date": "<any>"
}
'
{
  "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
any
end_date
any

Response

200 - application/json
status
string
Example:

"00"

message
string
Example:

"Successful"

data
any[]
Example:
[]