Instamojo MCP by usefulapi

v1.20.1
io.usefulapi/instamojo Checked 2 days ago Published 1 day ago

Read 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/.

ParameterTypeDescription
limitintegerRows per page, 1-500 (default 50).
pageintegerPage 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}/.

ParameterTypeDescription
payment_request_id *stringPayment 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/.

ParameterTypeDescription
amount *numberAmount in INR (Instamojo documents a minimum of 9 and a maximum of 200000 per request).
purpose *stringWhat the payment is for (shown to the buyer). Often used as your own order reference.
allow_repeated_paymentsbooleantrue = the link accepts several payments (Instamojo's default); false = one payment only.
buyer_namestringName of the payer.
emailstringEmail of the payer (required when send_email is true).
phonestringPhone number of the payer (required when send_sms is true).
redirect_urlstringURL the buyer is redirected to after paying (Instamojo appends payment_request_id, payment_status and payment_id).
send_emailbooleantrue = Instamojo emails the link to the payer (needs email). Default false: nothing is sent.
send_smsbooleantrue = Instamojo texts the link to the payer (needs phone). Default false: nothing is sent.
webhookstringURL 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/.

ParameterTypeDescription
payment_request_id *stringPayment 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/.

ParameterTypeDescription
payment_request_id *stringPayment 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}/.

ParameterTypeDescription
payment_id *stringPayment 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/.

ParameterTypeDescription
limitintegerRows per page, 1-500 (default 50).
pageintegerPage 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}/.

ParameterTypeDescription
refund_id *stringRefund 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/.

ParameterTypeDescription
body *stringText explaining the refund.
payment_id *stringPayment id (MOJO...) of the payment to refund.
type *stringReason 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…
confirmbooleanMust be true to actually create the refund; otherwise only a preview is returned.
refund_amountnumberAmount to refund in INR; default the full paid amount.
transaction_idstringYour own unique id for this refund case; Instamojo uses it to refuse a replayed call (mandatory from the second refund case onwards).