Check card balance
Read what a card can spend now, and the balance it shares with the cardholder's other cards.
Get card balance returns what a card can spend and the balance of the group it belongs to.
A money example. Ada's card holds 131.25 USD. You freeze it. balance then reads 0, while group_balance still reads 131.25. You unfreeze it, and balance is 131.25 again.
| Field | Meaning |
|---|---|
balance | What this card can spend now, in US dollars (a JSON number). It is 0 unless the card is active |
group_balance | The balance of the card's group, which is the money this card shares with the cardholder's other cards in the same group |
available | What a withdrawal from this card may take, in US dollars: the part of the group's balance that can leave the card. It is sent for an active, freeze or blocked card, and left out for an inactive one |
refund_credit | Sent only when it is above 0. Merchant refunds the card can spend but that cannot be withdrawn, in US dollars. It equals group_balance − available |
shared | true when more than one card is in the group (a blocked card still counts). Money taken from a shared group is money the other cards can no longer spend |
card_group_id | The group. Send it as funding.card_group_id with mode shared to put a new card in the same group |
Refunds can be spent, not withdrawn
When a merchant refunds a purchase, the money comes back to the card and the card can spend it again. On some card programs the card network does not let a refund be paid out, so it is not in available. It shows as refund_credit instead.
A money example. Ada funds her card with 23.01 USD and pays 21.99 USD for a subscription. Then two subscription charges of 21.99 USD are refunded. Her card can spend 45.00 USD, but only 1.02 USD can be withdrawn:
Show balance as what the card can spend, and available as what can be withdrawn. A withdrawal above available is refused, so offer no more than available. Refund credit stays on the card: it cannot be withdrawn, and once a card is blocked it cannot be spent either.
A card issued with funding.mode own has a group of its own. In sandbox, a funding shows once its transfer is completed, and a withdrawal is taken off once, when it starts.
Read the balance after a funding completes, before a large payment, and before you block a card.