Approve or deny a held sandbox payment
approveApproves or denies a payment that sandbox_pay reported as waiting for approval, as the human approver would with spendctl approve. Use it only with an approval id from this sandbox; in the real product a human decides, in the sandbox the model plays that role. Returns the approval id and its new status (approved or denied). An approved payment completes when sandbox_pay is called again with the same approvalId; a denied one stays refused. Deciding the same approval twice keeps the first decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional reason recorded with the decision, up to 200 characters | |
| decision | No | approve releases the held payment; deny refuses it for good | approve |
| approvalId | Yes | The approval id returned by sandbox_pay in its "waiting for approval" result (Approval id: ...) | |
| sandbox_id | Yes | The sandbox_id returned by sandbox_create (32 hex characters) |