Skip to main content
Razorpay logo
  • Category: payment processing
  • Auth: API_KEY, OAUTH2
  • Composio-managed OAuth available? No
  • Tools: 42
  • Triggers: 0
  • Slug: RAZORPAY
  • Version: 20261101_00

Tools

Slug: RAZORPAY_CANCEL_INVOICETool to cancel an existing Razorpay invoice. Use this when you need to cancel an invoice that has been issued but not yet paid. Only invoices in ‘issued’ status can be cancelled.

Input Parameters

string
required
The unique identifier of the invoice to cancel

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_CREATE_AN_ORDERTool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.

Input Parameters

object
Key-value pairs for additional information (max 15 pairs)
integer
required
Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.
string
Receipt number for internal reference (max 40 characters)
string
required
ISO 4217 currency code (uppercase, 3 letters)
boolean
Whether to enable partial payments for this order

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_CREATE_CONTACTTool to create a contact for payouts in RazorpayX. Use when you need to add a new contact (employee, vendor, or customer) for making payouts.

Input Parameters

string
required
Name of the contact
string ("employee" | "vendor" | "customer")
required
Type of contact - employee, vendor, or customer
string
Email address of the contact
object
Key-value pairs for storing additional information about the contact
string
Phone number of the contact
string
A unique reference identifier for the contact in your system

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_CREATE_CUSTOMERTool to create a new customer in Razorpay. Use when you need to register a customer for recurring payments or saved cards. Returns a customer_id that can be used for future transactions.

Input Parameters

string
The name of the customer
string
The email address of the customer
string
The GST identification number of the customer (India-specific)
object
Custom key-value pairs for storing additional information about the customer
string
The contact number of the customer

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_CREATE_INVOICECreate a Razorpay invoice for billing customers with at least one line item, optionally including customer details.

Input Parameters

string
Type of invoice: ‘invoice’ or ‘link’
object
Key-value pairs for additional information
string
Terms and conditions text
integer
Total invoice amount in smallest currency unit. If not provided, calculated from line_items
string
Tax ID for the entire invoice
string
Comments on the invoice
string
Receipt/reference number (max 40 characters)
string
Three-letter ISO currency code. Defaults to INR if not specified
object
Customer details for invoice recipient.
string
Associated order ID
integer
Tax rate in basis points for the entire invoice
integer
Unix timestamp when invoice should expire
integer
Unix timestamp for custom invoice issue date
boolean
Generate and return short URL
boolean
Show compact view
array
required
Array of line items (products/services) included in the invoice. At least one line item is required
string
Pre-associate a payment ID
integer
Send SMS notification (1=yes, 0=no)
integer
Billing period end as Unix timestamp
string
Reference to existing customer ID. If provided, customer details can be omitted
string
Brief description of the invoice
integer
Send email notification (1=yes, 0=no)
integer
Billing period start as Unix timestamp
string
Custom invoice number
string
Unique key for idempotent requests to prevent duplicate invoice creation
boolean
Whether partial payments are allowed
boolean
Group taxes and discounts together

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_CREATE_ITEMTool to create an item that can be used in Razorpay invoices. Use when you need to create a new product or service entry for invoicing purposes.

Input Parameters

string
required
Name of the item. This will appear on invoices and receipts.
integer
required
Amount in the smallest currency unit (paise for INR). For example, 10000 paise = 100 INR. Must be non-negative.
string
required
Three-letter ISO currency code. Common values: INR (Indian Rupee), USD (US Dollar), EUR (Euro), GBP (British Pound).
string
Brief description of the item. Use this to provide additional context about what the item represents.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_DELETE_INVOICETool to delete an invoice in Razorpay. Use when you need to permanently remove an invoice from the system. Note: Only invoices in ‘draft’ status can be deleted. Invoices in other statuses (issued, paid, cancelled) cannot be deleted.

Input Parameters

string
required
The unique identifier of the invoice to delete.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_DELETE_ITEMTool to delete an existing item from Razorpay. Use when you need to permanently remove an item from the system. Items can only be deleted if they are not associated with any invoices.

Input Parameters

string
required
The unique identifier of the item to delete. This is the ID returned when creating an item.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ALL_CUSTOMERSTool to retrieve a paginated list of all customers from Razorpay. Use when you need to get customer details for multiple customers or iterate through the customer base.

