Skip to content

feat: add settlement tools #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 7, 2025
43 changes: 25 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,31 @@ The Razorpay MCP Server is a [Model Context Protocol (MCP)](https://modelcontext

Currently, the Razorpay MCP Server provides the following tools:

| Tool | Description | API
|:----------------------|:------------------------------------------------|:-----------------------------------
| `fetch_payment` | Fetch payment details with ID | [Payment](https://razorpay.com/docs/api/payments/fetch-with-id)
| `create_payment_link` | Creates a new payment link (standard) | [Payment Link](https://razorpay.com/docs/api/payments/payment-links/create-standard)
| `fetch_payment_link` | Fetch details of a payment link (standard) | [Payment Link](https://razorpay.com/docs/api/payments/payment-links/fetch-id-standard/)
| `create_order` | Creates an order | [Order](https://razorpay.com/docs/api/orders/create/)
| `fetch_order` | Fetch order with ID | [Order](https://razorpay.com/docs/api/orders/fetch-with-id)
| `fetch_all_orders` | Fetch all orders | [Order](https://razorpay.com/docs/api/orders/fetch-all)
| `create_refund` | Creates a refund | [Refund](https://razorpay.com/docs/api/refunds/create-instant/)
| `fetch_refund` | Fetch refund details with ID | [Refund](https://razorpay.com/docs/api/refunds/fetch-with-id/)
| `update_refund` | Update refund notes with ID | [Refund](https://razorpay.com/docs/api/refunds/update/)
| `create_qr_code` | Creates a QR Code | [QR Code](https://razorpay.com/docs/api/qr-codes/create/)
| `fetch_qr_code` | Fetch QR Code with ID | [QR Code](https://razorpay.com/docs/api/qr-codes/fetch-with-id/)
| `fetch_all_qr_codes` | Fetch all QR Codes | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-all/)
| `fetch_qr_codes_by_customer_id` | Fetch QR Codes with Customer ID | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-customer-id/)
| `fetch_qr_codes_by_payment_id` | Fetch QR Codes with Payment ID | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-payment-id/)
| `fetch_payments_for_qr_code` | Fetch Payments for a QR Code | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-payments/)
| `close_qr_code` | Closes a QR Code | [qr code](https://razorpay.com/docs/api/qr-codes/close/)
| Tool | Description | API
|:-----------------------------------|:-------------------------------------------|:-----------------------------------
| `fetch_payment` | Fetch payment details with ID | [Payment](https://razorpay.com/docs/api/payments/fetch-with-id)
| `create_payment_link` | Creates a new payment link (standard) | [Payment Link](https://razorpay.com/docs/api/payments/payment-links/create-standard)
| `fetch_payment_link` | Fetch details of a payment link (standard) | [Payment Link](https://razorpay.com/docs/api/payments/payment-links/fetch-id-standard/)
| `create_order` | Creates an order | [Order](https://razorpay.com/docs/api/orders/create/)
| `fetch_order` | Fetch order with ID | [Order](https://razorpay.com/docs/api/orders/fetch-with-id)
| `fetch_all_orders` | Fetch all orders | [Order](https://razorpay.com/docs/api/orders/fetch-all)
| `create_refund` | Creates a refund | [Refund](https://razorpay.com/docs/api/refunds/create-instant/)
| `fetch_refund` | Fetch refund details with ID | [Refund](https://razorpay.com/docs/api/refunds/fetch-with-id/)
| `update_refund` | Update refund notes with ID | [Refund](https://razorpay.com/docs/api/refunds/update/)
| `create_qr_code` | Creates a QR Code | [QR Code](https://razorpay.com/docs/api/qr-codes/create/)
| `fetch_qr_code` | Fetch QR Code with ID | [QR Code](https://razorpay.com/docs/api/qr-codes/fetch-with-id/)
| `fetch_all_qr_codes` | Fetch all QR Codes | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-all/)
| `fetch_qr_codes_by_customer_id` | Fetch QR Codes with Customer ID | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-customer-id/)
| `fetch_qr_codes_by_payment_id` | Fetch QR Codes with Payment ID | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-payment-id/)
| `fetch_payments_for_qr_code` | Fetch Payments for a QR Code | [qr code](https://razorpay.com/docs/api/qr-codes/fetch-payments/)
| `close_qr_code` | Closes a QR Code | [qr code](https://razorpay.com/docs/api/qr-codes/close/)
| `fetch_all_settlements` | Fetch all settlements | [Settlement](https://razorpay.com/docs/api/settlements/fetch-all)
| `fetch_settlement_with_id` | Fetch settlement details | [Settlement](https://razorpay.com/docs/api/settlements/fetch-with-id)
| `fetch_settlement_recon_details` | Fetch settlement reconciliation report | [Settlement](https://razorpay.com/docs/api/settlements/fetch-recon)
| `create_instant_settlement` | Create an instant settlement | [Settlement](https://razorpay.com/docs/api/settlements/instant/create)
| `fetch_all_instant_settlements` | Fetch all instant settlements | [Settlement](https://razorpay.com/docs/api/settlements/instant/fetch-all)
| `fetch_instant_settlement_with_id` | Fetch instant settlement with ID | [Settlement](https://razorpay.com/docs/api/settlements/instant/fetch-with-id)


## Use Cases
- Workflow Automation: Automate your day to day workflow using Razorpay MCP Server.
Expand Down
1 change: 0 additions & 1 deletion pkg/razorpay/orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ func FetchAllOrders(
ValidateAndAddOptionalInt(queryParams, "to").
ValidateAndAddOptionalInt(queryParams, "authorized").
ValidateAndAddOptionalString(queryParams, "receipt").
ValidateAndAddOptionalArray(queryParams, "expand").
ValidateAndAddExpand(queryParams)

if result, err := validator.HandleErrorsIfAny(); result != nil {
Expand Down
Loading