settle_purchase
Close the reservation an allowed check_purchase gave you, once: outcome paid when the purchase went through (send amount when you paid less than reserved; never more), or failed when it did not, which gives the amount back to today's budget. When you cannot tell (the payment timed out or the answer was unreadable), send outcome unknown: the amount stays held, failed is then refused, and reconcile_purchase closes it once you know. A reservation is never released by time alone, so always settle it. 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 | Optional: an order or transaction reference, or why it failed or what you saw. | |
| amount | No | With paid: what you actually paid, if less than reserved. | |
| pay_to | No | With paid, when check_purchase named pay_to (then required): the account the money went to. Another account keeps the amount held as unknown, with code payee_changed, for the owner to reconcile with reconcile_purchase. A retry cannot clear the hold. | |
| outcome | Yes | paid: the purchase went through. failed: it did not. unknown: you cannot tell yet. | |
| reservation_id | Yes | reservation.id from check_purchase. |