Notify Customer for Payment Link


Once a payment link is generated, it can be shared with customers through various communication channels such as SMS, email services. This allows you to notify customers quickly and guide them to complete their payments with ease.

EnvironmentHTTP MethodAPI
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox/paylinks/v1/notify
ProductionPOSThttps://api.phonepe.com/apis/pg/paylinks/v1/notify
Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>

⚠️ For Partner Integrations!


It is mandatory to include the X-MERCHANT-ID header with the MerchantID of the end merchant.

Request Parameters
Parameter NameData TypeDescription
merchantOrderIdStringThe unique ID of the order for which the notification needs to be sent.
notificationChannels.smsBooleanSet to true to send the notification to the customer’s mobile number.
notificationChannels.emailBooleanSet to true to send the notification to the customer’s email address.
Sample Request
{
    "merchantOrderId": "merchant-order-id",
    "notificationChannels": {
        "sms": true,
        "email": false
    }
}
Case 1: Response for Notification Sent Successfully
{
    "paylinkUrl": "https://phon.pe/some-key",
    "orderId": "OMOxxxx"
}
Case 2: Response for Exceeded the allowed number of notification attempts.
{
    "code": "NOTIFICATION_ATTEMPTS_BREACHED",
    "message": "You have exceeded the max number of paylink attempts"
}
Response Parameters
Parameter NameData TypeDescription
orderIdStringPayment Gateway generated internal order ID
paylinkUrlStringThe URL where the customer can visit and complete the payment.
Error Response Parameters
Parameter NameData TypeDescription
codeStringError Code
messageStringError Description
headers
body params

Now that you’ve learned how to notify your customers through different methods, it’s time to move to the next step, processing refunds.

Is this article helpful?