Founder deal: 75% off the lifetime licence. Unlimited sites, one payment, every update.See the founder plan
Home / Blog / Declines and diagnostics

Mastercard Decline Codes and Merchant Advice Codes Explained

Mastercard decline codes come with a Merchant Advice Code: MAC 01 update the card, 02 retry later, 03 stop. Here is how to act on each one.

Mastercard decline codes are issuer response values, and the most useful extra signal is the Merchant Advice Code (MAC), a short code that tells you whether to retry. MAC 01 means new account information is available, 02 means try again later, and 03 means do not try again. NMI only exposes the MAC when your processor returns it.

What Mastercard decline codes mean

A declined Mastercard payment carries the same kind of issuer value as any card brand, for example 05 do not honor, 51 insufficient funds or 54 expired card. Wording and exact numbers vary by processor and card network, so check your processor’s code list. What Mastercard adds is the MAC, sent alongside the decline so a merchant can act on it. The general layers are in the decline codes guide.

The Merchant Advice Code, MAC 01, 02 and 03

  • MAC 01, new or updated account information. The issuer has new card details, such as a new number or expiry. Ask the customer for the updated card, or use an account updater service if your processor offers one.
  • MAC 02, cannot approve at this time. The issuer may approve later. Retry after a delay, not immediately.
  • MAC 03, do not try again. Stop. Re-submitting this card will not work and can draw penalties.

Mastercard defines more MAC values than these three, and rules change, so treat this as the core set and confirm the full list and retry limits with your acquirer.

Where the MAC appears in NMI

The classic NMI response documents an optional merchant_advice_code field. It is returned only when the API configuration returns it. If you do not see it in the order note or the gateway history, your processor is not sending it, and nothing in the plugin can create it.

NMI also has response codes that read like advice: 263 Declined-Update cardholder data available, 264 Declined-Retry in a few days, and 261 or 262 for stopping recurring payments. Whether those line up with a MAC value depends on your processor, so read the response text rather than assuming.

A decision rule for Mastercard declines

  1. Open the order note and find the response code and processor text.
  2. If a MAC is present, follow it: 03 stops all retries on that card for that transaction.
  3. MAC 01: collect the new card details from the customer before any retry.
  4. MAC 02: schedule one retry in a few days for renewals. For a one-time checkout, ask for another card now.
  5. No MAC: use the issuer code. Do not honor (05) gets one retry at most. Pick up or stolen values mean stop.

This is the same logic as the hard versus soft decline split, with the MAC acting as the issuer’s own vote.

Common Mastercard codes and the usual NMI match

  • 05 do not honor, usually NMI 201. See NMI do not honor.
  • 51 insufficient funds, usually NMI 202.
  • 54 expired card, usually NMI 223.
  • 61 and 65 limits, usually the NMI 203 Over limit family. See codes 61 and 65.

“Usually” matters here. The match depends on the processor.

What to tell the customer

Your bank declined this payment. Please try another card, or contact your bank and ask them to approve a payment to our store.

When to stop retrying and who to call

Stop on MAC 03 and on any lost, stolen or pick up value. Call your processor or reseller if you see a high share of declines with no MAC when you expect one, because MAC delivery is a processor setting. The cardholder calls the bank for every issuer refusal. See also credit card return codes.

How NMIWP helps

NMI for WooCommerce records the raw response code, response text, AVS and CVV results on each WooCommerce order note in the free plugin, which is where you check for a MAC. Retry on soft decline for subscriptions is an Enterprise feature. The plugin cannot override an issuer decision. More lookups are on the NMI response code lookup.

Quick answers

What is a merchant advice code?

A Mastercard code sent with a decline that says whether to retry, update the card or stop.

What do MAC 01, 02 and 03 mean?

New account information, try again later, and do not try again.

Why is there no MAC in my NMI order note?

Your processor is not returning it, or the decline had no advice attached.

Worked example: a declined Mastercard renewal

A monthly order is charged to a stored Mastercard and declines. The customer sees nothing at the time, because the charge ran in the background. On the order you see a 2xx response code and the processor text. In one case the text carries no advice. In a second case the gateway response includes a merchant advice code of 03.

For the first case, retry once after a few days. For the second, stop. Do not schedule another attempt on that card, and ask the customer for a different one. Send this:

Hi, your card issuer declined this month’s payment and asked that we not try that card again. Please add a different card to your account and we will take the payment then.

If the advice were 01, you would ask for the updated card details instead. If it were 02, you would wait and retry once.

Mistakes to avoid with Mastercard declines

  • Retrying a card after MAC 03. The issuer told you not to.
  • Assuming the code is missing because the plugin hid it. If the processor did not return it, no setting will add it.
  • Treating MAC values as NMI response codes. They are separate fields.
  • Retrying immediately and repeatedly after MAC 02. Space attempts out.
  • Quoting the code to the customer. Tell them what to do, not what the code is.

More in this series: NMI Processor Response Codes vs Gateway Response Codes | NMI Response Codes 400 to 461: Processor Errors and Merchant Setup Problems | NMI Response Codes 220 to 226: Incorrect Payment Information

Last reviewed November 2026.

NMI for WooCommerce

Read every decline in the order note

The free plugin writes the raw response and processor text into each WooCommerce order.

See pricing

Free on WordPress.org. Enterprise adds retry on soft decline.