Input Parameters

integer
Number of customers to skip for pagination (default: 0)
integer
Number of customers to fetch (default: 10, max: 100)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ALL_INVOICESTool to fetch all invoices with pagination and filtering support. Use when you need to retrieve a list of invoices, optionally filtered by payment ID, customer ID, receipt, or date range.

Input Parameters

integer
Unix timestamp (in seconds) before which the invoices were created. Use for date range filtering.
integer
Unix timestamp (in seconds) after which the invoices were created. Use for date range filtering.
integer
Number of invoices to skip from the beginning of the result set. Use for pagination. Default is 0.
string
Entity type filter. Use ‘invoice’ to filter by invoice type.
integer
Number of invoices to fetch per request. Default is 10 if not specified. Maximum is 100.
string
The unique receipt number that you entered for internal purposes. Use to filter invoices by receipt.
string
The unique identifier of the payment made by the customer against the invoice. Use to filter invoices by specific payment.
string
The unique identifier of the customer. Use to filter invoices for a specific customer.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ALL_PAYMENTSTool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).

Input Parameters

integer
Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.
integer
Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.
integer
Number of payments to skip for pagination. Use this to paginate through results.
integer
Number of payments to fetch. Default is 10, maximum is 100.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENTRetrieve a page of refunds for a specific Razorpay payment, with pagination and optional time filtering. Use it to check refund status or track refund history.

Input Parameters

integer
Number of refunds to skip for pagination. Use with count to navigate through pages.
integer
Number of refunds to fetch. Default is 10.
string
required
The unique identifier of the payment for which to fetch refunds.
integer
Unix timestamp before which the refunds were created. Filter refunds created on or before this time.
integer
Unix timestamp after which the refunds were created. Filter refunds created on or after this time.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_INVOICE_BY_IDTool to fetch a specific invoice by its ID from Razorpay. Use when you need to retrieve complete details of an invoice including customer information, line items, amounts, and payment status.

Input Parameters

string
required
The unique identifier of the invoice to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ORDERSTool to retrieve a paginated list of all orders from Razorpay. Use when you need to fetch multiple orders, filter by date range, receipt, or authorization status.

Input Parameters

integer
Number of orders to skip for pagination (default: 0)
integer
Number of orders to fetch (default: 10, max: 100)
string
Filter orders by specific receipt reference number
integer
Filter orders by authorization status. Set to 1 for authorized orders, 0 for unauthorized orders
integer
Unix timestamp to fetch orders created before this time
integer
Unix timestamp to fetch orders created after this time

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_ORDERS_BY_IDTool to fetch details of a specific Razorpay order using its order ID. Use when you need to retrieve order information, check order status, or verify payment details.

Input Parameters

string
required
The unique identifier of the order to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_PAYMENTS_BY_ORDERTool to fetch all payments made for a particular order. Use when you need to retrieve payment details associated with a specific order ID.

Input Parameters

string
required
The unique identifier of the order for which to fetch payments.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_FETCH_REFUNDSTool to retrieve all refunds created by you using the Razorpay API. Use when you need to list refunds, track refund status, or analyze refund history with pagination support.

Input Parameters

integer
Number of refunds to skip for pagination. Use with count to navigate through pages.
integer
Number of refunds to fetch. Default is 10.
integer
Unix timestamp before which the refunds were created. Filter refunds created on or before this time.
integer
Unix timestamp after which the refunds were created. Filter refunds created on or after this time.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_CONTACTTool to retrieve details of a specific contact by ID in RazorpayX. Use when you need to fetch information about an existing contact including their name, email, contact details, and metadata.

Input Parameters

string
required
The unique identifier of the contact to retrieve. Must start with ‘cont_’ followed by alphanumeric characters.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_CUSTOMERTool to retrieve details of a specific customer by their ID. Use when you need to fetch customer information including name, email, contact details, and custom notes.

Input Parameters

string
required
The unique identifier of the customer to retrieve. Must start with ‘cust_’ followed by alphanumeric characters.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_FUND_ACCOUNTTool to retrieve details of a specific fund account by its ID. Use when you need to fetch fund account information including associated contact, account type, and payment details.

