Docs

Virtual cards

Virtual cards

Issue virtual cards for your customers over the API, list them, change their limits, freeze them and close them. A card belongs to a payer, which is your customer, and to the API key that issued it. The API follows the usual shape of a resource: create, list, read, update, delete.

note

The sandbox simulates the card provider. The cards it issues are simulated: their numbers can never be charged anywhere, and nothing real moves. The requests and responses are the ones a live deployment takes, so what you build here carries over. What the sandbox does.

Endpoints#

Method Path
POST/api/cards Issue a card.
GET/api/cards List your cards, newest first.
GET/api/cards/{id} Read one card.
PATCH/api/cards/{id} Change its label, metadata or limits.
DELETE/api/cards/{id} Close it for good.
POST/api/cards/{id}/freeze Stop every purchase.
POST/api/cards/{id}/unfreeze Allow purchases again.
POST/api/cards/{id}/reveal The number and security code, encrypted to your key.

Every response is { "ok": true, "data": … } or { "ok": false, "error": "…", "code": "…" }, and none is ever kept by a cache.

Limits and ownership#

  • A card is private to the key that issued it. Another key gets 404 for it, from every endpoint and every MCP tool, and never sees it in a list. Other records, payers among them, are shared across keys on a deployment as described in Limits.
  • Amounts are in euros, with at most two decimals, like a mandate's. A card's limits are at most 100000.
  • Allowance. The sandbox allows 500 cards per payer that are not closed, and 5,000 per key in all. Past either, a create is 409 with card_limit_reached. Closing a card frees its place for its payer.
  • The sandbox forgets. Cards live in memory, so a redeploy or POST /api/reset empties them.
  • No rate limiting.

Not yet#

Webhooks for cards, a list of what was spent on a card, and cards in the Python SDK are not available yet. Read GET /api/cards/{id} for a card's state.