Use cases
AI agents paying
Agents can work with money on both sides. Taking it: your agent calls Ducat with your team's key and sees only your team's data; anything past your standing limits waits for a person. Spending it: an agent gets a virtual card with rules, and a person approves the one purchase past them, in the moment.
Step by step
Give the agent a key
A key in the console belongs to your team; an agent holding it sees only your customers and payments.
Console: API keys
Free inside the rules
Making customers, checkouts and reading anything needs no approval.
POST /v1/checkout-sessions
A nod past the limits
A refund, charge or subscription past your standing limit answers 403 with a challenge naming the action; a person approves it in Nod and the request goes through once.
403 + Nod-Approval
A card with rules
A person issues the agent a card: per purchase, day and month, categories, merchants, expiry, single use.
POST /v1/cards
Approve in the moment
A purchase past the rules is held in the authorisation window while a person approves it.
POST /v1/cards/{id}/approvals
Never the number
The agent pays through a payment tool and never sees the card number.
POST /v1/cards/{id}/pay
In code
TypeScript
const body = JSON.stringify({ payment_intent: paymentIntentId, amount: 25000 });
const headers = { authorization: `Bearer ${token}`, "content-type": "application/json" };
let r = await fetch("https://api.ducatpay.dev/v1/refunds", { method: "POST", headers, body });
if (r.status === 403 && r.headers.get("www-authenticate")) {
const approval = await askAPersonInNod(r.headers.get("www-authenticate")!); // each approval works once
r = await fetch("https://api.ducatpay.dev/v1/refunds", { method: "POST", headers: { ...headers, "nod-approval": approval }, body });
}Python
import json, urllib.error, urllib.request
def refund(approval: str | None = None):
headers = {"authorization": f"Bearer {token}", "content-type": "application/json"}
if approval:
headers["nod-approval"] = approval
body = json.dumps({"payment_intent": payment_intent_id, "amount": 25000}).encode()
req = urllib.request.Request("https://api.ducatpay.dev/v1/refunds", data=body, headers=headers, method="POST")
return json.load(urllib.request.urlopen(req))
try:
r = refund()
except urllib.error.HTTPError as e:
challenge = e.headers.get("www-authenticate")
if e.code != 403 or not challenge:
raise
r = refund(ask_a_person_in_nod(challenge)) # each approval works oncecurl
curl -si https://api.ducatpay.dev/v1/refunds \
-H "authorization: Bearer $DUCAT_TOKEN" -H "content-type: application/json" \
-d '{"payment_intent": "pi_…", "amount": 25000}'
# → 403, WWW-Authenticate names the action; a person approves it in Nod
curl -s https://api.ducatpay.dev/v1/refunds \
-H "authorization: Bearer $DUCAT_TOKEN" -H "content-type: application/json" \
-H "nod-approval: $APPROVAL" \
-d '{"payment_intent": "pi_…", "amount": 25000}'Good to know
- Standing limits are per currency; today a charge, refund or subscription period above 100.00 (USD, EUR or AUD) needs a nod, and a currency with no limit always does.
- Agent cards are in beta, built against a simulated issuer; for teams they come with the Scale plan, by arrangement, and only a person can issue one.
- Ducat's MCP server (free, limits and nod tools, with its screens) serves our own products' agents today; it isn't open to outside teams' keys yet.
Features it uses
Agent cards
BetaA virtual card per agent with limits, merchant rules and expiry; past the rules, a person nods in the moment.
Checkout
Available in test modeSend a customer to Stripe's hosted payment page for a subscription or a one-off payment, and know when it's paid.
Customers
Available in test modeOne customer per account of yours, with addresses, tax IDs and metadata; only your team ever sees them.
Webhooks
Available in test modeEvery event pushed to your endpoint, signed, in order, at least once, with retries; or polled with a cursor.
Start building in test mode
Sign up, make a key, and take a test payment in a few minutes. No card needed.