Available in🇮🇳 India🇲🇾 Malaysia🇸🇬 Singapore🇺🇸 United States
This is the starting point for the Razorpay API reference. Razorpay APIs are completely RESTful, and all our responses are returned in JSON. Use this page to find the API Gateway URL, how requests are authenticated and which API keys to use, and then try the APIs on Postman.
Integrations
- Looking to integrate your website, ecommerce store or mobile app with Razorpay Payment Gateway? Find the right integration method.
- Accept payments without a website or app using other Razorpay products, such as Payment Links, Payment Pages, Subscription Links, Invoices and Smart Collect.
- For S2S integration, contact the Support team with your requirements.
API Basics
- Gateway URL: For most of the Razorpay APIs, the Gateway URL is
https://api.razorpay.com/v1. Certain APIs are on V2. See API Gateway URL. - Authentication: All Razorpay APIs are authenticated using Basic Auth with your Key Id and Key Secret, sent as
YOUR_KEY_ID:YOUR_KEY_SECRET. See API Authentication. - Test and Live API keys: Use the Test API keys for test transactions and the Live API keys to accept live payments. The Gateway URL is the same for both. Generate API keys on the Dashboard and see Sandbox Setup to test your integration.
API Gateway URL
For most of the Razorpay APIs, the Gateway URL ishttps://api.razorpay.com/v1. You need to include this before each API endpoint to make API calls. However, certain APIs are on V2. Hence, the gateway URL may differ for certain APIs.
Example
- Use the URL
https://api.razorpay.com/v1/paymentsto access payment resources. - Use the URL
https://api.razorpay.com/v2/accountsto access Route (Linked Account)-related resources.