Mandate Check
www.omenz.org/api/tollbooth/v1/mandate/check
Mandate Check: does this cart and payment fit what the human authorized? Send AP2 mandates (intent, cart, payment) and/or owner constraints. Checks the cart sits inside the intent (merchant, skus, refundability, expiry), the merchant's signed cart JWT is real AND its cart_hash matches these exact contents (catches a cart swapped after signing), the payment mandate matches the cart total and id, an
POST
https://www.omenz.org/api/tollbooth/v1/mandate/checkUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.omenz.org/api/tollbooth/v1/mandate/check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"cart_mandate":{"contents":{"merchant_name":"Shoe Shop","payment_request":{"details":{"total":{"amount":{"currency":"USD","value":80},"label":"Total"}}}}},"constraints":{"max_per_tx_usd":100},"intent_mandate":{"intent_expiry":"2030-01-01T00:00:00Z","merchants":["Shoe Shop"]}}),
});
console.log(await res.json());Example input
{
"cart_mandate": {
"contents": {
"merchant_name": "Shoe Shop",
"payment_request": {
"details": {
"total": {
"amount": {
"currency": "USD",
"value": 80
},
"label": "Total"
}
}
}
}
},
"constraints": {
"max_per_tx_usd": 100
},
"intent_mandate": {
"intent_expiry": "2030-01-01T00:00:00Z",
"merchants": [
"Shoe Shop"
]
}
}