MoEngage × Razorpay
The MoEngage and Razorpay integration uses real-time payment data to build unified user profiles and drive personalized engagement. By forwarding payment lifecycle events from Razorpay to MoEngage, you can improve segmentation and maintain data consistency across your marketing stack.Use Cases
Integrating Razorpay with MoEngage helps you address the following use cases:- Recover lost sales: Automatically trigger personalized notifications (push, email, or SMS) when a payment fails, guiding users back to checkout to complete their purchase.
- Enhance customer trust: Send instant confirmations for successful payments, orders, and refund updates to keep customers informed at every step.
- Proactive support: Notify users of refund status changes (for example, processed or failed) to reduce customer support inquiries.
- Smarter segmentation: Use real-time order data to build dynamic segments in MoEngage and send relevant post-purchase offers or loyalty rewards.
Key Features
The Razorpay integration delivers the following capabilities within MoEngage:- Real-time data sync: Instantly sync payment, order, and refund events from Razorpay to MoEngage to trigger timely, data-driven campaigns.
- Customer profile enrichment: Automatically update user profiles with contact information (email or mobile) to keep your data current.
-
Selective event support: The integration supports the following event syncs:
- Payments:
authorized,captured,failed - Orders:
paid - Refunds:
speed_changed,processed,failed,created
- Payments:
Integration
PrerequisitesEnsure you have admin access to your Razorpay dashboard.
Step 1: Get Your MoEngage API Credentials
To get your MoEngage API credentials, perform the following steps:- On the left navigation menu in the MoEngage dashboard, click Settings > Account > APIs.
- On the APIs page, copy the following credentials:
- Workspace ID (earlier App ID).
- Data API Key: Found under the Data tile.
- Build your webhook URL by inserting your Workspace ID and Data API Key into the MoEngage endpoint, and replace
0Xwith your data center number (for example,api-01for DC-01). Use the following format:

Before you contact MoEngage Support for your unique ingestion endpoint, decide which customer identifier (such as email or contact number) you will map. Make sure it aligns with your current MoEngage identity configuration to avoid creating duplicate profiles during the data sync.
Step 2: Configure Webhooks in Razorpay
After you have your endpoint URL and credentials, configure the webhook in your Razorpay dashboard.- Log in to the Razorpay dashboard and go to Account & Settings.
- Under Website and app settings, click Webhooks.
- Click + Add New Webhook.
- In the Webhook URL field, paste the MoEngage endpoint URL you built in Step 1.
- Under Active Events, select the following payment events:
payment.authorizedpayment.capturedpayment.failedpayment.pending
- Click Create Webhook.

Step 3: Verify Events in MoEngage
After you activate the webhook, verify that events appear in real time in MoEngage.- In MoEngage, go to Segment > Search Users.
- Search for your test user by Customer ID.
- Look for the Razorpay event names (for example,
payment.authorized).
