Correct a previously posted repayment or correction on an active murabaha contract
POST/islamic-financing/murabaha/contracts/{id}/transactions/{transactionId}/corrections
Applies a signed delta to the named transaction's effective amount without deleting or mutating it: records a new append-only RepaymentCorrectionTransaction linked forward-only to its target, replays the contract's allocation from the target's value date forward to produce net-delta ledger rows, and posts one GL entry sized to the delta and dated at the target's original value date. Never touches Profit Income or Unearned Profit. Idempotent via the Idempotency-Key header.
Request
Responses
- 201
- 401
- 403
- 404
- 409
- 422
- 500
- 503
The correction was recorded.
Unauthorized
Forbidden
Contract not found, or the target transaction does not exist or belongs to another contract; errorSource is : is CONTRACT_NOT_FOUND or TRANSACTION_NOT_FOUND.
errorSource is : is one of CONTRACT_NOT_ACTIVE, CONTRACT_RESCHEDULED, CORRECTION_IN_FROZEN_PERIOD, TRANSACTION_ALREADY_CORRECTED, or CORRECTION_WINDOW_EXPIRED.
errorSource is : is one of ZERO_DELTA_REJECTED, CORRECTION_BELOW_ZERO, OVERPAYMENT_EXCEEDS_OUTSTANDING, ACCOUNTING_PERIOD_CLOSED, or CONFIGURATION_INCOMPLETE (the contract's product configuration is incomplete; the detail names the missing feature).
The correction was rolled back and nothing was stored; errorSource is : is CORRECTION_PERSISTENCE_FAILED or CORRECTION_GL_POSTING_FAILED.
Lock-wait timeout acquiring the contract row; errorSource is : is REPAYMENT_LOCK_TIMEOUT. Retry after the interval in the Retry-After header.