API Test Keys
Request Payment Methods
PATCH/v2/accounts/:account_id/products/:product_idClick to copy
Use this endpoint to update a product's configuration and request payment methods like UPI, netbanking and card. Know about the
for this API.Check the
and before using this API.Watch Out!
Currently, we do not support making concurrent requests to the following Onboarding APIs including their combination on the same account_id:
Please wait for the response of these APIs before making subsequent requests.
Given here is the Payment Gateway product sample code when you request for a specific payment method. Here the payment_method object is used. The example used is netbanking.
Watch Out!
You can send request for only one payment method at a time. For example, if you want to enable HDFC Netbanking and Rupay Domestic Card payment methods, you should send two separate API requests. You cannot send a consolidated request using this API.
Is this page helpful?
1curl -u <ACCESS_TOKEN> \2-X PATCH https://api.razorpay.com/v2/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e/ \3-d' {4"notifications": {5"email": [6"gaurav.kumar@example.com",7"acd@gmail.com"8]9},10"checkout": {11"theme_color": "#528FFF"12},13"refund": {14"default_refund_speed": "optimum"15},16"settlements": {17"account_number": "1234567890",18"ifsc_code": "HDFC0000317",19"beneficiary_name": "Gaurav Kumar"20},21"payment_methods": {22"upi": {23"enabled": true,24"instrument": "upi"25}26},27"tnc_accepted": true,28"ip": "233.233.233.234"29}'
Success
1{2"requested_configuration": {3"payment_methods": {4"upi": {5"enabled": true,6"instrument": [7"upi"8]9}10}11},12// already activated payment methods13"active_configuration": {14"payment_methods": {15"netbanking": {16"enabled": true,17"instrument": [18{19"type": "retail",20"bank": [21"hdfc",22"sbin"23]24}25]26},27"wallet": {28"enabled": true,29"instrument": [30"airtelmoney"31]32}33}34}35}
Path Parameters
account_id *
string The unique identifier of a sub-merchant account generated by Razorpay. For example, acc_HQVlm3bnPmccC0.
id *
string The unique identifier of a product generated by Razorpay. For example, acc_prd_HEgNpywUFctQ9e.
Request Parameters
notifications objectThis denotes the notifications settings.
Show child parameters (3)
checkout objectThe checkout form of the payment capture.
Show child parameters (3)
refund objectThis denotes the payment refund settings.
Show child parameters (1)
settlements objectThe Settlement settings object.
Show child parameters (3)
tnc_accepted boolean Pass this parameter to accept terms and conditions. Send this parameter along with the ip parameter when the tnc is accepted. Possible value is true which indicates acceptance of terms and conditions.
ip string The IP address of the merchant while accepting the terms and conditions. Send this parameter along with the tnc_accepted parameter when the tnc is accepted.
payment_methods objectDetails of the payment method you want to enable for the product.
Show child parameters (6)
Response Parameters
idstringThe unique identifier of a product generated by Razorpay for a sub-merchant account. This id is used to fetch or update a product.
product_namestringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
tncobjectIt consists of the configuration for the accepted terms and conditions by the merchant for the requested product. If the terms and conditions are accepted by the user for the requested product, it would consist of the following fields:
Show child parameters (3)
activation_statusstringThe status of the
.requestedneeds_clarificationunder_reviewactivatedsuspended
configurationobjectThe following are the possible configurations:
Show child parameters (6)
requested_configurationobjectThe configuration of the product requested by the user that is yet to be set as active.
active_configurationobjectThe configuration of the product that has been set as active.
requirementsobjectThe list of requirements to be enabled for this product or some of the configurations under this product.
Show child parameters (5)
requested_atintegerThe Unix timestamp at which the product configuration is requested.
Request Payment Methods
PATCH/v2/accounts/:account_id/products/:product_idClick to copy
Use this endpoint to update a product's configuration and request payment methods like UPI, netbanking and card. Know about the
for this API.Check the
and before using this API.Watch Out!
Currently, we do not support making concurrent requests to the following Onboarding APIs including their combination on the same account_id:
Please wait for the response of these APIs before making subsequent requests.
Given here is the Payment Gateway product sample code when you request for a specific payment method. Here the payment_method object is used. The example used is netbanking.
Watch Out!
You can send request for only one payment method at a time. For example, if you want to enable HDFC Netbanking and Rupay Domestic Card payment methods, you should send two separate API requests. You cannot send a consolidated request using this API.
Is this page helpful?
Path Parameters
account_id *
string The unique identifier of a sub-merchant account generated by Razorpay. For example, acc_HQVlm3bnPmccC0.
id *
string The unique identifier of a product generated by Razorpay. For example, acc_prd_HEgNpywUFctQ9e.
Request Parameters
notifications objectThis denotes the notifications settings.
Show child parameters (3)
checkout objectThe checkout form of the payment capture.
Show child parameters (3)
refund objectThis denotes the payment refund settings.
Show child parameters (1)
settlements objectThe Settlement settings object.
Show child parameters (3)
tnc_accepted boolean Pass this parameter to accept terms and conditions. Send this parameter along with the ip parameter when the tnc is accepted. Possible value is true which indicates acceptance of terms and conditions.
ip string The IP address of the merchant while accepting the terms and conditions. Send this parameter along with the tnc_accepted parameter when the tnc is accepted.
payment_methods objectDetails of the payment method you want to enable for the product.
Show child parameters (6)
Response Parameters
idstringThe unique identifier of a product generated by Razorpay for a sub-merchant account. This id is used to fetch or update a product.
product_namestringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
tncobjectIt consists of the configuration for the accepted terms and conditions by the merchant for the requested product. If the terms and conditions are accepted by the user for the requested product, it would consist of the following fields:
Show child parameters (3)
activation_statusstringThe status of the
.requestedneeds_clarificationunder_reviewactivatedsuspended
configurationobjectThe following are the possible configurations:
Show child parameters (6)
requested_configurationobjectThe configuration of the product requested by the user that is yet to be set as active.
active_configurationobjectThe configuration of the product that has been set as active.
requirementsobjectThe list of requirements to be enabled for this product or some of the configurations under this product.
Show child parameters (5)
requested_atintegerThe Unix timestamp at which the product configuration is requested.
1curl -u <ACCESS_TOKEN> \2-X PATCH https://api.razorpay.com/v2/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e/ \3-d' {4"notifications": {5"email": [6"gaurav.kumar@example.com",7"acd@gmail.com"8]9},10"checkout": {11"theme_color": "#528FFF"12},13"refund": {14"default_refund_speed": "optimum"15},16"settlements": {17"account_number": "1234567890",18"ifsc_code": "HDFC0000317",19"beneficiary_name": "Gaurav Kumar"20},21"payment_methods": {22"upi": {23"enabled": true,24"instrument": "upi"25}26},27"tnc_accepted": true,28"ip": "233.233.233.234"29}'
Success
1{2"requested_configuration": {3"payment_methods": {4"upi": {5"enabled": true,6"instrument": [7"upi"8]9}10}11},12// already activated payment methods13"active_configuration": {14"payment_methods": {15"netbanking": {16"enabled": true,17"instrument": [18{19"type": "retail",20"bank": [21"hdfc",22"sbin"23]24}25]26},27"wallet": {28"enabled": true,29"instrument": [30"airtelmoney"31]32}33}34}35}