Connectors / Finance · HTTP Connector
Razorpay integration and API
Create an order, update a payment and create a refund in Razorpay, and start a workflow when Razorpay sends “Payment authorized”.
What can you do with Razorpay on Tray.ai?
Razorpay is an Indian payments platform for accepting online payments, sending invoices and payment links, issuing refunds and running subscriptions. Tray.ai connects to Razorpay through the HTTP Connector, so your workflows can call the Razorpay API alongside the rest of your stack.
- When Razorpay sends “Payment failed”, alert the customer success team and open a ticket in your help desk.
- When Razorpay sends “Order paid”, start fulfillment in your order system.
- Create a refund in Razorpay when a return is approved in your support tool.
- Record the refund in your accounting system when Razorpay sends “Refund processed”.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.razorpay.com/v1
Set it up
Connect Razorpay to Tray.ai
Each step uses Razorpay's own API details, from its documentation.
Save Razorpay's username and password
Save the credentials Razorpay gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.razorpay.com/v1 as the base URL. Or paste a cURL example from Razorpay's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List orders”
It's one of 17 documented actions, under Orders. The response comes back as data the next step can map into your other apps.
Start workflows from Razorpay events
Give Razorpay the URL of a Tray.ai webhook trigger. “Payment authorized” can then start a workflow, and so can 5 other events.
Workflows to build with Razorpay
Connect Razorpay with NetSuite, Slack and HubSpot
Each one uses actions and events from Razorpay's own API documentation.
Record paid Razorpay orders as sales in NetSuite
When
Order paid
Then
- Get an order
- Record the sale and payment in NetSuite
With NetSuite
Alert the billing channel in Slack when Razorpay payments fail
When
Payment failed
Then
- Get a payment
- Post the customer, amount and failure reason to the billing channel in Slack
With Slack
Send Razorpay invoices when HubSpot deals close
When
A deal closes in HubSpot
Then
- Create an invoice for the deal amount
- Send an invoice to the buyer
With HubSpot
Apps you can build on Razorpay data
Internal tools your team can build with an AI assistant, each one using Razorpay calls from its API documentation.
Failed payment follow-up queue
Lists failed payments with their orders so finance can chase the customers whose payments failed.
Refund approval board
Lists payments and refunds so a finance lead can review a request and issue a refund.
Invoice tracker
Lists invoices by status and lets the billing team issue, send or cancel an invoice.
Give your AI agents Razorpay tools
Build an MCP server on Razorpay in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Create an order
- Capture a payment
- Create a refund
- Create an invoice
- List orders
- Get an order
- Update an order
- List payments
What the Razorpay API covers
4 resources and 17 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Orders
- Create an order
- List orders
- Get an order
- Update an order
Payments
- Capture a payment
- List payments
- Get a payment
- Update a payment
Refunds
- Create a refund
- List refunds
- Get a refund
- Update a refund
Invoices
- Create an invoice
- List invoices
- Issue an invoice
- Cancel an invoice
- Send an invoice
Events Razorpay can send to a Tray.ai webhook trigger
- Payment authorized
- Payment failed
- Order paid
- Refund created
- Refund processed
- Refund failed
Checked against Razorpay's own documentation on 2026-10-22
How Tray.ai makes this work
Razorpay plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Razorpay, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Razorpay actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Razorpay data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Razorpay?
The Razorpay API documents 17 actions across 4 resources (Orders, Payments, Refunds, Invoices). For example: Create an order; Capture a payment; Create a refund. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Razorpay?
The Razorpay API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Razorpay events can start a Tray.ai workflow?
Razorpay sends 6 events to a webhook URL, for example: Payment authorized; Payment failed; Order paid; Refund created; Refund processed; Refund failed. A Tray.ai webhook trigger receives them and starts a workflow.
See Razorpay working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.