check_mandate
Check required fields, spending cap, expiry, and authorisation proof on a mandate. Returns violations and warnings before converting to payment.
Instructions
Guardrail a mandate before it becomes a payment: check required fields, the spending cap (amount <= max_amount), expiry (when 'as_of' is supplied), and whether an authorisation proof is present. Returns ok plus any violations and warnings. Run this before converting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ISO date/datetime to evaluate expiry against. | |
| mandate | Yes | A canonical mandate object (see normalize_ap2/normalize_x402 output): payer_/payee_ name+account_iban, amount, currency, plus optional reference, execution_date, max_amount, expiry, proof_type/proof_value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||