cancel_intent
Withdraw a declared payment intent when a purchase is no longer needed, sealing the reason so no payment can be checked or recorded against it.
Instructions
Call this when you decide not to pay an intent you declared, or the purchase is no longer needed. Withdraws the intent so no payment can be checked or recorded against it, and seals the withdrawal with the reason. Returns the sealed withdrawal: the intent's ID, the reason and when it was withdrawn. Calling it again for the same intent returns the same withdrawal. Use get_intent first if you are not sure the intent is still open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why the purchase won't go ahead, in one sentence, such as 'The supplier's price rose above the cap'. An auditor reads it. | |
| intent_id | Yes | The intent's ID as record_intent returned it, such as int_c8cc151ca5ca8c18960d |