Activate a murabaha contract
POST/islamic-financing/murabaha/contracts/{id}/activate
Transitions a contract from PENDING to ACTIVE. Runs pre-transaction guards (state check, mandatory downpayment check, schedule-feature check, and a check that the derived activation inputs are computable) and validates the resolved activationDate and firstRepaymentDate before opening any transaction. Returns 422 for any guard or date-validation failure (D-B2-01, D-B2-09, D-B2-10, D-B2-04).
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
The contract was activated.
Unauthorized
Forbidden
Contract not found.
Another request is activating the same contract; errorSource is : is CONCURRENT_ACTIVATION.
Guard or date-validation failure; errorSource is : is one of CONTRACT_NOT_PENDING, DOWNPAYMENT_RECORD_MISSING, MANDATORY_DOWNPAYMENT_NOT_RECORDED, SCHEDULE_FEATURE_NOT_CONFIGURED, EFFECTIVE_PRINCIPAL_NOT_COMPUTABLE, TOTAL_PROFIT_NOT_COMPUTABLE, INSTALLMENT_COUNT_NOT_COMPUTABLE, ACCOUNTING_RULES_FEATURE_MISSING, DOWNPAYMENT_GL_ACCOUNT_NOT_CONFIGURED, ACTIVATION_DATE_IN_FUTURE, ACTIVATION_DATE_EXCEEDS_BACKDATE_LIMIT, ACTIVATION_DATE_BEFORE_WAAD_DATE, INVALID_DATE_FORMAT, FIRST_REPAYMENT_DATE_OUT_OF_BOUNDS, or UNSUPPORTED_CONFIGURATION.