Introduction to PhonePe Payment Link
PhonePe Payment Links provide a fast, reliable, and simple way to collect payments without requiring a dedicated website or mobile application. You can create a unique payment link and send it to your customers through SMS, email. When they open the link, they are taken to a secure payment page where they can complete the transaction using their preferred method.
Supported Payment Methods:
- UPI
- Credit/Debit Cards
- Net Banking
These links are created with a fixed amount. You decide the value at the time of generating the link, and the customer will not be able to modify it. You can also set an expiry time or restrict the link to be used only once, giving you complete control over how the link is accessed.
Environments
Use the environment URLs below to integrate and test your API calls. The Sandbox environment is intended for testing and validation, while the Production environment should be used once your integration is live. Make sure to switch the base URL based on the environment you’re working in.
| Environment | API |
| Sandbox | https://api-preprod.phonepe.com/apis/pg-sandbox/<Endpoint> |
| Production | Authorization API: https://api.phonepe.com/apis/identity-manager/<Endpoint> Other APIs: https://api.phonepe.com/apis/pg/<Endpoint> |
📘 Test Before Production!
To ensure a smooth integration, please integrate with the Test environment first and then move to production.
API Endpoints
Here is a quick reference to the key API endpoints used in the Payment Link flow. Each API serves a specific purpose, from starting a transaction to processing refunds and checking payment statuses. Use the table below to identify which endpoint to call at each stage of the payment journey.
| API | Method | Endpoint |
| Authorization | POST | /v1/oauth/token |
| Create API | POST | /paylinks/v1/pay |
| Status | GET | /paylinks/v1/{merchantOrderId}/status |
| Cancel | POST | /paylinks/v1/{merchantOrderId}/cancel |
| Notify | POST | /paylinks/v1/notify |
| Refund | POST | /payments/v2/refund |
| Refund Status API | GET | /payments/v2/refund/{merchantRefundId}/status |
What’s Next?
Now that you’re familiar with the environment setup and APIs, you can start the integration process. The next section will walk you through the Integration Steps to help you build the the Payment Links.