Instamojo MCP by usefulapi
v1.20.1Read Instamojo payment requests, payments and refunds; create payment links and refund payments.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
instamojo_list_payment_requests List payment requests
List the payment requests (payment links) of the account with id, purpose, amount (INR), buyer, status (Pending, Sent, Failed, Completed), short and long URL and timestamps. Paged: use next_page. GET /payment-requests/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-500 (default 50). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
instamojo_get_payment_request Get payment request
One payment request by id, with its status and the payments made against it (the payment ids go to instamojo_get_payment). GET /payment-requests/{id}/.
| Parameter | Type | Description |
|---|---|---|
payment_request_id * | string | Payment request id (a 32-character hex id from instamojo_list_payment_requests). |
instamojo_create_payment_request Create payment request
WRITE: create a payment request (a payment link) and return its id and URLs (longurl, shorturl) to share with the buyer. Amount is in INR. The buyer is NOT emailed or texted unless send_email / send_sms is true (they then need email / phone). Nothing is charged; the buyer pays on the link. POST /payment-requests/.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount in INR (Instamojo documents a minimum of 9 and a maximum of 200000 per request). |
purpose * | string | What the payment is for (shown to the buyer). Often used as your own order reference. |
allow_repeated_payments | boolean | true = the link accepts several payments (Instamojo's default); false = one payment only. |
buyer_name | string | Name of the payer. |
email | string | Email of the payer (required when send_email is true). |
phone | string | Phone number of the payer (required when send_sms is true). |
redirect_url | string | URL the buyer is redirected to after paying (Instamojo appends payment_request_id, payment_status and payment_id). |
send_email | boolean | true = Instamojo emails the link to the payer (needs email). Default false: nothing is sent. |
send_sms | boolean | true = Instamojo texts the link to the payer (needs phone). Default false: nothing is sent. |
webhook | string | URL Instamojo POSTs the payment details to after a payment. |
instamojo_disable_payment_request Disable payment request
WRITE: disable a payment request so its link no longer accepts payments (instamojo_enable_payment_request undoes it). Existing payments are not touched. POST /payment-requests/{id}/disable/.
| Parameter | Type | Description |
|---|---|---|
payment_request_id * | string | Payment request id. |
instamojo_enable_payment_request Enable payment request
WRITE: enable a previously disabled payment request so its link accepts payments again. POST /payment-requests/{id}/enable/.
| Parameter | Type | Description |
|---|---|---|
payment_request_id * | string | Payment request id. |
instamojo_get_payment Get payment
One payment by its id (MOJO...): status (Credit = paid, Failed), amount, fees, buyer, instrument (card, UPI, netbanking, wallet), failure reason, payout and the payment request it belongs to. GET /payments/{id}/.
| Parameter | Type | Description |
|---|---|---|
payment_id * | string | Payment id, e.g. MOJO5a06005J21512197 (from instamojo_get_payment_request). |
instamojo_list_refunds List refunds
List refunds with id (case id), payment id, status, reason type, refund and total amount (INR) and date. Paged: use next_page. GET /refunds/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-500 (default 50). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
instamojo_get_refund Get refund
One refund by its id (the case id from instamojo_list_refunds, e.g. C5c0751272). GET /refunds/{id}/.
| Parameter | Type | Description |
|---|---|---|
refund_id * | string | Refund id (case id). |
instamojo_create_refund Create refund
WRITE (moves money): refund a payment, in full or in part. Instamojo allows only ONE refund per payment, so a partial refund cannot be topped up later. Without confirm: true nothing is sent and the call returns a preview of the refund; ask the user to confirm, then call again with confirm: true. Reason types: RFD = duplicate/delayed payment, TNR = product/service no longer available, QFL = customer not satisfied, QNR = product lost/damaged, EWN = digital download issue, TAN = event was canceled/changed, PTH = problem not described above. POST /refunds/.
| Parameter | Type | Description |
|---|---|---|
body * | string | Text explaining the refund. |
payment_id * | string | Payment id (MOJO...) of the payment to refund. |
type * | string | Reason code. RFD = duplicate/delayed payment, TNR = product/service no longer available, QFL = customer not satisfied, QNR = product lost/damaged, EWN = digital download issue, TAN = event was cancele… |
confirm | boolean | Must be true to actually create the refund; otherwise only a preview is returned. |
refund_amount | number | Amount to refund in INR; default the full paid amount. |
transaction_id | string | Your own unique id for this refund case; Instamojo uses it to refuse a replayed call (mandatory from the second refund case onwards). |