Your spending rules
The agent shops inside these. It can read them, but nothing it says or does can change them.
Test a cart against your rules
Add products and watch each rule. This runs the same policy engine the server runs before any PayPal order exists. Nothing here is saved or paid.
Every reason a cart gets blocked
The red text is exactly what the policy engine returns, and exactly what you see in the shop.
- 01
Budget
The cart total, priced from the database, must stay at or under your budget.
Blocked: over budget - 02
Categories
Every item must come from a category you allowed.
Category not allowed - 03
Quantity
The total number of items can't pass your limit.
Quantity limit exceeded - 04
Stock
The shop must have enough of each item in stock.
Insufficient stock - 05
Real products only
Product ids the catalog doesn't know are rejected.
Unknown product - 06
No duplicate lines
The same product can't appear twice to slip past the quantity check.
Duplicate product - 07
One currency
Every price must be in the mandate's currency, US dollars.
Currency mismatch - 08
Human approval
A mandate that turns off payment approval is treated as invalid.
Invalid mandate
Where the rules live
Stored on the server
The rules sit in the mandates table of the shop's database, not in the chat or the prompt.
Read-only for the agent
The agent can read them with get_spending_rules. No tool lets it change them.
Checked twice
Once when the agent proposes a cart, and again before the PayPal order is created.