Add a card
add_cardAdds a card the user holds to their wallet by its id from search_cards, creating the wallet if there isn't one. The reply says what the card still needs (category picks, memberships, activations); ask the user about those. Stores only the card's product id and settings, never card numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bonus | No | A welcome bonus the user is working toward, so purchases recorded on this card count toward it and answers can favor it. Ask when they opened the account; spending needed and the deadline default to the card's published offer. null stops tracking it. | |
| picks | No | For cards where the cardholder picks bonus categories: choice id → option ids, from search_cards, e.g. {"five-percent": ["tv-internet-streaming", "fast-food"]}. Saved for the current period. Ask the user; don't guess. | |
| cardId | Yes | The card id from search_cards, e.g. chase-sapphire-preferred. | |
| capSpent | No | Dollars already spent this period on a capped bonus, for a card the user starts tracking partway through: cap key (as list_wallet shows it) → dollars, e.g. {"five-percent-quarterly": 400}. Ask; recorded purchases add to it from then on. | |
| activated | No | Rule ids the user has activated with the issuer, such as rotating categories. Replaces the current list. | |
| anniversary | No | The account's anniversary as MM-DD, for cards whose cap resets on it. | |
| checkoutLabel | No | How the card appears at checkout or in a browser wallet, e.g. "Amex Gold". Optional; null goes back to the card's own name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| cardIds | Yes | ||
| created | Yes | ||
| message | Yes | ||
| memberships | Yes |