Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Cards Check card balance

Check card balance

Read what a card can spend now, and the balance it shares with the cardholder's other cards.

2 min read

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.

read a card's balance
curl --request GET \
--url https://api.gravv.xyz/v1/cards/a14ec356-f33d-4384-ba68-4d9bfa19765b/balance \
--header 'Api-Key: <API_KEY>'
answer
{
"data": {
"balance": 131.25,
"group_balance": 131.25,
"available": 131.25,
"currency": "USD",
"shared": false,
"card_group_id": "3f1d0c5e-2a8b-4b7e-9f3a-6c1e2d4b5a70"
},
"error": null
}
FieldMeaning
balanceWhat this card can spend now, in US dollars (a JSON number). It is 0 unless the card is active
group_balanceThe balance of the card's group, which is the money this card shares with the cardholder's other cards in the same group
availableWhat 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_creditSent 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
sharedtrue 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_idThe 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:

answer
{
"data": {
"balance": 45.00,
"group_balance": 45.00,
"available": 1.02,
"refund_credit": 43.98,
"currency": "USD",
"shared": false
},
"error": null
}

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.

Was this page helpful? Yes No