oshaani MCP Marketplace
Sign in

← Documentation

Razorpay MCP Payments

Look up payments, orders, refunds and settlements, and create payment links on your Razorpay account.

1 credits / tool call

Quick start

  1. Add a Razorpay connection with the settings below, then click Test configuration.
  2. Create an API key for your agent.
  3. Paste the key below, click Test endpoint, and copy the configuration for your platform.
Endpointhttps://market.oshaani.com/razorpay (your default connection) or https://market.oshaani.com/razorpay/<connection-id>
TransportStreamable HTTP (stateless, JSON responses). MCP protocol versions 2024-11-05 to 2025-11-25 and 2026-07-28.
AuthenticationAuthorization: Bearer <API key>, using a key from the API keys page.

Agent configuration

The default URL uses your organisation's default Razorpay connection; a URL with an ID pins one connection.
Get a key
The key is filled into the snippets below. It stays in this page and is only sent with the test request.
Runs initialize and tools/list against the endpoint, exactly like an agent. No credits are charged.

Any MCP client that supports remote (Streamable HTTP) servers with custom headers.

{
  "name": "razorpay",
  "transport": "streamable-http",
  "url": "https://market.oshaani.com/razorpay",
  "headers": {
    "Authorization": "Bearer YOUR_API_KEY"
  }
}

Connection settings

Entered once per connection on market.oshaani.com. Secrets are encrypted and never shown again or sent to agents.

SettingTypeDescription
Key ID
key_id required
string From Razorpay Dashboard > Account & Settings > API Keys, e.g. rzp_live_XXXXXXXX
pattern ^rzp_(test|live)_[A-Za-z0-9]+$
Key secret
key_secret required secret
string
Allow creating orders, payment links and refunds
allow_write_actions
boolean
default false
Off by default: agents can only read data until this is enabled
Largest refund per call (paise)
max_refund_amount
integer Refunds above this amount are refused. Leave empty for no limit.
min 1

Tools (11)

list_payments read-only

List payments, newest first, optionally within a date range

ArgumentTypeDescription
from_date string (date) Only records created on or after this date (YYYY-MM-DD, IST)
to_date string (date) Only records created on or before this date (YYYY-MM-DD, IST)
count integer
default 25
Number of records to return (max 100)
min 1, max 100
skip integer
default 0
Number of records to skip, for paging
min 0

get_payment read-only

Get a payment's status, method, fees, refunds and failure reason

ArgumentTypeDescription
payment_id required string e.g. pay_29QQoUBi66xm2f
pattern ^pay_\w+$

list_orders read-only

List orders, newest first, optionally filtered by receipt or date range

ArgumentTypeDescription
receipt string Your receipt/reference number for the order
from_date string (date) Only records created on or after this date (YYYY-MM-DD, IST)
to_date string (date) Only records created on or before this date (YYYY-MM-DD, IST)
count integer
default 25
Number of records to return (max 100)
min 1, max 100
skip integer
default 0
Number of records to skip, for paging
min 0

get_order read-only

Get an order and the payment attempts made against it

ArgumentTypeDescription
order_id required string e.g. order_DBJOWzybf0sJbb
pattern ^order_\w+$

list_refunds read-only

List refunds, newest first, optionally within a date range

ArgumentTypeDescription
from_date string (date) Only records created on or after this date (YYYY-MM-DD, IST)
to_date string (date) Only records created on or before this date (YYYY-MM-DD, IST)
count integer
default 25
Number of records to return (max 100)
min 1, max 100
skip integer
default 0
Number of records to skip, for paging
min 0

list_settlements read-only

List settlements paid out to your bank account

ArgumentTypeDescription
from_date string (date) Only records created on or after this date (YYYY-MM-DD, IST)
to_date string (date) Only records created on or before this date (YYYY-MM-DD, IST)
count integer
default 25
Number of records to return (max 100)
min 1, max 100
skip integer
default 0
Number of records to skip, for paging
min 0

list_customers read-only

List saved customers

ArgumentTypeDescription
count integer
default 25
Number of records to return (max 100)
min 1, max 100
skip integer
default 0
Number of records to skip, for paging
min 0

create_order

Create an order to collect a payment through Razorpay Checkout

ArgumentTypeDescription
amount required integer Amount in the smallest currency unit, e.g. paise for INR (₹499 = 49900)
> 0
currency string
default "INR"

pattern ^[A-Z]{3}$
receipt string Your own reference, unique per order
max length 40
notes object Up to 15 key/value notes stored with the record

refund_payment destructive

Refund a captured payment in full or in part. This moves real money.

ArgumentTypeDescription
payment_id required string
pattern ^pay_\w+$
amount integer Partial refund amount in paise; omit to refund the remaining balance
> 0
speed "normal" | "optimum"
default "normal"
'optimum' attempts an instant refund where supported
receipt string Your own reference for the refund
max length 40
notes object Up to 15 key/value notes stored with the record

Billing & errors

Each successful tool call costs 1 oshaani.com credit. initialize, tools/list, failed calls and timeouts are free.

JSON-RPC codeMeaning
-32054 (HTTP 401)Missing, unknown or revoked API key
-32053 (HTTP 404)No Razorpay connection configured for your organisation, or the connection ID is wrong
-32055 (HTTP 403)Connection disabled or origin not allowed
-32052 (HTTP 429)Rate limit reached; retry after a minute
-32050Not enough oshaani.com credits for the call
-32051Billing temporarily unavailable; the call was not run

Errors from Razorpay itself (bad IDs, permissions) come back as tool results with isError: true so the agent can read and correct them. See the Razorpay API documentation.