Skip to main content
DELETE
/
v1
/
loans
/
{loan_id}
Delete a loan
curl --request DELETE \
  --url https://api-dev.bsa.ai/v1/loans/{loan_id} \
  --header 'Authorization: Bearer <token>'

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.

Only loans in submitted and pending approval state can be deleted. For loans that have been approved or further, use Reject, Withdraw, Undo approval, or Write off depending on the state.

Path parameters

loan_id
string
required

Example

curl -sf -X DELETE "$BASE/v1/loans/501" \
  -H "Authorization: Bearer $TOKEN"

Response

200 OK with an empty body.

Errors

CodeWhen
not_foundNo loan with that ID
abortedLoan is past pending state