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 --categories. Use one or the other; the command refuses both together. --preset ai_labs makes a multi-use card, and --multi-use beside it changes nothing. A multi-use card with a category rule on a strict preset 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 --categories <list> --mode watch. 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, add --mode watch to the preset; pass one of the two, not both:
Agentcard checks this rule at checkout and at settlement; the card network does not. 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:
--multi-use can also be refused with multi_use_limit_reached, before any card is issued. A multi-use card holds its whole limit as collateral for as long as it stays open, so an account can have a limit on how many it may keep open, and the message on stderr names the allowance in effect. Run agent-cards plan to read it: the Multi-use row shows a number, or shows the allowance as unlimited, in which case this refusal does not apply. Where the allowance is a number, close a multi-use card you no longer need, or drop --multi-use for a single-use card. 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 --currencies pesos -y answers:
Inside the deprecation window a reusable ai_labs card is created and carries the notice: