Test modeDucat runs on Stripe's test mode for now, so no real card is charged.

Features

Agent cards Beta

Give an agent a card with rules a person set: per purchase, per day and per month, allowed categories and merchants, expiry, single use. A purchase past the rules is held in the network's authorisation window while a person approves it. The agent never sees the card number.

What it does

Rules per card

per_transaction, per_day, per_month (required), categories, merchants, expires_at, single_use, and receipts required above an amount.

A nod in the window

A purchase past the rules waits up to 1.5 seconds, inside the network's 2, for a person's approval held for exactly that purchase.

No number for agents

The agent pays through a payment tool; only the card's person gets a details view, through the issuer's own frame.

Freeze, cancel, replace

Each takes effect at once.

Who spent what

Transactions by card, agent or person, with memos, receipts and a CSV export for accounting.

In code

Issue a card for an agent (a person's call, with the payments:cards scope)

TypeScript

// A person's token (payments:cards), never an agent's or a team key's
const card = await fetch("https://api.ducatpay.dev/v1/cards", {
  method: "POST",
  headers: { authorization: `Bearer ${personToken}`, "content-type": "application/json" },
  body: JSON.stringify({
    agent: "research-bot",
    currency: "usd",
    controls: { per_transaction: 5000, per_month: 50000, categories: ["computer_software_stores"] },
  }),
}).then((r) => r.json());

Python

# A person's token (payments:cards), never an agent's or a team key's
import json, urllib.request

req = urllib.request.Request("https://api.ducatpay.dev/v1/cards", method="POST",
    headers={"authorization": f"Bearer {person_token}", "content-type": "application/json"},
    data=json.dumps({
        "agent": "research-bot",
        "currency": "usd",
        "controls": {"per_transaction": 5000, "per_month": 50000,
                     "categories": ["computer_software_stores"]},
    }).encode())
card = json.load(urllib.request.urlopen(req))

curl

curl -s https://api.ducatpay.dev/v1/cards \
  -H "authorization: Bearer $PERSON_TOKEN" \
  -H "content-type: application/json" \
  -d '{"agent": "research-bot", "currency": "usd",
       "controls": {"per_transaction": 5000, "per_month": 50000,
                    "categories": ["computer_software_stores"]}}'
Agent cards endpoints
EndpointWhat
POST /v1/cards{agent, person, label, currency, controls}: a person's scope, never an agent's
PUT /v1/cards/{id}/controlschange the rules
POST /v1/cards/{id}/paythe agent's payment tool
POST /v1/cards/{id}/approvalshold a nod for one purchase
POST /v1/cards/{id}/freeze | unfreeze | cancel | replace
GET /v1/card-transactions?card|agent|personhistory

Good to know

Beta Built and tested against a simulated Stripe; not yet run on Stripe's test mode.

Related: AI agents paying, Agents guide, story 5, Security

More features

Start building in test mode

Sign up, make a key, and take a test payment in a few minutes. No card needed.