Decline code · Hard decline
Decline code 12: Invalid Transaction
The issuer considers the transaction itself malformed or impermissible, independent of the account's standing. Something about the transaction type, its structure, or its context is not allowed, such as a refund attempted against a card that cannot accept one or a transaction type the card does not support.
Should you retry?
Resubmitting the identical message will fail identically, so do not simply retry. Fix the transaction construction or reference first; a corrected submission is a new transaction, not a retry, and can be sent immediately. Visa classifies 12 as a Category 1 code for reattempt purposes, so unchanged retries also carry compliance exposure.
Why code 12 happens
- The transaction type is not supported for this card, for example a cash-advance style request on a card without that feature.
- A follow-up operation references an original transaction incorrectly, such as a capture or refund pointing at a mismatched or expired authorization.
- The card product prohibits the operation, which happens with certain prepaid and government-issued cards.
- Gateway configuration is sending a processing code or transaction category the issuer rejects for this card type.
- A duplicate or out-of-sequence message confused the issuer's transaction matching.
What to do about it
- Look at what operation you actually sent: 12 on captures, refunds, or reversals usually means a broken reference to the original transaction.
- Verify your gateway's transaction-type mapping for the card products involved, especially prepaid and commercial cards.
- If the code appears on plain sale authorizations, capture the raw request and open a ticket with your processor, since the message construction is likely wrong.
- Re-key the transaction from scratch rather than resubmitting the identical message when you suspect a referencing problem.
Frequently asked questions
- What causes an invalid transaction decline code 12?
- The issuer rejected the transaction's type or structure, not the account. Common causes are refunds or captures referencing the wrong original transaction, unsupported transaction types for that card product, or gateway configuration errors.
- Can the customer fix a code 12 decline?
- Rarely. This code almost always points at how the merchant or gateway built the transaction. Trying a different card sometimes works if the issue is card-product support, but the durable fix is on the processing side.
Related decline codes