# Retry Signals

_Learn about how to enable and use Retry Signals._

![An illustration of a declined payment receiving a retry signal]()

> **Preview**
>
> Retry Signals is in preview and is subject to change. You can enroll
>   Visa and Mastercard merchant IDs.
>   To get access, [register your
>   interest](https://tally.so/r/b5Xkeg?utm_medium=docs&utm_source=evervault&utm_campaign=beta_launch_intelligent_retries).

Retry Signals helps recover lost revenue from declined transactions. It tells you when a declined card is likely to succeed again, so you can retry the payment at the right time.

Declined transactions impact all businesses to some degree and are often caused by temporary issues, such as insufficient funds. They can negatively impact revenue, support costs, customer loyalty, and brand trust. To prevent these issues, most solutions retry the payment based on some kind of static schedule, without any signal that the retry will succeed. Retry Signals fills this gap. It uses network-level data to determine when a retry is more likely to succeed.

- **Increase approval rates**: Retry when there's a signal that the card will succeed, instead of on a fixed schedule.
- **Maximize revenue recovery**: Recover payments that would otherwise be written off after a temporary decline.
- **Mitigate excessive retry fines**: Fewer blind retries means fewer network penalties for repeatedly retrying declined cards.
- **Prevent service disruptions**: Keep subscriptions and services running without asking customers to update their payment details.

## How it works

After a monitored decline, the card is watched for signs that a retry will succeed. When a retry is likely to succeed, Evervault sends you a signal to retry the payment.

![A flow diagram showing a declined payment being monitored, Evervault receiving a signal, and Evervault sending a webhook so you can retry the payment]()

1. **Configuration**: Retry Signals is configured per merchant. To onboard your merchant, use the [Retry Signals Enrolment API](#enroll-your-merchants). Then, configure a webhook endpoint in the Dashboard and subscribe to the `payments.network-retry-signals.signal` event.
2. **Monitoring**: After enrollment, declined transactions on that MID are [monitored](#monitoring) to find the best moment for a retry.
3. **Retry signals**: When a retry is likely to succeed, Evervault sends a [signal event](#the-retry-signal-event) to your webhook endpoint so you can retry the payment.

### Enroll your merchants

> **Supported merchant countries**
>
> Retry Signals is available for merchants registered in the [supported countries](#supported-merchant-countries). Onboarding a MID registered elsewhere may fail.

Enroll your merchant IDs (MIDs) with the [Retry Signals Enrolment API](/api#createNetworkRetrySignalsEnrolment). One request enrolls up to ten identifiers for one merchant, on Visa, Mastercard, or both. Each identifier is one of the following:

- A `networkMid`, when you know the MID
- A list of up to 50 `networkTransactions`, when you don't know the MID. We recommend providing at least three.

For a list of transactions, Evervault locates the MID or MIDs that the transactions were processed on and enrolls each one. To find the transaction IDs, see [Locating a transaction ID](#locating-a-transaction-id). The `timestamp` of each transaction is optional, but it helps locate the MID.

After onboarding, it can take up to three weeks before monitoring starts and you receive signals.

#### cURL

```bash
curl -X POST 'https://api.evervault.com/payments/network-retry-signals/onboarding' \
  -H 'Content-Type: application/json' \
  -u '<app_id>:<api_key>' \
  -d '{
    "merchant": "merchant_123456789098",
    "identifiers": [
      { "network": "visa", "networkMid": "000000000007777" },
      {
        "network": "mastercard",
        "networkTransactions": [
          { "networkTransactionId": "MCC123456789012345", "timestamp": "2026-10-20T14:03:00Z" }
        ]
      }
    ]
  }'

[ANNOTATION lines=5-5]
The Evervault merchant that signals are delivered for.
[/ANNOTATION]

[ANNOTATION lines=7-7]
A MID you already know.
[/ANNOTATION]

[ANNOTATION lines=10-12]
Transactions processed on the MID you want to enroll. Evervault uses them to locate the MID.
[/ANNOTATION]
```

#### Node

```javascript
const response = await fetch(
  "https://api.evervault.com/payments/network-retry-signals/onboarding",
  {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: "Basic " + btoa("<app_id>:<api_key>"),
    },
    body: JSON.stringify({
      merchant: "merchant_123456789098",
      identifiers: [
        { network: "visa", networkMid: "000000000007777" },
        {
          network: "mastercard",
          networkTransactions: [
            { networkTransactionId: "MCC123456789012345", timestamp: "2026-10-20T14:03:00Z" },
          ],
        },
      ],
    }),
  },
);

[ANNOTATION lines=10-10]
The Evervault merchant that signals are delivered for.
[/ANNOTATION]

[ANNOTATION lines=12-12]
A MID you already know.
[/ANNOTATION]

[ANNOTATION lines=15-17]
Transactions processed on the MID you want to enroll. Evervault uses them to locate the MID.
[/ANNOTATION]
```

#### Python

```python
import requests

response = requests.post(
    "https://api.evervault.com/payments/network-retry-signals/onboarding",
    auth=("<app_id>", "<api_key>"),
    json={
        "merchant": "merchant_123456789098",
        "identifiers": [
            {"network": "visa", "networkMid": "000000000007777"},
            {
                "network": "mastercard",
                "networkTransactions": [
                    {"networkTransactionId": "MCC123456789012345", "timestamp": "2026-10-20T14:03:00Z"},
                ],
            },
        ],
    },
)

[ANNOTATION lines=7-7]
The Evervault merchant that signals are delivered for.
[/ANNOTATION]

[ANNOTATION lines=9-9]
A MID you already know.
[/ANNOTATION]

[ANNOTATION lines=12-14]
Transactions processed on the MID you want to enroll. Evervault uses them to locate the MID.
[/ANNOTATION]
```

The response has one enrollment in `accounts` for each identifier, in the same order as the request. Store the `id` of each enrollment and use it to [retrieve the enrollment](/api#getNetworkRetrySignalsEnrolment) and check its `status`.

```json
{
  "merchant": "merchant_123456789098",
  "accounts": [
    {
      "id": "network_retry_signals_enrolment_4f0178a44fea",
      "network": "visa",
      "networkMid": "000000000007777",
      "locatedMids": [],
      "status": "in-progress"
    },
    {
      "id": "network_retry_signals_enrolment_1bcd286c8e11",
      "network": "mastercard",
      "networkTransactions": [
        { "networkTransactionId": "MCC123456789012345", "timestamp": "2026-10-20T14:03:00Z" }
      ],
      "locatedMids": [],
      "status": "in-progress"
    }
  ],
  "missingForBoarding": {
    "visa": ["contact.phoneNumber", "contact.name"]
  }
}

[ANNOTATION lines=17-17]
Starts empty. Each MID that Evervault locates from the transactions appears here with its own status.
[/ANNOTATION]

[ANNOTATION lines=21-23]
Merchant details still needed to enroll the MID. Empty when nothing is missing.
[/ANNOTATION]
```

A list of transactions can belong to more than one MID. Each located MID is enrolled separately and has its own `status` in `locatedMids`, so one MID can start receiving signals while another is still being enrolled.

Each MID and transaction can be part of only one open enrollment. If a request includes one that's already being enrolled, the API returns a `409` error that points to the identifier, and doesn't create any of the enrollments in the request.

#### Visa merchant details

In addition to the existing details provided when creating a merchant, Visa requires the merchant's business phone number and a contact name. Set them in the `contact` attribute when you [create](/api#createMerchant) or [update](/api#updateMerchant) the merchant, before you enroll the MID.

If they're missing, the enrollment is still created, and `missingForBoarding` lists the merchant attributes to set. An open enrollment can't be sent again, so contact Evervault support to complete it.

Only production apps can be onboarded. Calling the Enrolment API with a [Sandbox app](/developers/sandbox) returns a `403` response. To test your integration in a Sandbox app, [simulate a signal](#testing) instead.

#### Supported merchant countries

Merchants must be registered in one of the following markets.

| Region | Supported markets |
| --- | --- |
| North America | United States and Canada |
| Europe | The European Economic Area (EEA) and the United Kingdom |
| Latin America and the Caribbean | All markets, except sanctioned markets (Cuba, Venezuela, and Nicaragua) |
| Asia Pacific | Australia, Brunei, Cambodia, Fiji, Hong Kong, Indonesia, Japan, Laos, Macao, Malaysia, Mongolia, New Zealand, the Philippines, Singapore, Taiwan, Thailand, and Vietnam |
| Eastern Europe, Middle East, and Africa | Armenia, Azerbaijan, Bahrain, Egypt, Georgia, Ghana, Iraq, Jordan, Kazakhstan, Kenya, Kuwait, Lebanon, Mauritius, Morocco, Nigeria, Oman, Pakistan, Qatar, Saudi Arabia, Somalia, South Africa, Tanzania, Tunisia, Uganda, the United Arab Emirates, Uzbekistan, Yemen, and Zimbabwe |

### Monitoring

After enrollment, declines on your MID are tracked. If a transaction on the MID receives a 51 or 61 decline code, the card used in that transaction is monitored.

> Monitoring is triggered only for the following response codes:
>   - Decline Code 51: Insufficient Funds
>   - Decline Code 61: Exceeds Withdrawal Amount Limit

#### Duplicate decline prevention

When a repeat decline occurs for the same PAN, MID, and amount, the system doesn't initiate a new monitoring session. It also avoids new sessions if a decline occurs within an existing monitoring period. This avoids redundant tracking, minimizes system load, and reduces duplicate notifications.

#### Self-retry detection (auto-termination)

If a successful authorization is observed independently (e.g., the customer pays manually), the active monitoring session is canceled.

## The retry signal event

Here is an example of a retry signal webhook event:

```json
{
	"id": "webhook_event_0aa6ff0fee57",
	"type": "payments.network-retry-signals.signal",
	"data": {
		"network": "mastercard",
		"signal": "retry-now",
		"amount": 12345,
		"networkTransactionId": "W3T51Z",
		"timestamp": "2026-02-04T13:53:47.314Z",
		"currency": {
			"alphaCode": "usd",
			"numericCode": 840
		},
		"metadata": {
			"notificationId": "M8OjZWZgRi0uZLa6PdB0CIavqctFyipx",
			"acquirerMerchantId": "12354689987",
			"cardBin": "5123456",
			"cardLastFour": "9000",
			"tokenBin": "5234567",
			"tokenLastFour": "1234",
			"maskedCardNumber": "512345XXXXXX9000"
		}
	}
}

[ANNOTATION lines=6-6]
`retry-now` means conditions suggest a retry will now succeed, so it's a good time to retry.
[/ANNOTATION]

[ANNOTATION lines=7-9]
Use these to match the signal to the original declined transaction in your PSP.
[/ANNOTATION]

[ANNOTATION lines=14-22]
Card network-specific metadata. Fields vary by network.
[/ANNOTATION]
```

A retry signal webhook event has two sections: the signal status and transaction information, and card network-specific transaction metadata.

### Signal status and transaction information

**Attributes**

- `network` `string` — The card network of the declined transaction.
- `signal` `string` — The status of the signal. These are outlined in more detail below.
- `amount` `number` — The amount of the declined transaction in minor currency units.
- `networkTransactionId` `string` — The card network-specific transaction ID.
- `timestamp` `string` — The time the initial transaction failed.
- `currency` `object` — An object containing the ISO 4217 alphabetic currency code, and the ISO 4217 numeric currency code.

### Card network metadata

#### Mastercard metadata

**Attributes**

- `notificationId` `string` — Mastercard's unique reference for this specific alert.
- `acquirerMerchantId` `string` — The merchant ID enrolled with Mastercard for Retry Signals.
- `cardBin` `string` — The first 6-8 digits of the card number used in the declined transaction.
- `cardLastFour` `string` — The last four digits of the card used in the declined transaction.
- `tokenBin` `string` — The first 6-8 digits of the network token number used in the declined transaction.
- `tokenLastFour` `string` — The last four digits of the network token number used in the declined transaction.
- `maskedCardNumber` `string` — The masked card number used in the declined transaction.

> Either `cardBin` and `cardLastFour`, or `tokenBin` and `tokenLastFour` will be present depending on whether a PAN or network token was used in the declined transaction.

## Signal statuses

| Signal | Description | Availability |
| --- | --- | --- |
| `retry-now` | Issued when conditions suggest that funds are available and a previously declined transaction can be retried. | Available |
| `monitoring-started` | Indicates that monitoring started for the declined transaction. No retry is advised. | Coming soon |
| `monitoring-expired` | Monitoring period (30 days) ended without a successful retry. No further alerts will be sent. | Coming soon |
| `monitoring-cancelled` | Monitoring has ended because a successful retry was independently observed. No further alerts will be sent. | Coming soon |

> Only `retry-now` is currently available and requires merchant action. Monitoring lifecycle statuses will be informational when available and may be used for reporting, logging, or transparency purposes.

## Matching signals to failed transactions

To retry the failed transaction after a webhook signal, you can match on the following set of identifiers from your PSP:

- Transaction timestamp
- Network transaction ID
- Last four digits
- BIN
- Masked PAN

Here's an example handler that matches a `retry-now` signal to the declined payment and retries it.

```javascript filename='webhook.js'
app.post("/evervault", async (req, res) => {
  const event = req.body;

  if (event.type === "payments.network-retry-signals.signal") {
    const { signal, networkTransactionId, amount, metadata } = event.data;

    if (signal === "retry-now") {
      const payment = await db.payments.findDeclined({
        networkTransactionId,
        amount,
        lastFour: metadata.cardLastFour ?? metadata.tokenLastFour,
      });

      if (payment) await retryPayment(payment);
    }
  }

  res.status(200).send({ success: true });
});

[ANNOTATION lines=7-7]
Only `retry-now` needs action today. Other statuses will be informational.
[/ANNOTATION]

[ANNOTATION lines=8-12]
Look up the original declined payment using the identifiers from your PSP.
[/ANNOTATION]

[ANNOTATION lines=18-18]
Acknowledge the event quickly, and run the retry asynchronously if it's slow.
[/ANNOTATION]
```

#### Python

```python filename='webhook.py'
@app.post("/evervault")
def evervault_webhook():
    event = request.get_json()

    if event["type"] == "payments.network-retry-signals.signal":
        data = event["data"]

        if data["signal"] == "retry-now":
            metadata = data["metadata"]
            payment = db.payments.find_declined(
                network_transaction_id=data["networkTransactionId"],
                amount=data["amount"],
                last_four=metadata.get("cardLastFour") or metadata.get("tokenLastFour"),
            )

            if payment:
                retry_payment(payment)

    return {"success": True}, 200

[ANNOTATION lines=8-8]
Only `retry-now` needs action today. Other statuses will be informational.
[/ANNOTATION]

[ANNOTATION lines=10-14]
Look up the original declined payment using the identifiers from your PSP.
[/ANNOTATION]

[ANNOTATION lines=19-19]
Acknowledge the event quickly, and run the retry asynchronously if it's slow.
[/ANNOTATION]
```

## Testing

You can use Evervault's [Sandbox apps](/developers/sandbox) to test your webhook handler without waiting for a real retry signal. Sandbox apps can't be enrolled. Instead, Evervault provides a simulate endpoint that sends a test signal to your registered webhook.

> **Sandbox only**
>
> The simulate endpoint is only available to [Sandbox apps](/developers/sandbox). Calling it with a production app returns a `403` response.

### Simulate a signal

Make sure your Sandbox app has a webhook endpoint subscribed to the `payments.network-retry-signals.signal` event. Then, send a request to the simulate endpoint, authenticated with an API key that has the `networkRetrySignals:create` grant.

#### cURL

```bash
curl -X POST 'https://api.evervault.com/payments/network-retry-signals/simulate' \
  -H 'Content-Type: application/json' \
  -u '<app_id>:<api_key>' \
  -d '{
    "networkMid": "12354689987"
  }'

[ANNOTATION lines=5-5]
Optional. Evervault returns this value as the `acquirerMerchantId`, so you can route the signal as you would in production.
[/ANNOTATION]
```

#### Node

```javascript
const response = await fetch(
  "https://api.evervault.com/payments/network-retry-signals/simulate",
  {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: "Basic " + btoa("<app_id>:<api_key>"),
    },
    body: JSON.stringify({
      networkMid: "12354689987",
    }),
  },
);

[ANNOTATION lines=10-10]
Optional. Evervault returns this value as the `acquirerMerchantId`, so you can route the signal as you would in production.
[/ANNOTATION]
```

#### Python

```python
import requests

response = requests.post(
    "https://api.evervault.com/payments/network-retry-signals/simulate",
    auth=("<app_id>", "<api_key>"),
    json={
        "networkMid": "12354689987",
    },
)

[ANNOTATION lines=7-7]
Optional. Evervault returns this value as the `acquirerMerchantId`, so you can route the signal as you would in production.
[/ANNOTATION]
```

**Request body**

- `networkMid` `string` — The Mastercard MID to use as the `acquirerMerchantId` of the simulated signal. Must be between 1 and 64 characters. If you leave it out, Evervault generates a random 11-digit MID.

The endpoint returns the simulated signal with a `202` status, and Evervault delivers the same signal to your webhook as a `payments.network-retry-signals.signal` event. The signal has the same shape as a production [retry signal event](#the-retry-signal-event).

```json
{
  "network": "mastercard",
  "signal": "retry-now",
  "amount": 48210,
  "networkTransactionId": "K7Q2ZD",
  "timestamp": "2026-10-27T12:00:00.000Z",
  "currency": {
    "alphaCode": "eur",
    "numericCode": 978
  },
  "metadata": {
    "notificationId": "a8Fk2LqP0zX4mT7vB1nR6sW9cY3hJ5dE",
    "acquirerMerchantId": "12354689987",
    "cardBin": "555555",
    "cardLastFour": "4821",
    "maskedCardNumber": "555555XXXXXX4821"
  }
}

[ANNOTATION lines=14-14]
Simulated signals always use the Mastercard test BIN `555555`, so they never match a real card.
[/ANNOTATION]
```

Each simulated signal uses random values:

- The `amount` is between 100 and 100,000 minor units (1.00 to 1,000.00).
- The `currency` is USD, EUR, or GBP.
- The card details always use a card number, not a network token, so `tokenBin` and `tokenLastFour` are never present.

Because the values are random, a simulated signal doesn't match a payment in your system. Use it to check that your endpoint receives, parses, and acknowledges the event.

## Locating a transaction ID

If you use a PSP, it typically provides this value when you inspect a transaction on its platform or through its APIs. Here's how to find it for some common PSPs.

### Finding a transaction ID with Stripe

1. In the Stripe dashboard, navigate to Transactions and locate a transaction on the network you're enrolling.
2. Copy and search for the Payment and open it in the Workbench.
3. Locate the Charge associated with the Payment.
4. In the Workbench Inspector tab, find the `network_transaction_id` under `payment_method_details`.

### Finding a transaction ID with Adyen

With Adyen you can use the [Transfers API](https://docs.adyen.com/api-explorer/transfers/4/get/transfers/(id)) to locate a payment transfer on the network you're enrolling. In the response, locate the event containing a `transactionId` field. This is the network transaction ID.

- [Card Account Updater](/cards/card-account-updater): Prevent declines from expired or replaced cards before you retry.
- [Network Tokens](/cards/network-tokens): Improve authorization rates with network tokens.

