loan_payback
Repay part or all of a loan to reduce the outstanding balance and release the guarantee if fully paid. Preview first, then confirm with user approval before executing.
Instructions
Pay back (return) part or all of a loan. Reduces the loan amount and may release guarantee if fully paid. Returns updated loan details. Use loan_get_orders to get the order ID, or loan_get_orders with order_id filter to check current loan amount and details. [PRIVATE] First call without confirm=true returns a preview; set confirm=true only after the user agrees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | No | Optional session token for authentication. API keys are recommended for most use cases. | |
| confirm | No | Must be true to execute. Ask the user first, then call again with confirm=true. Prevents accidental one-shot mutations by the LLM. | |
| order_id | Yes | Loan order UUID from loan_get_orders | |
| payback_amount | Yes | Amount to repay (as string for decimal precision) | |
| idempotency_key | No | Stable key for this logical action (UUID recommended). Reuse the same value when retrying after a timeout so Bit2Me does not execute twice. Auto-generated if omitted. |