close_card
Permanently close a virtual card. This is irreversible — the card cannot be reopened. Safe to call on an already-closed card (idempotent). The user's rewards card (the card their tokenback redeems onto) is close-protected: closing it returns its balance to the wallet but retires the card number the user may have on file at AI labs, so it requires confirm_rewards_card — set it ONLY after the user explicitly confirms they want the rewards card closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | The card ID to close | |
| approval_id | No | Approval id from a prior approval_required response, once the user has approved. Only for cards created through ANOTHER app: first call without it (the user is emailed an approve link), then retry with it. | |
| confirm_rewards_card | No | Required to close the rewards card. Only set after the user explicitly confirms; never set it preemptively. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | No | The ID of the card that was closed. | |
| status | No | Outcome discriminator; always "closed" on success. | |
| message | Yes | Human-readable confirmation that the card was closed. | |
| approvalId | No | Present when status is approval_required: pass it back as approval_id after the user approves. |