Retrieve Pre-Debit Notification by Merchant Reference

Retrieves a pre-debit notification by the merchant_reference you used on creation. Notifications are scoped to your account.

GET/predebit-notify

Retrieves a pre-debit notification by the merchant reference used to create it.

Header Parameters

X-Account-Codestringrequired

UUID of the account the notification belongs to.

Query Parameters

merchant_referencestringrequired

The merchant_reference used on creation.

Response

The pre-debit notification.

idstring<uuid>

Unique identifier of the pre-debit notification. Reference it on the recurring debit as payment_method.detail.bank_transfer.pre_debit_notification_id.

account_idstring<uuid>

Your WHITELABEL account ID.

status"SENT" | "REJECTED" | "ERROR"

SENT: the provider accepted and delivered the notification. REJECTED: the provider refused it. ERROR: the notification could not be relayed.

merchant_referencestring

Your unique reference for this notification (idempotent per account).

descriptionstring

Text shown to the customer in the notification.

amountobject
Show amount properties
currencystring

ISO 4217 currency code of the upcoming debit (for UPI Autopay, INR).

valuestring

Amount of the upcoming debit.

billing_datestring<date>

Date of the upcoming debit (YYYY-MM-DD).

origin_payment_idstring<uuid>

The mandate-creation payment used to derive provider and connection, when provided.

provider_dataobject
Show provider_data properties
idstring

Provider that handled the notification (for example, EBANX).

connection_idstring<uuid>

Connection used to send the notification.

provider_transaction_idstring

Provider transaction reference, when available.

provider_notification_idstring

Provider reference of the delivered notification. WHITELABEL resolves and forwards it to the provider automatically when the recurring debit references this notification.

raw_requestobject

Obfuscated provider request. Only returned for allowlisted organizations.

raw_responseobject

Obfuscated provider response. Only returned for allowlisted organizations.

created_atstring<date-time>
updated_atstring<date-time>

No notification with this merchant reference exists for your account.

Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/predebit-notify?merchant_reference=<merchant_reference>" \
  -H "X-Account-Code: <X-Account-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "account_id": "00000000-0000-0000-0000-000000000000",
  "status": "SENT",
  "merchant_reference": "string",
  "description": "string",
  "amount": {
    "currency": "INR",
    "value": "499.00"
  },
  "billing_date": "2024-01-01",
  "origin_payment_id": "00000000-0000-0000-0000-000000000000",
  "provider_data": {
    "id": "string",
    "connection_id": "00000000-0000-0000-0000-000000000000",
    "provider_transaction_id": "string",
    "provider_notification_id": "string",
    "raw_request": {},
    "raw_response": {}
  },
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}