Skip to main content
POST
/
v1
/
loans
/
{loan_id}
/
repayments
/
{transaction_id}
/
adjust
Adjust a repayment
curl --request POST \
  --url https://api-dev.bsa.ai/v1/loans/{loan_id}/repayments/{transaction_id}/adjust \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "transactionDate": "<string>",
  "transactionAmount": 123,
  "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.

Adjusts an existing transaction. Use this to correct a posting error (wrong amount, wrong date). The original transaction is reversed internally and a new one is posted with the adjusted values.

Path parameters

loan_id
string
required
transaction_id
string
required

Request body

transactionDate
string
required
ISO-8601 YYYY-MM-DD. The corrected effective date.
transactionAmount
number
required
Corrected amount. Must be >= 0.
note
string
Optional. Reason for the adjustment.

Example

curl -sf -X POST "$BASE/v1/loans/501/repayments/7821/adjust" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "transactionDate": "2026-07-01",
    "transactionAmount": 425,
    "note": "Correct amount per branch reconciliation"
  }'

Response

200 OK returns the repayment object reflecting the adjusted values.

Errors

CodeWhen
not_foundLoan or transaction not found
abortedTransaction is already reversed, or adjustment is not permitted in current loan state