Skip to main content
POST
/
v1
/
loans
/
{loan_id}
/
withdraw
Withdraw a loan
curl --request POST \
  --url https://api-dev.bsa.ai/v1/loans/{loan_id}/withdraw \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "note": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.api.bsa.ai/llms.txt

Use this file to discover all available pages before exploring further.

Withdraws a submitted loan application. Semantically distinct from Reject — withdraw represents the applicant voluntarily pulling their application before underwriting completes.

Path parameters

loan_id
string
required

Request body

note
string
Optional free-text reason.

Example

curl -sf -X POST "$BASE/v1/loans/501/withdraw" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"note": "Applicant found alternative financing"}'

Response

200 OK returns the loan object with status="Withdrawn by applicant".

Errors

CodeWhen
not_foundNo loan with that ID
abortedLoan is not in submitted state