retries.com | Payment Infrastructure Reference

Response Code 12: Invalid transaction

HARD DECLINE DO NOT RETRY ISO 8583 FIELD 39

The transaction type is not supported for this card or merchant category.

What Does Code 12 Mean?

Response code 12 indicates that the transaction type specified in the Processing Code (Field 3) is not supported for this card, merchant category, or acquirer configuration. The card itself may be valid and funded, but the specific operation being requested is not allowed.

This is a configuration error, not a cardholder problem. Common scenarios include attempting a refund on a card that was never charged through that processor, or sending a transaction type that the merchant's account is not set up to handle. Retrying the same transaction will always produce the same result.

Why You Should Not Retry

Terminal Decline

Do not retry. Check your processing code (Field 3) configuration.

Common Causes

Network Behavior

The same response code can mean different things depending on the card network. Here is how each network treats Code 12:

Network Retry? Limit Notes
Visa No No retries permitted Visa Category 1: issuer will never approve. Any retry triggers the excessive reattempt fee. This is a permanent configuration issue, not a timing problem.
Mastercard
MAC 03
No Do not retry Typically accompanied by MAC 03. The transaction type itself is not supported, so retrying achieves nothing.
Amex No Rare on Amex. When the transaction type is invalid, Amex will typically return this code directly rather than masking it as Code 05.
Discover No Standard hard decline. Fix the transaction configuration before resubmitting.

Platform Mappings

This code surfaces under different names depending on the payment platform:

ISO 858312 - Invalid transaction
Stripeinvalid_amount

Related Decline Codes

03 Invalid merchant The merchant ID is not recognized or has been deactivated by the acquirer 57 Transaction not permitted This card type is restricted from this transaction type or merchant category

See This Code in Action

Watch how response code 12 flows through a complete ISO 8583 authorization lifecycle.

Open Transaction Simulator