---
description: Learn what Mastercard issuer response code 30 (Format error) means, why an incorrect terminal ID causes it, and how to fix and retry the transaction.
title: Decline Code 30: Format Error
image: https://cdn.smartretry.com/cdn-cgi/image/width=1200,height=630,quality=85,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F10%2Fog-decline-code-mastercard-issuer-response-code-30.png
---

MA

Mastercard

# Decline Code 30: Format Error

hard decline

Last updated: November 20, 2026

## Still letting failed transactions slip through?

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

Table of Contents

## Key details

Brand

Mastercard

Code

30

Category

Issuer Response Codes

Response

30

Detailed Response

Format error

hard decline

## Code by card network

| Network    | Code | Official wording |
| ---------- | ---- | ---------------- |
| Mastercard | 30   | Format error     |
| Diners     | 30   | Format error     |
| Discover   | 30   | Format error     |
| Maestro    | 30   | Format error     |

This transaction is not retriable

Payments failing with code 30 are hard declines and typically cannot be recovered by retrying. SmartRetry still helps you avoid future hard declines with smarter routing and validation.

But many other declines in your payment flow may still be recoverable. SmartRetry identifies which failed transactions have recovery potential and applies the right strategy to recover them.

[Find out what you can recover \>](/pricing)

## What it means

Decline code 30 is a Mastercard code: "Format error". Mastercard issuer response code 30 indicates that the issuer does not recognize the transaction details presented in the authorization request. It is a technical formatting or configuration error, most commonly triggered by an incorrect terminal ID (TID) or the presence of invalid characters in the transaction data. This decline is not related to the cardholder's available funds.

## Why does code 30 occur?

* The transaction request contains an incorrect or unregistered terminal ID (TID).
* The authorization payload includes malformed or invalid characters that the issuer cannot process.
* There is a persistent merchant integration or mapping defect causing improper transaction data formatting.

## How to solve 30?

First, review the original authorization request to verify that the terminal ID (TID) and merchant identifier match your acquirer's registered configuration. Check the transaction data payload for any malformed fields, invalid characters, or encoding errors. Once the formatting or configuration errors are identified and corrected, submit a new authorization request. If subsequent attempts fail after corrections, escalate the issue to your acquirer or processor with the original request, response, TID, and transaction timestamp.

### Solving as a merchant

Compare the submitted request with your acquirer's registered merchant and terminal configuration to validate field encoding, allowed characters, and routing parameters. Correct any improperly formatted data or incorrect TIDs in your payment gateway settings before attempting a retry. Suppress repeated identical attempts to avoid accumulating unnecessary declines.

### Solving as a client

No action is required from the customer, as this is a technical formatting issue on the merchant or processor side.

💡 Tip from SmartRetry Halt immediate automated retries on code 30, as repeating an identical payload will consistently fail and can trigger network penalty flags. Instead, hold the retry until your system applies automated character sanitization or reroutes the payment through a verified secondary acquirer connection.

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

### Frequently asked questions about this topic

Does Mastercard code 30 mean the customer has insufficient funds?

No. Code 30 indicates a format error, meaning the issuer does not recognize the transaction details. It is usually caused by an incorrect terminal ID or invalid characters in the request payload, not a lack of funds.

Can I immediately retry a transaction that returned code 30?

No, you should not blindly retry the identical authorization request. While Mastercard considers this code temporarily recoverable, you must first correct the underlying formatting or configuration error before retrying the payment.

What is the most common cause of a Mastercard format error decline?

According to Mastercard's Payment Acceptance API, the most common cause of code 30 is an incorrect terminal ID (TID) submitted in the authorization request.

#### 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=Decline%20Code%2030%3A%20Format%20Error&url=https%3A%2F%2Fwww.smartretry.com%2Fdecline-code%2F30-format-error "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%2F30-format-error "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%2F30-format-error "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

## 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)04Data share only, not authenticated, improves approval rate (EMV 3DS only)hard declineRead more >](/decline-code/eci-data-only)
* [![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)Read more >](/decline-code/eci-acquirer-exemption)
* [![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 transactionshard declineRead more >](/decline-code/eci-recurring)

## Articles you may find interesting:

[View all](/blog)

[![When Processing Stops: Navigating Gateway Locks and Account Holds](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F11%2Fresolving-payment-gateway-account-holds-guide.jpg) November 22, 2026 When Processing Stops: Navigating Gateway Locks and Account Holds When aggregators freeze processing, standard support tickets fail. Discover how fintech operators diagnose automated underwriting triggers, appeal held funds, and deploy redundant routing to eliminate single points of failure.](/blog/resolving-payment-gateway-locks-holds)[![Fine-Tuning Stripe for Subscriptions: How to Stop Losing Customers to Failed Payments](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F11%2Fstripe-subscription-payment-optimization.jpg) November 17, 2026 Fine-Tuning Stripe for Subscriptions: How to Stop Losing Customers to Failed Payments Default billing setups quietly surrender recurring revenue to preventable declines. Discover how adjusting stored credential flags, deploying network tokens, and timing retries protect subscriber retention and improve authorization health.](/blog/optimize-stripe-recurring-payments)[![Understanding CAVV: How 3D Secure Tokens Secure Approvals and Shift Liability](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F11%2Fcavv-cardholder-authentication-verification-value-3ds.jpg) November 10, 2026 Understanding CAVV: How 3D Secure Tokens Secure Approvals and Shift Liability Mastering 3D Secure CAVV tokens helps payment teams prevent false declines and secure fraud liability shifts. Learn how cryptographic validation impacts issuer authorization decisions and recurring payment retry performance.](/blog/what-is-cavv-in-3ds)[![Does Numeral Offer Load Balancing for Payment Requests?](https://cdn.smartretry.com/cdn-cgi/image/width=3840,quality=75,format=auto,fit=cover/https%3A%2F%2Fcdn.smartretry.com%2Fuploads%2F2026%2F11%2Fnumeral-payment-routing-load-balancing-guide.jpg) November 7, 2026 Does Numeral Offer Load Balancing for Payment Requests? Discover why traditional load balancing fails across banking rails and multi-acquirer setups, and how intelligent routing protects your transaction approval rates.](/blog/numeral-load-balancing-payment-requests)

![SmartRetry - Payment Recovery Platform](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%2Flogo.3mm2n0hdxl3mi.svg)

## Decline codes tell you why. We fix it.

SmartRetry reads every decline reason and applies the right retry strategy for each one. Your recovery rate goes up without any changes to your payment provider.

---

```json
{"@context":"https://schema.org","@type":"Article","headline":"Decline Code 30: Format Error","url":"https://www.smartretry.com/decline-code/30-format-error","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","https://github.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","https://github.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/30-format-error","name":"Decline Code 30: Format Error"},"description":"Learn what Mastercard issuer response code 30 (Format error) means, why an incorrect terminal ID causes it, and how to fix and retry the transaction.","datePublished":"2026-09-24T11:16:40.000Z","dateModified":"2026-11-20T11:10:08.000Z","keywords":"Mastercard code 30, decline code 30, format error, terminal ID error, invalid characters, temporarily recoverable decline","about":{"@type":"Thing","name":"Mastercard Issuer Response Codes 30"}}
{"@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":"30","item":"https://www.smartretry.com/decline-code/30-format-error"}]}
```
