POST /api/sandbox/loans/{id}/action
POST/api/sandbox/loans/:id/action
Runs a direct action on an active Sandbox loan. This is a low-level shortcut for post-issuance operations: interest repayment, principal repayment, adding collateral, removing part of collateral, or increasing the loan.
For the cabinet-compatible repayment path, use POST /api/sandbox/loans/{id}/repayment-flow. This endpoint remains useful for simple business-logic and balance tests.
POST requests must include Idempotency-Key so a retry does not apply the same action twice.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 429
Updated Sandbox loan state
Invalid request: invalid body, missing Idempotency-Key for POST, unknown action, or invalid amount
Sandbox API key is missing or invalid
Loan was not found
The flow cannot continue from the current state, a balance/limit is insufficient, or Idempotency-Key conflicts
Sandbox API rate limit exceeded