payments
Razorpay CLI for Cron Jobs
Use the Razorpay CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
8 functions 7 read 1 write API key auth
Razorpay CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. 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 Cron Jobs
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.