---
description: Mastercard response code 12 means Invalid Transaction. Learn why issuers decline these payments due to card restrictions and how to properly resolve them.
title: Mastercard Decline Code 12: Invalid Transaction
image: https://cdn.smartretry.com/cdn-cgi/image/width=1200,height=630,quality=85,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2F_next%2Fstatic%2Fmedia%2Fog-image.0z0q4_5kazzzo.jpeg
---

[Skip to main content](#main-content)

![Mastercard](https://cdn.smartretry.com/cdn-cgi/image/width=96,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fpayment-providers%2Flogos%2Fmastercard.svg)

Mastercard

# Mastercard Issuer Response Code 12: Invalid Transaction

hard decline

Last updated: September 25, 2026

## Still letting failed transactions slip through?

SmartRetry turns declines into approvals - automatically, intelligently, and without changing your payment provider.

Email address Let’s talk

Table of Contents

## About 12 \- "Invalid transaction"

## Key details

Brand

![Mastercard](https://cdn.smartretry.com/cdn-cgi/image/width=256,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fpayment-providers%2Flogos%2Fmastercard.svg)

Code

12

Category

Issuer Response Codes

Response

12

Detailed Response

Invalid transaction

hard decline

## What it means

Mastercard issuer response code 12 signifies an 'Invalid transaction' in ISO 8583 Data Element 39\. This typically occurs when the card issuer has a policy against the specific type of transaction attempted on the cardholder's account. It often indicates a mismatch between the attempted payment context and the allowed capabilities of the specific card product.

## Classification & retryability

hardRetryable: conditional

Do not automatically loop or blindly retry this decline. A retry is only viable if you identify and correct an invalid transaction parameter—such as a malformed merchant category, incorrect channel, or unsupported currency—before re-submitting.

## Why does code 12 occur?

* The cardholder is attempting to use a specialized card, such as a fleet card or FSA card, for an unpermitted merchant category.
* The issuer has a policy restricting cross-border or international transactions on the specific debit or credit card.
* The transaction type or processing mode (e.g., recurring vs. initial transaction) is fundamentally unsupported by the issuer for that account.

## How to solve 12?

First, validate your transaction data with your acquirer. Check the processing mode, currency, merchant category code (MCC), and cross-border settings to ensure the authorization request was correctly constructed. If the transaction parameters are accurate, the decline is due to a strict issuer policy. In this case, present an alternative payment method to the customer or instruct them to contact their issuing bank to lift the restriction.

### Solving as a merchant

Review the transaction payload for formatting errors, improper recurring transaction indicators, or mismatched cross-border flags. If the request is accurately formatted for the intended purchase, halt retries and prompt the shopper to use a different payment method.

### Solving as a customer

Provide an alternative credit card or payment method at checkout, or contact the card-issuing bank to request that they authorize this specific type of transaction.

💡Tip from SmartRetry Suppress automatic retries with identical payloads, as an unchanged authorization will consistently trigger this issuer block. Only re-attempt if your payment engine can dynamically alter the transaction context—such as switching to a local acquiring route to clear cross-border restrictions—otherwise prompt immediately for an alternative payment method.

[See the full list of Mastercard's decline codes \>](/payment-providers/mastercard#statuses)[Find code on Mastercard's website \>](https://developer.mastercard.com/mastercard-send/documentation/implementation/network-response-codes/)

### Frequently asked questions about this topic

Can I automatically retry Mastercard decline code 12?

Mastercard code 12 is generally non-retryable. Repeatedly submitting the same transaction without changing the request will not bypass an issuer policy restriction. You should only retry if you have corrected an invalid transaction parameter, like currency or processing mode.

Why did my customer receive an 'Invalid transaction' error?

This decline usually means the card issuer does not allow the specific type of transaction on that account. Common examples include using a restricted fleet card for retail purchases or attempting an international payment on a card limited to domestic use.

Is Mastercard code 12 a soft decline or a hard decline?

It functions as a hard decline in most contexts because it is tied to a firm issuer policy or card-product restriction. To proceed, the transaction payload must be materially altered or the customer must provide an alternative payment method.

#### Share this article

[![Share on X](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2F_next%2Fstatic%2Fmedia%2Ftwitter.21z6yr9njnznr.svg)](https://twitter.com/intent/tweet?text=Mastercard%20Issuer%20Response%20Code%2012%3A%20Invalid%20Transaction&url=https%3A%2F%2Fwww.smartretry.com%2Fdecline-code%2Fmastercard-issuer-response-code-12 "Share on X")[![Share on Facebook](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2F_next%2Fstatic%2Fmedia%2Ffacebook.3sbfjbsxa26qg.svg)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.smartretry.com%2Fdecline-code%2Fmastercard-issuer-response-code-12 "Share on Facebook")[![Share on LinkedIn](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2F_next%2Fstatic%2Fmedia%2Flinkedin.09sdc8tnlrn4a.svg)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.smartretry.com%2Fdecline-code%2Fmastercard-issuer-response-code-12 "Share on LinkedIn")

Make us your preferred source

![Kyle Regacho](https://cdn.smartretry.com/cdn-cgi/image/width=256,quality=75,format=auto,fit=cover/https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Faa4329c7f45a68c68f2fbccab899d0f43f3740f3f9e92d5c6ea711171fc1a35f%3Fs%3D96%26d%3Dmm%26r%3Dg)

Author

##### Kyle Regacho

[![LinkedIn](https://cdn.smartretry.com/cdn-cgi/image/width=32,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2F_next%2Fstatic%2Fmedia%2Flinkedin.09sdc8tnlrn4a.svg)Find me on Linkedin](https://www.linkedin.com/in/kdregacho/)

Focused on payment recovery, decline codes, and authorization optimization at SmartRetry. Helps payment teams turn failed transactions into recovered revenue

[Read all articles >](/authors/kyle-regacho)

## Join our newsletter!

Real strategies to recover lost revenue - straight to your inbox

Email address Subscribe

## Related codes

* [![Mastercard](https://cdn.smartretry.com/cdn-cgi/image/width=256,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fpayment-providers%2Flogos%2Fmastercard.svg)10Partial Approvalsoft declineRead more >](/decline-code/mastercard-issuer-response-code-10)
* [![Mastercard](https://cdn.smartretry.com/cdn-cgi/image/width=256,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fpayment-providers%2Flogos%2Fmastercard.svg)07Recurring payment: liability shift for initial, but not subsequent transactionstechnical declineRead more >](/decline-code/mastercard-eci-code-07)
* [![Mastercard](https://cdn.smartretry.com/cdn-cgi/image/width=256,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fpayment-providers%2Flogos%2Fmastercard.svg)06Acquirer exemption applied (EMV 3DS only)technical declineRead more >](/decline-code/mastercard-eci-code-06)

## Articles you may find interesting:

[View all](/blog)

[![Turning Payment Declines into Revenue with Context-Aware Retry Logic](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F09%2Frecovering-revenue-with-intelligent-retries.jpg) September 25, 2026 Turning Payment Declines into Revenue with Context-Aware Retry Logic Blind retries waste fees and damage issuer trust. By analyzing decline codes and timing reattempts around payroll cycles, payment teams can successfully salvage recurring revenue without customer disruption.](/blog/turning-payment-declines-into-revenue-with-context-aware-retry-logic)[![Why Payments Fail: Decoding Decline Codes and Modernizing Retry Logic](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F09%2Fpayment-declines-intelligent-retry-strategies.jpg) September 25, 2026 Why Payments Fail: Decoding Decline Codes and Modernizing Retry Logic Surface-level decline messages conceal critical issuer signals. Discover how intelligent retries, network tokens, and behavioral timing protect MID health and systematically recover lost recurring revenue.](/blog/why-payments-fail-decoding-decline-codes-and-modernizing-retry-logic)[![Decoding Payment Declines: Turning Authorization Failures into Recovered Revenue](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F09%2Fresolving-card-authorization-declines-issuer-codes.jpg) September 25, 2026 Decoding Payment Declines: Turning Authorization Failures into Recovered Revenue Blindly retrying failed transactions hurts authorization rates and risks network fines. Discover how decoding issuer responses turns card declines into recovered revenue.](/blog/decoding-payment-declines-turning-authorization-failures-into-recovered-revenue)[![The Real Cost of Payment Declines and How to Recover Lost Revenue](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F09%2Frecovering-failed-payment-declines-revenue-advmo-31a392251911.jpg) September 23, 2026 The Real Cost of Payment Declines and How to Recover Lost Revenue Payment failures cost merchants billions in uncaptured revenue and customer churn. Discover how data-driven retries and response code intelligence help teams recover failed transactions and protect conversion.](/blog/cost-of-payment-declines-recovery)

---

```json
{"@context":"https://schema.org","@type":"Article","headline":"Mastercard Issuer Response Code 12: Invalid Transaction","url":"https://www.smartretry.com/decline-code/mastercard-issuer-response-code-12","inLanguage":"en","author":{"@type":"Organization","@id":"https://www.smartretry.com/#organization","name":"SmartRetry","url":"https://www.smartretry.com","logo":{"@type":"ImageObject","url":"https://cdn.smartretry.com/logo.png","width":{"@type":"QuantitativeValue","value":175,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":29,"unitCode":"PX"}},"description":"SmartRetry is a smart payment recovery platform that helps businesses save revenue from failed payment transactions and reduce false declines.","sameAs":["https://x.com/smartretry","https://www.facebook.com/smartretry","https://www.instagram.com/smartretry","https://www.linkedin.com/company/smartretry","https://www.youtube.com/@smartretry"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","availableLanguage":["Hebrew","English"],"url":"https://www.smartretry.com/contact"},"address":{"@type":"PostalAddress","streetAddress":"Menachem Begin","addressLocality":"Tel Aviv-Yafo","addressCountry":"IL"}},"publisher":{"@type":"Organization","@id":"https://www.smartretry.com/#organization","name":"SmartRetry","url":"https://www.smartretry.com","logo":{"@type":"ImageObject","url":"https://cdn.smartretry.com/logo.png","width":{"@type":"QuantitativeValue","value":175,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":29,"unitCode":"PX"}},"description":"SmartRetry is a smart payment recovery platform that helps businesses save revenue from failed payment transactions and reduce false declines.","sameAs":["https://x.com/smartretry","https://www.facebook.com/smartretry","https://www.instagram.com/smartretry","https://www.linkedin.com/company/smartretry","https://www.youtube.com/@smartretry"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","availableLanguage":["Hebrew","English"],"url":"https://www.smartretry.com/contact"},"address":{"@type":"PostalAddress","streetAddress":"Menachem Begin","addressLocality":"Tel Aviv-Yafo","addressCountry":"IL"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.smartretry.com/decline-code/mastercard-issuer-response-code-12","name":"Mastercard Issuer Response Code 12: Invalid Transaction"},"description":"Mastercard response code 12 means Invalid Transaction. Learn why issuers decline these payments due to card restrictions and how to properly resolve them.","datePublished":"2026-09-24T11:14:47.000Z","dateModified":"2026-09-25T07:22:38.000Z","keywords":"mastercard code 12, invalid transaction decline, issuer response code 12, mastercard decline 12","about":{"@type":"Thing","name":"Mastercard Issuer Response Codes 12"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.smartretry.com/"},{"@type":"ListItem","position":2,"name":"Decline Code","item":"https://www.smartretry.com/decline-code"},{"@type":"ListItem","position":3,"name":"Mastercard","item":"https://www.smartretry.com/decline-code?provider=Mastercard"},{"@type":"ListItem","position":4,"name":"12","item":"https://www.smartretry.com/decline-code/mastercard-issuer-response-code-12"}]}
```
