Check an AI agent's payment against the mandate and the instruction
agent_payment_checkBefore an AI agent pays, checks the proposed payment against the person's mandate (who allowed it, limits per payment and per period, allowed shops and UPI IDs, end date) and against what the person actually asked for (items, quantities, budget, shop). It works the total out again from the cart lines, and flags lookalike payees, extra items, too much quantity, going over a limit and repeat payments. Returns every check and a receipt signed by Nityaflow. It never pays, holds or moves money: a licensed bank or payment app does that, only after a person approves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The payment the agent proposes: {merchant, vpa, lines: [{name, qty, unit, price}], fees, total}. | |
| intent | Yes | What the person asked for: {text, items: [{name, qty, unit}], budget, merchant}. Units: kg, g, l, ml, pc, pack, dozen. | |
| history | No | Earlier payments under this mandate: [{at, total, vpa, status: paid}]. Used for the period limit and repeat check. | |
| mandate | Yes | The permission: {authorised_by, purpose, per_payment, per_period, period (day, week, month or 90 days), merchants: [{name, vpa, category}], approve_above, valid_from, valid_to}. |