Input Parameters

string
required
The unique identifier of the fund account to retrieve. Must start with ‘fa_’ followed by alphanumeric characters.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_ITEMTool to retrieve complete details of a specific Razorpay item by its ID. Use when you need to fetch information about an item including its name, description, amount, tax details, and other metadata.

Input Parameters

string
required
The unique identifier of the item to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_SETTLEMENT_RECONTool to fetch settlement reconciliation report for a specific date or month from Razorpay. Use when you need to retrieve detailed settlement transaction data for accounting and reconciliation purposes.

Input Parameters

integer
Optional day for the reconciliation report (1-31). If not provided, fetches data for the entire month.
integer
Number of settlement records to skip for pagination (default: 0)
integer
required
Year for the reconciliation report (e.g., 2024)
integer
Number of settlement records to fetch (default: 10, max: 100)
integer
required
Month for the reconciliation report (1-12)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_GET_TRANSFER_REVERSALSTool to fetch all reversals for a specific transfer using the Razorpay Route API. Use when you need to check reversal status, track reversal history, or list all reversals associated with a particular transfer.

Input Parameters

integer
Number of reversals to skip for pagination. Use with count to navigate through pages.
integer
Number of reversals to fetch. Default is 10, maximum is 100.
string
required
The unique identifier of the transfer for which to fetch reversals.
integer
Unix timestamp before which the reversals were created. Filter reversals created on or before this time.
integer
Unix timestamp after which the reversals were created. Filter reversals created on or after this time.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_ISSUE_AN_INVOICETool to issue a draft Razorpay invoice to send it to the customer. Use when you need to issue an invoice that has been created in draft status. Only invoices in ‘draft’ status can be issued.

Input Parameters

string
required
The unique identifier of the invoice to issue

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_CUSTOMER_TOKENSTool to retrieve all tokens (saved payment methods) for a customer. Use when you need to fetch the list of saved payment methods associated with a specific customer ID.

Input Parameters

string
required
Unique identifier of the customer whose tokens are to be retrieved. Format: cust_<14 alphanumeric characters>

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_DISPUTESTool to retrieve a list of all disputes with pagination support. Use when you need to view chargebacks, fraud claims, or other payment disputes. Supports filtering by date range and pagination for efficient retrieval of dispute records.

Input Parameters

integer
Unix timestamp to retrieve disputes created before this time
integer
Unix timestamp to retrieve disputes created after this time
integer
Number of records to skip for pagination (offset, defaults to 0)
integer
Number of dispute records to retrieve (defaults to 10)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_FUND_ACCOUNTSTool to retrieve a list of all fund accounts from RazorpayX with pagination support. Use when you need to fetch payout destinations, view beneficiary accounts, or manage fund account records. Supports filtering by contact and account type for efficient retrieval.

Input Parameters

integer
Number of fund accounts to skip for pagination. Use with count to navigate through pages.
integer
Number of fund accounts to retrieve per page. Maximum 100 accounts per request.
string
Filter fund accounts by contact ID. Returns only fund accounts associated with the specified contact.
string
Filter fund accounts by account type (e.g., ‘bank_account’, ‘vpa’, ‘card’, ‘wallet’).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_FUND_VALIDATIONSTool to fetch all fund account validation transactions from RazorpayX with pagination support. Use when you need to retrieve validation records, check account verification status, or monitor validation transactions.

Input Parameters

integer
Unix timestamp (in seconds) to filter validations created before this time. Use for date range filtering.
integer
Unix timestamp (in seconds) to filter validations created after this time. Use for date range filtering.
integer
Number of validation transactions to skip for pagination. Use with count to navigate through pages. Default is 0.
integer
Number of validation transactions to retrieve per page. Default is 10. Maximum is 100.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_ITEMSTool to retrieve a list of all items from Razorpay with pagination support. Use when you need to fetch invoice items, view available products, or manage item catalog. Supports filtering by active status and date range for efficient retrieval.

Input Parameters

