API Test Keys
Request a Product Configuration | Payment Gateway
POST/v2/accounts/:account_id/productsClick to copy
Use this endpoint to request a product configuration for Payment Gateway or Payment Links. You can even accept terms and conditions for the requested product using these APIs. Know about the
for this API.Is this page helpful?
1curl -u <ACCESS_TOKEN> \2-X POST https://api.razorpay.com/v2/accounts/acc_HQVlm3bnPmccC0/products \3-H "Content-Type: application/json" \4-d '{5"product_name": "payment_gateway",6"tnc_accepted": true,7"ip": "233.233.233.234"8}'
Success
1{2"requested_configuration": {3"payment_methods": []4},5"active_configuration": {6"payment_capture": {7"mode": "automatic",8"refund_speed": "normal",9"automatic_expiry_period": 720010},11"settlements": {12"account_number": null,13"ifsc_code": null,14"beneficiary_name": null15},16"checkout": {17"theme_color": "#FFFFFF",18"flash_checkout": true,19"logo": "https://example.com/your_logo"20},21"refund": {22"default_refund_speed": "normal"23},24"notifications": {25"whatsapp": true,26"sms": false,27"email": [28"b963e252-1201-45b0-9c39-c53eceb0cfd6_load@gmail.com"29]30},31"payment_methods": {32"netbanking": {33"enabled": true,34"instrument": [35{36"type": "retail",37"bank": [38"hdfc",39"sbin",40"utib",41"icic",42"scbl",43"yesb"44]45}46]47},48"wallet": {49"enabled": true,50"instrument": [51"airtelmoney",52"jiomoney",53"olamoney",54"payzapp",55"mobikwik"56]57},58"upi": {59"enabled": true,60"instrument": [61"upi"62]63}64}65},66"requirements": [67{68"field_reference": "individual_proof_of_address",69"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders/{stakeholderId}/documents",70"status": "required",71"reason_code": "document_missing"72},73{74"field_reference": "individual_proof_of_identification",75"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders/{stakeholderId}/documents",76"status": "required",77"reason_code": "document_missing"78},79{80"field_reference": "business_proof_of_identification",81"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/documents",82"status": "required",83"reason_code": "document_missing"84},85{86"field_reference": "settlements.beneficiary_name",87"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",88"status": "required",89"reason_code": "field_missing"90},91{92"field_reference": "settlements.account_number",93"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",94"status": "required",95"reason_code": "field_missing"96},97{98"field_reference": "settlements.ifsc_code",99"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",100"status": "required",101"reason_code": "field_missing"102},103{104"field_reference": "contact_name",105"resolution_url": "/accounts/acc_HQVlm3bnPmccC0",106"status": "required",107"reason_code": "field_missing"108},109{110"field_reference": "name",111"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders",112"status": "required",113"reason_code": "field_missing"114},115{116"field_reference": "customer_facing_business_name",117"resolution_url": "/accounts/acc_HQVlm3bnPmccC0",118"status": "required",119"reason_code": "field_missing"120},121{122"field_reference": "kyc.pan",123"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders",124"status": "required",125"reason_code": "field_missing"126}127],128"tnc":{129"id": "tnc_IgohZaDBHRGjPv",130"accepted": true,131"accepted_at": 1641550798132},133"id": "acc_prd_HEgNpywUFctQ9e",134"account_id": "acc_HQVlm3bnPmccC0",135"product_name": "payment_gateway",136"activation_status": "needs_clarification",137"requested_at": 162547884138}
Path Parameters
account_idstring The unique identifier of the sub-merchant account generated by Razorpay. For example, acc_HQVlm3bnPmccC0. This id is used to fetch or update a product. The product is created for this sub-merchant account id.
Request Parameters
product_name *
stringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
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.
Response Parameters
requested_configurationobjectThe configuration of the product requested by the user that is yet to be set as active.
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 following fields:
Show child parameters (3)
active_configurationobjectThe configuration of the product that has been set as active.
Show child parameters (6)
requirementsobjectThe list of requirements to be enabled for this product or some of the configurations under this product. It is classified into two types:
- Required document: field_reference: "proof_type.document_type". For example:
business_proof_of_identification.business_pan_url. The sub-merchant needs to upload thebusiness_pan_urldocument to get the requirement fulfilled. - Selected required document: field_reference : "proof_type". For example:
individual_proof_of_address. The sub-merchant can upload ONE of the following groups, that is, submit [aadhar_front,aadhar_back] or [voter_id_front,voter_id_back] or [passport_front,passport_back]. Once all the documents of any ONE of the groups are uploaded, the requirement gets fulfilled.
Show child parameters (4)
idstring The unique identifier of the sub-merchant product account generated by Razorpay. For example, acc_prd_HEgNpywUFctQ9e. The product is created for this sub-merchant account id.
account_idstring The unique identifier of the sub-merchant generated by Razorpay. For example, acc_HQVlm3bnPmccC0.
product_namestringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
activation_statusstringThe status of the
.requestedneeds_clarificationunder_reviewactivatedsuspended
requested_atintegerThe Unix timestamp at which the product configuration has been requested.
Request a Product Configuration | Payment Gateway
POST/v2/accounts/:account_id/productsClick to copy
Use this endpoint to request a product configuration for Payment Gateway or Payment Links. You can even accept terms and conditions for the requested product using these APIs. Know about the
for this API.Is this page helpful?
Path Parameters
account_idstring The unique identifier of the sub-merchant account generated by Razorpay. For example, acc_HQVlm3bnPmccC0. This id is used to fetch or update a product. The product is created for this sub-merchant account id.
Request Parameters
product_name *
stringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
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.
Response Parameters
requested_configurationobjectThe configuration of the product requested by the user that is yet to be set as active.
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 following fields:
Show child parameters (3)
active_configurationobjectThe configuration of the product that has been set as active.
Show child parameters (6)
requirementsobjectThe list of requirements to be enabled for this product or some of the configurations under this product. It is classified into two types:
- Required document: field_reference: "proof_type.document_type". For example:
business_proof_of_identification.business_pan_url. The sub-merchant needs to upload thebusiness_pan_urldocument to get the requirement fulfilled. - Selected required document: field_reference : "proof_type". For example:
individual_proof_of_address. The sub-merchant can upload ONE of the following groups, that is, submit [aadhar_front,aadhar_back] or [voter_id_front,voter_id_back] or [passport_front,passport_back]. Once all the documents of any ONE of the groups are uploaded, the requirement gets fulfilled.
Show child parameters (4)
idstring The unique identifier of the sub-merchant product account generated by Razorpay. For example, acc_prd_HEgNpywUFctQ9e. The product is created for this sub-merchant account id.
account_idstring The unique identifier of the sub-merchant generated by Razorpay. For example, acc_HQVlm3bnPmccC0.
product_namestringThe product(s) to be configured. Possible values:
payment_gatewaypayment_links
activation_statusstringThe status of the
.requestedneeds_clarificationunder_reviewactivatedsuspended
requested_atintegerThe Unix timestamp at which the product configuration has been requested.
1curl -u <ACCESS_TOKEN> \2-X POST https://api.razorpay.com/v2/accounts/acc_HQVlm3bnPmccC0/products \3-H "Content-Type: application/json" \4-d '{5"product_name": "payment_gateway",6"tnc_accepted": true,7"ip": "233.233.233.234"8}'
Success
1{2"requested_configuration": {3"payment_methods": []4},5"active_configuration": {6"payment_capture": {7"mode": "automatic",8"refund_speed": "normal",9"automatic_expiry_period": 720010},11"settlements": {12"account_number": null,13"ifsc_code": null,14"beneficiary_name": null15},16"checkout": {17"theme_color": "#FFFFFF",18"flash_checkout": true,19"logo": "https://example.com/your_logo"20},21"refund": {22"default_refund_speed": "normal"23},24"notifications": {25"whatsapp": true,26"sms": false,27"email": [28"b963e252-1201-45b0-9c39-c53eceb0cfd6_load@gmail.com"29]30},31"payment_methods": {32"netbanking": {33"enabled": true,34"instrument": [35{36"type": "retail",37"bank": [38"hdfc",39"sbin",40"utib",41"icic",42"scbl",43"yesb"44]45}46]47},48"wallet": {49"enabled": true,50"instrument": [51"airtelmoney",52"jiomoney",53"olamoney",54"payzapp",55"mobikwik"56]57},58"upi": {59"enabled": true,60"instrument": [61"upi"62]63}64}65},66"requirements": [67{68"field_reference": "individual_proof_of_address",69"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders/{stakeholderId}/documents",70"status": "required",71"reason_code": "document_missing"72},73{74"field_reference": "individual_proof_of_identification",75"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders/{stakeholderId}/documents",76"status": "required",77"reason_code": "document_missing"78},79{80"field_reference": "business_proof_of_identification",81"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/documents",82"status": "required",83"reason_code": "document_missing"84},85{86"field_reference": "settlements.beneficiary_name",87"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",88"status": "required",89"reason_code": "field_missing"90},91{92"field_reference": "settlements.account_number",93"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",94"status": "required",95"reason_code": "field_missing"96},97{98"field_reference": "settlements.ifsc_code",99"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/products/acc_prd_HEgNpywUFctQ9e",100"status": "required",101"reason_code": "field_missing"102},103{104"field_reference": "contact_name",105"resolution_url": "/accounts/acc_HQVlm3bnPmccC0",106"status": "required",107"reason_code": "field_missing"108},109{110"field_reference": "name",111"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders",112"status": "required",113"reason_code": "field_missing"114},115{116"field_reference": "customer_facing_business_name",117"resolution_url": "/accounts/acc_HQVlm3bnPmccC0",118"status": "required",119"reason_code": "field_missing"120},121{122"field_reference": "kyc.pan",123"resolution_url": "/accounts/acc_HQVlm3bnPmccC0/stakeholders",124"status": "required",125"reason_code": "field_missing"126}127],128"tnc":{129"id": "tnc_IgohZaDBHRGjPv",130"accepted": true,131"accepted_at": 1641550798132},133"id": "acc_prd_HEgNpywUFctQ9e",134"account_id": "acc_HQVlm3bnPmccC0",135"product_name": "payment_gateway",136"activation_status": "needs_clarification",137"requested_at": 162547884138}