Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Razorpay

Scalekit connector
Open markdown

The Razorpay connector lets your AI agent act in each user's Razorpay account. Each user connects their own Razorpay API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 83 tools.

Tools
83
What they doRead · write · destructive
42 · 38 · 342 read38 write3 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Razorpay connection

    In AgentKit > Connections, create a Razorpay connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • razorpay_get_customerRetrieve one customer by ID.Read-only

    Get Customer

    Retrieve one customer by ID. Returns the customer with name, email, contact, gstin and notes. Use list_customers to find the ID.

    Inputs

    customer_idstringrequired
    ID of the customer. Example: cust_1Aa00000000001.
  • razorpay_get_disputeRetrieve one dispute by ID.Read-only

    Get Dispute

    Retrieve one dispute by ID. Returns the dispute with status, phase, amount, reason_code, respond_by and evidence. Use list_disputes to find the ID.

    Inputs

    dispute_idstringrequired
    ID of the dispute. Example: disp_AHfqOvkldwsbqt.
  • razorpay_get_instant_settlementRetrieve one instant (on-demand) settlement by ID.Read-only

    Get Instant Settlement

    Retrieve one instant (on-demand) settlement by ID. Returns the settlement with amount_requested, amount_settled, fees, tax, status and payouts. Use list_instant_settlements to find the ID.

    Inputs

    instant_settlement_idstringrequired
    ID of the instant settlement. Example: setlod_FNj7g2YS5J67Rz.
  • razorpay_get_invoiceRetrieve one invoice by ID.Read-only

    Get Invoice

    Retrieve one invoice by ID. Returns the invoice with status, amount, amount_paid, line_items, customer_details and short_url. Use list_invoices to find the ID.

    Inputs

    invoice_idstringrequired
    ID of the invoice. Example: inv_DAweOiQ7amIUVd.
  • razorpay_get_itemRetrieve one item by ID.Read-only

    Get Item

    Retrieve one item by ID. Returns the item with name, description, amount, currency and active flag. Use list_items to find the ID.

    Inputs

    item_idstringrequired
    ID of the item. Example: item_7Oxp8NPBEuBAFH.
  • razorpay_get_orderRetrieve one order by its ID.Read-only

    Get Order

    Retrieve one order by its ID. Returns the order with amount, amount_paid, amount_due, currency, receipt, status, attempts and notes. Use list_orders to find the ID. Use list_order_payments to see the payments made against the order.

    Inputs

    order_idstringrequired
    ID of the order. Example: order_DaaS6LOUAASb7Y.
  • razorpay_get_paymentRetrieve one payment by its ID.Read-only

    Get Payment

    Retrieve one payment by its ID. Returns the payment with amount, currency, status, method, order_id, amount_refunded, fee, tax and error details. Use list_payments to find the ID. Use get_payment_card for masked card details.

    Inputs

    payment_idstringrequired
    ID of the payment. Example: pay_DG4ZdRK8ZnXC3k.
  • razorpay_get_payment_cardRetrieve the masked card details used for a card payment.Read-only

    Get Payment Card Details

    Retrieve the masked card details used for a card payment. Returns the card id, name, last4, network, type, issuer, international and emi flags. Use this after get_payment shows method card.

    Inputs

    payment_idstringrequired
    ID of the payment. Example: pay_DG4ZdRK8ZnXC3k.