At a glance
- Availability: Experimental (how to enable).
- Auth: Basic auth.
- Connection: HTTP Basic auth with
RAZORPAY_KEY_IDas the username andRAZORPAY_KEY_SECRETas the password. - Docs: https://razorpay.com/docs/api/authentication/
Credentials
Set these per environment. See Connect an integration.Setup
- Sign in to the Razorpay Dashboard: Go to https://dashboard.razorpay.com. Switch to Test Mode to experiment safely - test keys are prefixed rzp_test_.
- Generate API keys: Open Account & Settings → API Keys and generate a key pair. The Key Secret is shown only once - store it immediately.
- Set environment variables: Add RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET to your .env.
- Verify access: Run List Payments (Test Mode returns test transactions). Switch to Live Mode keys for production data.
- Authentication is HTTP Basic: base64(KEY_ID:KEY_SECRET) in the Authorization header
- Timestamps in from/to filters are Unix epoch seconds; amounts are in the smallest currency unit (paise for INR)
Tools
| Tool | Access | Description |
|---|---|---|
| List Payments | Read | List payments, optionally within a Unix-timestamp window |
| Get Payment | Read | Get details of a payment |
| List Orders | Read | List orders |
| Get Order | Read | Get details of an order |
| List Refunds | Read | List refunds |
| List Settlements | Read | List settlements paid out to your bank account |
Example prompts
- List my Razorpay payments from the last 7 days and summarize totals by status and method.
- Show my recent Razorpay settlements with amounts and statuses.