integer
Number of items to skip for pagination. Use with count to navigate through pages.
integer
Number of items to retrieve per page. Maximum 100 items per request.
boolean
Filter items by active status. True returns only active items, False returns only inactive items.
integer
Unix timestamp to filter items created on or before this time.
integer
Unix timestamp to filter items created on or after this time.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_LIST_PAYMENT_DOWNTIMESTool to fetch all active payment method downtimes from Razorpay. Use when you need to check the current status of payment methods and identify any ongoing or scheduled downtimes.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_SEND_OR_RESEND_NOTIFICATIONTool to send or resend an invoice notification via email or SMS. Use when you need to notify customers about an invoice through their preferred communication channel.

Input Parameters

string ("email" | "sms")
required
The medium through which to send the notification (email or sms)
string
required
The unique identifier of the invoice for which to send notification

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_UPDATE_CONTACTTool to update an existing contact’s details in RazorpayX. Use when you need to modify contact information such as name, email, phone number, type, reference ID, or notes.

Input Parameters

string
Updated name of the contact. Provide this to change the contact’s name.
string ("employee" | "vendor" | "customer")
Type of contact in RazorpayX.
string
Updated email address of the contact. Provide this to change the contact’s email.
object
Updated key-value pairs for storing additional information about the contact. Provide this to change or add notes.
string
Updated phone number of the contact. Provide this to change the contact’s phone number.
string
required
The unique identifier of the contact to update. This is the contact ID returned from Razorpay (e.g., ‘cont_SMoUIhAssfaDoy’).
string
Updated reference identifier for the contact in your system. Provide this to change the reference ID.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_UPDATE_CUSTOMERTool to update an existing customer’s details in Razorpay. Use when you need to modify customer information such as name, email, or contact number.

Input Parameters

string
The updated name of the customer. Provide this to change the customer’s name.
string
The updated email address of the customer. Provide this to change the customer’s email.
string
The updated contact number of the customer. Provide this to change the customer’s phone number. Should be a valid phone number string.
string
required
The unique identifier of the customer to update. This is the customer ID returned from Razorpay (e.g., ‘cust_SMoQL8RbRrw4w5’).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_UPDATE_INVOICETool to update an existing draft invoice in Razorpay. Use when you need to modify invoice details such as customer information, line items, description, notes, or other fields. Only invoices in draft state can be updated.

Input Parameters

integer
Invoice date as Unix timestamp
string
Type of invoice: ‘invoice’ or ‘link’
object
Key-value pairs for additional information
string
Terms and conditions text
integer
Total invoice amount in smallest currency unit. If not provided, calculated from line_items
string
Tax ID for the entire invoice
string
Comments on the invoice
string
Receipt/reference number (max 40 characters)
string
Three-letter ISO currency code
object
Customer details for invoice recipient.
string
Associated order ID
integer
Tax rate in basis points for the entire invoice (e.g., 1800 for 18%)
integer
Unix timestamp when invoice should expire
integer
Unix timestamp for custom invoice issue date
boolean
Generate and return short URL
boolean
Show compact view
string
required
The unique identifier of the invoice to update. Only draft invoices can be updated.
array
Array of line items to update or add. Include ‘id’ field to update existing items
string
Pre-associate a payment ID
integer
Send SMS notification (1=yes, 0=no)
integer
Billing period end as Unix timestamp
string
Reference to existing customer ID
string
Brief description of the invoice
integer
Send email notification (1=yes, 0=no)
integer
Billing period start as Unix timestamp
string
Custom invoice number
string
Unique key for idempotent requests to prevent duplicates
boolean
Whether partial payments are allowed
boolean
Group taxes and discounts together

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_UPDATE_ITEMTool to update an existing item’s details in Razorpay. Use when you need to modify the name, description, or amount of an item. Only the fields provided in the request will be updated; other fields remain unchanged.

Input Parameters

string
Name of the item. This will appear on invoices and receipts.
integer
Amount in the smallest currency unit (paise for INR). For example, 15000 paise = 150 INR. Must be non-negative.
string
required
The unique identifier of the item to update. This is the ID returned when creating an item.
string
Brief description of the item. Use this to provide additional context about what the item represents.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RAZORPAY_UPDATE_ORDERTool to update an existing order in Razorpay. Use when you need to modify the notes field of an order to store or update additional metadata.

Input Parameters

object
Key-value pairs to store additional information about the order. Use this to update custom metadata fields.
string
required
The unique identifier of the order to update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not