KosmoKrator

payments

Razorpay CLI for Coding Agents

Use the Razorpay CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

8 functions 7 read 1 write API key auth

Razorpay CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Razorpay CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Razorpay CLI for Coding Agents
kosmokrator integrations:configure razorpay --set key_id="$RAZORPAY_KEY_ID" --set key_secret="$RAZORPAY_KEY_SECRET" --enable --read allow --write ask --json
kosmo integrations:call razorpay.razorpay_list_payments '{"count":1,"skip":1,"from":1,"to":1}' --json

Discovery Before Execution

Agents and scripts can inspect Razorpay docs and schemas before choosing a function.

kosmo integrations:docs razorpay --json
kosmo integrations:docs razorpay.razorpay_list_payments --json
kosmo integrations:schema razorpay.razorpay_list_payments --json
kosmo integrations:search "Razorpay" --json
kosmo integrations:list --json

Useful Razorpay CLI Functions

FunctionTypeParametersDescription
razorpay.razorpay_list_payments Read count, skip, from, to List payments from Razorpay. Supports pagination and date-range filters. Returns payment IDs, amounts, statuses, and methods.
razorpay.razorpay_get_payment Read payment_id Get details of a specific Razorpay payment by its ID. Returns full payment information including amount, status, method, and metadata.
razorpay.razorpay_list_orders Read count, skip, from, to List orders from Razorpay. Supports pagination and date-range filters. Returns order IDs, amounts, currencies, and statuses.
razorpay.razorpay_get_order Read order_id Get details of a specific Razorpay order by its ID. Returns full order information including amount, status, and payments.
razorpay.razorpay_create_order Write amount, currency, receipt, notes Create a new payment order in Razorpay. Specify the amount (in smallest currency unit, e.g., paise for INR), currency, and an optional receipt identifier.
razorpay.razorpay_list_refunds Read count, skip, from, to List refunds from Razorpay. Supports pagination and date-range filters. Returns refund IDs, amounts, payment references, and statuses.
razorpay.razorpay_list_customers Read count, skip List customers from Razorpay. Supports pagination. Returns customer IDs, names, emails, and contact numbers.
razorpay.razorpay_get_current_user Read none Get current user information from Razorpay. Returns details about the authenticated Razorpay account.

Automation Notes

Related Razorpay CLI Pages