Process Payment Subscriptions

Use the below endpoint to Process Payment UPI Intent

Request Parameters:

Parameter NameTypeDescription
merchantIdstringon boarded merchant id
clientUniqueReferencestringunique refernce number assigned to a merchant
enableNotificationbooleandefault false
plan{}plan details
planIdstringrequired if its plural maintained plan
merchantMaintainedPlanbooleanfalse: if its plural maintained plan
true: if its merchant maintained plan
merchantPlanIdstring
merchantIdstring
planNamestring
planDescriptionstring
frequencystring
frequencyTypestring
maxUsersstring
notesstring
amount
valuestringvalue given in numbers
currencystringwhich currency used for transaction
maxLimitAmount
valuestringvalue given in numbers
currencystringwhich currency used for transaction
trialPeriodInDaysinteger
startDatestring(UTC format date time example: 2023-02-06 18:30:00)start date of the plan
endDatestring(UTC format date time example: 2023-02-06 18:30:00)end date of the plan
quantityintegernumber of subscription needed
default is 1
startDatestring(UTC format date time example: 2023-02-06 18:30:00)start date of subscription
endDatestring(UTC format date time example: 2023-02-06 18:30:00)end date of subscription
customerData{}
firstNamestringfirst name of the customer
lastNamestringlast name of the customer
countryCodestringfor india its 91, phone country code
customerMobilestringcustomers mobile number to send any notification
customerEmailstringemail to send any notification
autoDebitbooleandefault truewhether auto-debit opted or not
upi_data{}
vpastringcustomer upi id
payments{}
amountLimitstring
debitDayintegerwhich day the debit should happen, default:1
debitRulestringdefault is ON
blockFundstringshould customer blocked for amount for this subscription.
default: N

Request Body payload:

{
	"merchantId": "3000004",
	"clientUniqueReference": "Merchant_Plan_001",
	"enableNotification": true,
	"plan": {
		"planId": "",
		"merchantMaintainedPlan": false,		
		"merchantPlanId": "merch007",
		"merchantId": "3004",
		"planName": "MPPlanDayNT",
		"planDescription": "Merchant Maintained Plan feb 06 ",
		"frequency": 1,
		"frequencyType": "Day",
		"maxUsers": "100",
		"notes": "Sample message",
		"amount": {
			"value": 220,
			"currency": "INR"
		},
		"maxLimitAmount": {
			"value": 220,
			"currency": "INR"
		},
		"trialPeriodInDays": 0,
		"startDate": "2023-02-06 18:30:00",
		"endDate": "2023-02-10 18:30:00"
	},
	"quantity": 1,
	"startDate": "2023-02-06 18:30:00",
	"endDate": "2023-02-10 18:30:00",
	"customerData": {
		"firstName": "Dhakshin",
		"lastName": "K",
		"countryCode": "91",
		"customerMobile": "9444600695",
		"customerEmail": "[email protected]"
	},
	"autoDebit": true,
	"upi_data": {
		"vpa": "dhakshin@okaxis"
	},
	"payments": {
		"amountLimit": "M",
		"debitDay": 1,
		"debitRule": "ON",
		"blockFund": "N"
	}
}

Response Payload:

{
	"response_code": "1",
	"response_message": "Transaction initiated",
	"merchant_order_id": "3565203",
	"order_id": 3565203,
	"subscription_id": "130",
	"plan_id": "17"
}
{
    "response_code": 12404,
    "response_message": "Create subscription failed"
}
{    "response_code": 12408,  
     "response_message": "Invalid Upi Details"
}

Response Parameters

Parameter NameTypeDescription
response_codestringresponse code received
response_messagestringShort message about code.
subscription_idstringcreated subscription id on successful scenario
plan_idstringid captured while processing the payment
Language
Click Try It! to start a request and see the response here!