POST
/
api
/
v1
/
loans
/
liquidate
Liquidate an active loan (pay off remaining balance).
curl --request POST \
  --url https://demoapi.saasphereltd.com/api/v1/loans/liquidate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "loan_id": 123
}'
{
  "status": "00",
  "message": "Loan liquidated successfully.",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json
loan_id
integer
required

The loan ID to liquidate.

Example:

123

Response

200 - application/json
status
string
Example:

"00"

message
string
Example:

"Loan liquidated successfully."

data
object