Spend under a mandate
mandate_spendCall before each payment: checks the mandate and, if allowed, deducts the amount from the budget and records the payment in the agent's tamper-evident log. Refused payments are logged as blocked. Refused at once if the kill switch is on. Over the organization's live-approval threshold it returns approval_required with an approve_url for the human; call again with approval_id once they approve. Requires the organization API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payee | Yes | Who is being paid: 0x address or domain | |
| reference | No | Order, invoice or transaction reference | |
| mandate_id | Yes | mdt_... ID | |
| amount_usdc | Yes | Payment amount in USDC | |
| approval_id | No | apr_... : the human's live approval, if this payment is over the agent's approval threshold |