settle_session_draw
Say what happened to a call you drew for with draw_session_spend. outcome failed: the payment did not go through, so the draw goes back to the session. outcome unknown: you cannot tell (a timeout, an unreadable answer), so the draw keeps counting until it is reconciled. Then, from what you checked, outcome paid (amount when less than drawn) or not paid, each with a note. Not paid gives budget back, so only the workspace's owner may send it: a workspace-wide key with routing write scope, never an agent's own key. Needs a Last Price credential with price compute scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | What you saw or checked. Required to reconcile. | |
| amount | No | With paid: what was actually paid, if less than drawn. | |
| draw_id | Yes | draw.id from draw_session_spend. | |
| outcome | Yes | failed or unknown to report the call; paid or not paid to reconcile one reported unknown. | |
| session_id | Yes | reservation.id from open_spend_session. |