> For the complete index of this site, see [llms.txt](https://alexdewison.com/llms.txt).

# Can the agent pay from this bank mandate?

Sam links a bank account to a pizza shop's ordering agent. Instead of a card, the agent pays under a mandate Sam set up with the bank, with limits Sam chose. The bank checks every payment. Try the orders below and see what gets through.

This is the text version of an interactive demo. The interactive version runs in your browser on mock data: [https://alexdewison.com/labs/agent-bank-mandate-limits/](https://alexdewison.com/labs/agent-bank-mandate-limits/)

## The demo, step by step

1. Sam's mandate, set in the bank app

Payee: Pizza Place Ltd.

Limit per payment: choose GBP 40.00 or GBP 25.00.

Limit per month: choose GBP 100.00 or GBP 60.00.

Status starts as Active, and becomes Cancelled by Sam if Sam cancels the mandate.

Used this month starts at GBP 0.00 of the monthly limit.

2. The agent asks the bank to pay

- GBP 22.50 to Pizza Place Ltd (Friday order)
- GBP 34.00 to Pizza Place Ltd (party order)
- GBP 48.00 to Pizza Place Ltd (office order)
- GBP 15.00 to Burger Barn Ltd (different payee)

3. Sam stays in control

Sam cancels the mandate, or Start again.

## Bank decision

Pick an order for the agent to pay.

That is the starting message. After that, the decision panel shows one of these results, in plain words:

- Paid: "Paid: within the per payment and monthly limits Sam set, to the payee on the mandate."
- Over the per payment limit: "Declined: GBP 48.00 is over Sam's per payment limit of GBP 40.00. The agent should ask Sam, not retry." (the amounts change if you pick a tighter limit or a different order)
- Over the monthly limit: "Declined: this would take the month to GBP 106.00, over Sam's monthly limit of GBP 100.00." (the totals change with the orders you have already paid)
- Wrong payee: "Declined: the mandate only covers Pizza Place Ltd. Paying anyone else needs Sam's own approval."
- After cancel: "Declined: Sam cancelled the mandate, so the agent cannot pay at all until Sam sets up a new one."
- Just cancelled: "Mandate cancelled. Any further payment the agent asks for will be declined."

### Worked paths (default start: limit per payment GBP 40.00, limit per month GBP 100.00, nothing spent)

- Friday order, GBP 22.50 to Pizza Place Ltd: paid, within both limits.
- Party order, GBP 34.00 to Pizza Place Ltd: paid, within both limits (GBP 56.50 used this month if the Friday order already went through).
- Office order, GBP 48.00 to Pizza Place Ltd: declined, over the GBP 40.00 per payment limit. The agent should ask Sam, not retry.
- GBP 15.00 to Burger Barn Ltd: declined, wrong payee. This mandate only pays Pizza Place Ltd.
- Choose the GBP 25.00 per payment limit, then the GBP 34.00 party order: declined, over the per payment limit.
- Pay the Friday and party orders (GBP 56.50 used), then choose the GBP 60.00 monthly limit and try the Friday order again: declined, over the monthly limit.
- Sam cancels the mandate, then any order: declined, mandate cancelled.

## What the bank returns to the agent

Nothing yet.

That is the starting record. After a decision it shows a JSON record with the payee, amount, description, mandate id, status (paid or declined) and a reason such as over_per_payment_limit, over_monthly_limit, payee_not_in_mandate or mandate_cancelled, plus a next step so the agent goes back to the customer instead of retrying.

## History this month

A list of the paid and declined attempts in this session.

## Why it matters

A mandate keeps the limits with the customer's bank, not the agent. Payment APIs should return a clear decline reason so the agent goes back to the customer instead of retrying.

Mock data only. Names, amounts and fields are invented to show the idea: the customer sets the limits with their own bank, the agent never sees bank credentials, every payment is checked against the mandate, and a clear decline reason lets the agent go back to the customer instead of retrying.

---

Part of the [interactive payments demos](https://alexdewison.com/insights/demos/) by Alex Dewison. Mock data only.
