Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
RAZORPAY_KEY_IDYesRazorpay Key ID (rzp_test_… or rzp_live_…) Docs.
RAZORPAY_KEY_SECRETYesRazorpay Key Secret Docs.

Setup

  1. 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_.
  2. Generate API keys: Open Account & Settings → API Keys and generate a key pair. The Key Secret is shown only once - store it immediately.
  3. Set environment variables: Add RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET to your .env.
  4. 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)
Provider API reference: https://razorpay.com/docs/api/

Tools

ToolAccessDescription
List PaymentsReadList payments, optionally within a Unix-timestamp window
Get PaymentReadGet details of a payment
List OrdersReadList orders
Get OrderReadGet details of an order
List RefundsReadList refunds
List SettlementsReadList 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.