Start here
- How it works The payment flow end to end: enrolment, alerts, matching, outcomes and test mode.
- Integration guide Store declined payments, receive and match alerts, retry transactions and report outcomes. Manage each step through the dashboard or API.
- API reference Every endpoint, field, event and error code, plus signatures, retries and rate limits.
The integration at a glance
-
Store your declines
Save each Mastercard decline with code
51or61: MID, network transaction ID, amount, currency, card BIN and last four. -
Enrol your merchant IDs
Alerts are sent only for enrolled MIDs. Enrol them in the dashboard or with the API.
POST /enrolments -
Receive alerts
Each alert is an
alert.createdevent. Receive it by webhook, or poll for it.GET /events -
Match the alert to a decline
Use the network transaction ID, or the card BIN, last four, amount and currency together.
-
Retry and report the outcome
Retry the payment through your payment provider, then report
SUCCEEDED,FAILEDorNOT_ATTEMPTED.PATCH /alerts/{id}
Quickstart
Create an API key under Developers in your test organisation, keep it in your secret store as PRA_API_KEY, and check which organisation it belongs to:
curl --fail-with-body "https://api.paymentretryalert.com/v1/me" \
-H "Authorization: Bearer $PRA_API_KEY" \
-H 'PaymentRetryAlert-Version: 2026-10-05' A pra_test_ key returns "mode": "TEST". From there the integration guide registers a webhook endpoint, runs a signed-event receiver, simulates an alert and reports its outcome, end to end in Node.js with no dependencies.
API essentials
- Base URL
https://api.paymentretryalert.com/v1- Authentication
Authorization: Bearer YOUR_API_KEY. Keys startpra_test_orpra_live_and select the organisation.- Versioning
PaymentRetryAlert-Version: 2026-10-05on every request. There is no implicit default.- Webhooks
- Standard Webhooks signatures (HMAC-SHA256), 15-second timeout, up to 6 attempts over about 15 hours.
- Event types
alert.created,alert.updated,enrolment.created,enrolment.updated- Idempotency
Idempotency-KeyonPOST; records kept for 24 hours.- Rate limits
- 1,000 requests per minute per organisation, shared by all its keys.
- Schema
- OpenAPI JSON · Interactive docs
Read the docs as Markdown
Every page is also available as plain Markdown, which AI coding tools can read directly. Use Copy page at the top of a page, or add .md to its address, for example /docs/integration-guide.md.
Scope and access
- Eligible declines: Recurring Mastercard merchant-initiated transactions declined due to insufficient funds (ISO 8583 code 51) or an exceeded withdrawal limit (code 61).
- Advisory only: Alerts indicate when to retry a payment but do not guarantee approval. PaymentRetryAlert never charges the card directly.
- Billing: Charged per
RETRY_NOWalert, with a $100 monthly minimum inclusive of usage. Alerts in test organisations are free. See pricing. - Access: PaymentRetryAlert is currently in limited beta. We'll set up your test and live organisations during onboarding. Request beta access to get started.