Card decline reasons
Read why a card payment was declined from the webhook, and check the card's status, limit and balance when the reason is missing.
A declined payment arrives as a cards.transaction.payment webhook with transaction.status failed. Read transaction.declined_reason first. It is a code such as insufficient_funds, or a sentence, depending on the card program. It is null when the card program gave no reason, such as a decline by the card network or a fraud rule. Then confirm the cause from three reads, fix it and ask the cardholder to try again.
A money example. Ada tries to pay 45 USD and it is declined. Her card holds 30 USD, so you top it up with 20 USD and she pays. In another case, her card holds 200 USD, but its daily limit reads 0 after an update sent without limit. You set the limit back to 300 and she pays.
The webhook
transaction.amount is a JSON number in US dollars. The real event also carries the merchant and cardholder fields listed in the event catalogue. For each payment, Gravv sends pending, then completed or failed.
| declined_reason code | Meaning |
|---|---|
insufficient_funds | The card's balance is below the amount |
exceeds_daily_transaction_limit | The payment would take the card past its daily limit |
exceeds_single_transaction_limit | The payment alone is above the card's limit |
card_not_active | The card is not active: frozen, blocked or not yet activated |
card_not_activated | A physical card that the cardholder has not activated yet |
currency_mismatch | The network billed a currency other than the card's |
Some card programs send a sentence instead of a code. Show the cardholder your own message, and log the text you received.
Find the cause
status must be active, and spending_controls.daily_transaction_limit must be above the amount.balance must cover the amount.card_type. A physical card cannot spend today.| What you see | Likely cause | Fix |
|---|---|---|
status freeze | Card frozen | Unfreeze it (Manage card status) |
status blocked | Card closed | Issue a new card |
status inactive | A physical card not yet activated | Not yet available. See Physical card shipping |
balance below the amount | Not enough money | Fund the card |
daily_transaction_limit below the amount, or 0 | Over the daily limit, or you sent an update without limit | Send the intended limit with the current status |
| Several payments today add up past the limit | Daily limit reached | Wait 24 hours or raise the limit |
| All of the above are fine | A merchant, card network or fraud rule | Contact support with the card id, amount and time |
When declined_reason is null, tell the cardholder that this is the most likely cause, because none of these reads proves the reason.
In sandbox, you cannot make a card spend or decline through the API today. Spend and decline simulation is Not yet available. To test your handler, post the example above to your own endpoint, or resend a stored event (Gravv signs a resend like any other delivery).