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
| Method | Endpoint | Description |
|---|---|---|
| POST | /orders | Create 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 | /orders | Fetch all orders with optional filters for date range and payment status |
| POST | /payments/{payment_id}/capture | Capture an authorized payment for the specified amount |
| GET | /payments/{payment_id} | Retrieve complete details of a specific payment transaction |
| GET | /payments | List all payment transactions with filtering and pagination support |
| POST | /refunds | Initiate a full or partial refund for a captured payment |
| GET | /refunds/{refund_id} | Get details of a specific refund transaction |
| POST | /customers | Create a new customer profile for recurring payments or saved cards |
| GET | /customers/{customer_id} | Retrieve customer details including saved payment methods |
| POST | /subscriptions | Create a recurring subscription for a customer with plan details |
| GET | /subscriptions/{subscription_id} | Fetch subscription details including billing cycle and payment status |
| POST | /payment_links | Generate a payment link for collecting payments without website integration |
| POST | /transfers | Create a transfer to move funds from your account to a linked account |
| GET | /settlements | Retrieve 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"
}
}'
Connect Razorpay to AI
Deploy a Razorpay MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Razorpay through these tools:
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
Deploy in 60 seconds
Describe what you need, AI generates the code, and IOX deploys it globally.
Deploy Razorpay MCP Server →