Give a cardholder up to 10 cards, sharing their balance or with a balance of their own. Physical cards are Not yet available.
3 min read
Use this recipe to give a cardholder up to 10 cards. Each extra card shares the cardholder's balance or has a balance of its own. Physical cards are Not yet available.
Who it is for. This recipe is for a consumer app that gives Ada a separate card for subscriptions.
Status. Additional virtual cards are Available. Physical cards are Not yet available.
Money example
Ada's main card holds 131.25 USD.
1.
You issue her a "subscriptions" virtual card with a balance of its own and a 50 USD daily limit.
2.
You move 30 USD to the new card. The main card still holds 131.25 USD, and the subscriptions card holds 30 USD.
3.
A 9.99 USD subscription charges the subscriptions card, which leaves 20.01 USD on it.
Before you start
•
Ada's application is approved and her first card exists. Check with GET /v1/cards?customer_id=….
•
She holds fewer than 10 cards that are not blocked.
Send {"mode": "shared"}, or leave funding out, to spend from the same balance as the main card.
2. Check it
GET /v1/cards/0c9b8a7f-6e5d-4c4b-9a3f-2e1d0c9b8a76 shows card_typevirtual, statusactive and the 50 USD limit. Next, top it up.
Physical cards
Not yet available. A physical card cannot make a payment today. In sandbox, the request returns card creation failed! and leaves an empty card row. In live, the card starts inactive, and no API call activates it. For the shipping address rules, see Physical card shipping.
What can go wrong
Response (HTTP 400 unless noted)
Why
Fix
customer already holds the maximum of 10 cards
The cardholder has reached the cap of 10 cards
Block an unused card
missing idempotency key in request headers
The request has no Idempotency-Key
Add one
422 idempotency_key_reused
You sent the same key with another body
Use a new key for each card
funding.mode must be "shared" or "own"
The mode is invalid
Send shared or own
this card's balance is a new provider account whose application is <status>; retry with the same Idempotency-Key once it is approved