Create Pre-Debit Notification

Before each UPI Autopay recurring debit, NPCI requires notifying the customer in advance. This endpoint sends that notice through the payment provider and returns an id you must reference on the debit.

The flow has three steps:

  1. Notify: call this endpoint with the mandate’s vaulted_token, the upcoming amount, and the billing_date. Provider routing comes from origin_payment_id (the mandate-creation payment) or an explicit provider_data.
  2. Check the status: SENT means the provider delivered the notification and returned its reference in provider_data.provider_notification_id.
  3. Debit: create the recurring payment with payment_method.detail.bank_transfer.pre_debit_notification_id set to the returned id. WHITELABEL resolves the provider reference and forwards it automatically — see Create payment.

This request requires an X-Idempotency-Key. Reusing a merchant_reference returns the existing notification for your account.

POST/predebit-notify

Sends the NPCI-required pre-debit notification to the customer before a UPI Autopay recurring debit. The provider delivers the notice and returns a reference; keep the returned id and send it on the recurring debit as payment_method.detail.bank_transfer.pre_debit_notification_id.

Header Parameters

X-Idempotency-Keystringrequired

Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts.

Body application/json

account_idstring<uuid>required

Your WHITELABEL account ID.

merchant_referencestringrequired

Your unique reference for this notification. Reusing a reference returns the existing notification (idempotent per account).

descriptionstring

Text shown to the customer in the notification (for example, the subscription name and renewal notice).

amountobjectrequired
Show amount properties
currencystringrequired

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

valuestringrequired

Amount of the upcoming debit.

billing_datestring<date>required

Date of the upcoming debit (YYYY-MM-DD). Per NPCI, notify the customer at least 24 hours before the debit.

billing_sequence_numberstring

Sequence number of the debit within the mandate (for example, 2 for the second charge).

origin_payment_idstring<uuid>

ID of the mandate-creation payment. When provided, WHITELABEL derives the provider and connection from its successful charge. Either origin_payment_id or provider_data is required.

customer_payerobject
Show customer_payer properties
idstring<uuid>

WHITELABEL customer ID.

merchant_customer_idstring

Your identifier for the customer.

payment_methodobject
Show payment_method properties
typestring

Payment method type of the mandate.

vaulted_tokenstring<uuid>

Vaulted token of the enrolled mandate. WHITELABEL resolves the provider mandate credential from it.

provider_dataobject

Explicit provider routing. Either origin_payment_id or provider_data (id + connection_id) is required.

Show provider_data properties
idstring

Provider ID (for example, EBANX).

connection_idstring<uuid>

Connection to send the notification through.

Response

Notification created. Check status: SENT means the provider delivered it.

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>

Invalid parameters (for example, missing provider routing or malformed billing_date).

The vaulted_token has no stored credential for the resolved provider (STORED_CREDENTIAL_NOT_FOUND), or the origin payment has no usable connection (PROVIDER_CONNECTION_REQUIRED).

Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/predebit-notify" \
  -H "Content-Type: application/json" \
  -H "X-Idempotency-Key: <X-Idempotency-Key>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "account_id": "00000000-0000-0000-0000-000000000000",
  "merchant_reference": "string",
  "description": "string",
  "amount": {
    "currency": "INR",
    "value": "499.00"
  },
  "billing_date": "2024-01-01",
  "billing_sequence_number": "string",
  "origin_payment_id": "00000000-0000-0000-0000-000000000000",
  "customer_payer": {
    "id": "00000000-0000-0000-0000-000000000000",
    "merchant_customer_id": "string"
  },
  "payment_method": {
    "type": "UPI_AUTOPAY",
    "vaulted_token": "00000000-0000-0000-0000-000000000000"
  },
  "provider_data": {
    "id": "EBANX",
    "connection_id": "00000000-0000-0000-0000-000000000000"
  }
}'
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"
}