Raw schema
{
"type": "object",
"properties": {
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000,
"description": "Amount in INR (Instamojo documents a minimum of 9 and a maximum of 200000 per request)."
},
"purpose": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "What the payment is for (shown to the buyer). Often used as your own order reference."
},
"buyer_name": {
"description": "Name of the payer.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"email": {
"description": "Email of the payer (required when send_email is true).",
"type": "string",
"maxLength": 200,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"description": "Phone number of the payer (required when send_sms is true).",
"type": "string",
"minLength": 5,
"maxLength": 20
},
"redirect_url": {
"description": "URL the buyer is redirected to after paying (Instamojo appends payment_request_id, payment_status and payment_id).",
"type": "string",
"maxLength": 500,
"format": "uri"
},
"webhook": {
"description": "URL Instamojo POSTs the payment details to after a payment.",
"type": "string",
"maxLength": 500,
"format": "uri"
},
"allow_repeated_payments": {
"description": "true = the link accepts several payments (Instamojo's default); false = one payment only.",
"type": "boolean"
},
"send_email": {
"description": "true = Instamojo emails the link to the payer (needs email). Default false: nothing is sent.",
"type": "boolean"
},
"send_sms": {
"description": "true = Instamojo texts the link to the payer (needs phone). Default false: nothing is sent.",
"type": "boolean"
}
},
"required": [
"amount",
"purpose"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}