An alert is a signal to try again. PaymentRetryAlert does not charge the card, and an alert does not guarantee that the retry succeeds.
To build an integration, follow the API integration guide. For every field and endpoint, see the API reference.
From decline to retry
- A payment on one of your enrolled merchant IDs (MIDs) declines. You store the decline.
- Mastercard watches the card, for up to 30 days by default.
- When a retry is more likely to succeed, Mastercard sends a
RETRY_NOWnotification and we create an alert. It shows in the dashboard, goes to your webhook endpoints, and is available through the API. - You match the alert to the decline you stored, and retry that payment.
- You report the outcome:
SUCCEEDED,FAILEDorNOT_ATTEMPTED.
Which payments are covered
Alerts cover recurring merchant-initiated Mastercard payments on enrolled MIDs that decline with response code 51 (insufficient funds) or 61 (exceeds withdrawal limit).
Mastercard stops watching a card when it sees a successful payment for the same card, MID and amount, for example after a retry on your own schedule. A repeat decline for the same card, MID and amount during the watch does not start a new watch.
Enrolments
A MID receives alerts once it is enrolled. Use the MID your acquirer gave you, not an order or customer ID; if you are unsure which value it is, ask your acquirer. Owners enrol MIDs from Enrolments in the dashboard, and integrations use POST /enrolments.
| Status | Meaning |
|---|---|
PENDING | We have received the enrolment request. |
IN_PROGRESS | The MID is being enrolled. |
ACTION_REQUIRED | You need to act. The enrolment’s message says what to do. |
ENABLED | The MID receives alerts. |
PAUSED | The enrolment is paused. |
UNENROLLED | The MID has been unenrolled. |
FAILED | The enrolment did not complete. |
CANCELLED | The enrolment was cancelled before it was processed. |
These statuses describe the enrolment, not any payment.
Retry outcomes
Each alert has a retry outcome, which starts as null:
| Outcome | Meaning |
|---|---|
SUCCEEDED | Your retry succeeded. |
FAILED | You retried and it failed. |
NOT_ATTEMPTED | You did not retry. |
Report it from the alert’s page in the dashboard or with PATCH /alerts/{id}. If you do not report an outcome within 5 days, the alert becomes NOT_ATTEMPTED; you can still change it later.
The dashboard’s alerted transaction value is the total of the payments that received alerts. It is not the amount recovered.
Test and live organisations
Everything belongs to an organisation. A test organisation is for building and testing an integration: its enrolments never go to Mastercard, and you create alerts yourself with the simulator in the dashboard or the simulation endpoints of the API. Simulated events look the same as live ones, with organisation_mode set to TEST. A live organisation enrols your real MIDs.
API keys start with pra_test_ or pra_live_ and work only in their own organisation.
Who can do what
Each member of an organisation has one role, set by an Owner under Members in the dashboard. Whoever creates an organisation becomes its Owner.
| Role | Can |
|---|---|
| Owner | Everything, including members, billing, and enrolling or unenrolling live MIDs. |
| Developer | API keys, webhooks and the simulator. Enrols and unenrols MIDs in test organisations. Reports retry outcomes. |
| Billing manager | Billing and invoices. |
| Standard user | Views the dashboard. Reports retry outcomes. |
Stop alerts for a MID
Unenrol the MID. A PENDING enrolment is cancelled at once. Otherwise the enrolment keeps its status until the unenrolment completes, then becomes UNENROLLED. In a test organisation, unenrolment completes at once.
DashboardEnrolmentsUnenrol
- Select Enrolments in the sidebar and find the MID.
- Select Unenrol, then Request unenrolment to confirm. A pending enrolment is cancelled at once.
- A live enrolment keeps its status until Mastercard completes the unenrolment.
curl --fail-with-body -X DELETE "https://api.paymentretryalert.com/v1/enrolments/enrl_REPLACE_WITH_ENROLMENT_ID" \
-H "Authorization: Bearer $PRA_API_KEY" \
-H 'PaymentRetryAlert-Version: 2026-10-05'
To stop deliveries to one webhook endpoint without unenrolling, disable the endpoint.