Connect to AI
Payments Basic Auth

Razorpay REST API

Complete payment solution for India and global markets

Razorpay is a comprehensive payment gateway that enables businesses to accept, process, and disburse payments. It supports multiple payment methods including credit/debit cards, UPI, net banking, wallets, and international payments. Developers use Razorpay for its simple integration, extensive features like payment links, subscriptions, smart routing, and robust webhook system for real-time payment updates.

Base URL https://api.razorpay.com/v1

API Endpoints

MethodEndpointDescription
POST/ordersCreate a new order for payment collection with specified amount and currency
GET/orders/{order_id}Retrieve details of a specific order by its ID
GET/ordersFetch all orders with optional filters for date range and payment status
POST/payments/{payment_id}/captureCapture an authorized payment for the specified amount
GET/payments/{payment_id}Retrieve complete details of a specific payment transaction
GET/paymentsList all payment transactions with filtering and pagination support
POST/refundsInitiate a full or partial refund for a captured payment
GET/refunds/{refund_id}Get details of a specific refund transaction
POST/customersCreate a new customer profile for recurring payments or saved cards
GET/customers/{customer_id}Retrieve customer details including saved payment methods
POST/subscriptionsCreate a recurring subscription for a customer with plan details
GET/subscriptions/{subscription_id}Fetch subscription details including billing cycle and payment status
POST/payment_linksGenerate a payment link for collecting payments without website integration
POST/transfersCreate a transfer to move funds from your account to a linked account
GET/settlementsRetrieve settlement details showing fund transfers to bank account

Code Examples

curl -X POST https://api.razorpay.com/v1/orders \
  -u rzp_test_1DP5mmOlF5G5ag:test_secret_key \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": 50000,
    "currency": "INR",
    "receipt": "order_rcptid_11",
    "notes": {
      "product": "Premium Plan"
    }
  }'

Use Razorpay from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Razorpay. Paste your Razorpay API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Razorpay directly with your credentials — no local install, works on mobile.

create_payment_order Create a Razorpay order for payment collection with specified amount, currency, and metadata
check_payment_status Retrieve the current status of a payment transaction including authorization and capture state
process_refund Initiate a full or partial refund for a captured payment with optional notes
manage_customer Create or update customer profiles for managing recurring payments and saved payment methods
generate_payment_link Create shareable payment links for collecting payments without website integration

Connect in 60 seconds

Paste your Razorpay key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Razorpay to your AI →

Related APIs