Skip to main content
Fund and issue a new virtual card
Pass --preset <name> to put a saved or built-in set of rules on the card, or spell the rules out with flags such as --total, --per-day, and --only-categories. Use one or the other; the command refuses both together. Pass neither and the card inherits your app default, then your account default. --preset ai_labs makes a multi-use card, and --multi-use beside it changes nothing. A multi-use card with a Strict category is refused with strict_category_multi_use_unsupported, because the card network cancels such a card after its first charge. Use a single-use card, or --watch-categories. The rules are explained in Set rules on a card; the account and app defaults in cards preset. Say which currencies the card may pay in:
A charge in any other currency is refused, and you are told why. Write codes or plain names in any case, comma-separated: usd,eur or dollars,euros. If you would rather be told than refused, use --watch-currencies with the same list; pass one of the two, not both:
Agentcard checks this rule at checkout and at settlement; the card network does not. Which names are refused as ambiguous, and what happens after the charge, are in Choose the currencies. The card shows the rule on its Preset line, and a Network line says who enforces it. Captured from a local sandbox:
A refused create writes one line to stderr, the code first, and exits 1. Captured from a local sandbox:
If you write a name that means several currencies, the create is refused before any card is issued, and the message lists what it could mean. agent-cards cards create --amount 20 --only-currencies pesos -y answers:
Inside the deprecation window a reusable ai_labs card is created and carries the notice: