v1

latestOpenAPI 3.1.02026-07-243013.0 KB

Create a Payment Request

This will create a payment request on Instamojo. You need to use a token that is obtained using the Application Based Authentication.

post/v2/payment_requests/

Headers

Authorizationstring

Response

200

idstring
userstring
phonestring
emailstring
buyer_namestring
amountstring
purposestring
statusstring
paymentsobject[]
send_smsboolean
send_emailboolean
sms_statusstring
email_statusstring
{"stackTrail":"paths:/v2/payment_requests/:post:responses:200:content:application/json:schema:properties:shorturl","oasType":"schema","type":"unknown"}
longurlstring
redirect_urlstring
webhookstring
created_atstring
modified_atstring
resource_uristring
allow_repeated_paymentsboolean
mark_fulfilledboolean

Example response

{
  "id": "05f317448ad84649aa1a9c7328edb015",
  "user": "https://api.instamojo.com/v2/users/90f01dfdacbe4fe7892fc27dbdc30906/",
  "phone": "+919999999999",
  "email": "foo@example.com",
  "buyer_name": "John Doe",
  "amount": "2500",
  "purpose": "FIFA 16",
  "status": "Pending",
  "send_sms": true,
  "send_email": true,
  "sms_status": "Pending",
  "email_status": "Pending",
  "longurl": "https://www.instamojo.com/@foo/05f317448ad84649aa1a9c7328edb015",
  "redirect_url": "http://www.example.com/redirect/",
  "webhook": "http://www.example.com/webhook/",
  "created_at": "2016-05-09T16:10:13.786Z",
  "modified_at": "2016-05-09T16:10:13.786Z",
  "resource_uri": "https://api.instamojo.com/v2/payment_requests/05f317448ad84649aa1a9c7328edb015/",
  "mark_fulfilled": true
}